Skip to content

Commit

Permalink
Minor API doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
Smertig committed May 12, 2024
1 parent 402faa6 commit 2128c3b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/api/tg/types/chat_member_updated.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ chat_member_updated_t

.. cpp:member:: optional_t<boolean_t> via_join_request

Optional. True, if the user joined the chat after sending a direct join request and being approved by an administrator
Optional. True, if the user joined the chat after sending a direct join request without using an invite link and being approved by an administrator

.. cpp:member:: optional_t<boolean_t> via_chat_folder_invite_link

Expand Down
2 changes: 1 addition & 1 deletion docs/api/tg/types/update.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ update_t

.. cpp:member:: optional_t<message_t> business_message

Optional. New non-service message from a connected business account
Optional. New message from a connected business account

.. cpp:member:: optional_t<message_t> edited_business_message

Expand Down
6 changes: 3 additions & 3 deletions include/banana/detail/generated/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ struct chat_full_info_t {
optional_t<boolean_t> has_private_forwards; // Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user
optional_t<boolean_t> has_restricted_voice_and_video_messages; // Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat
optional_t<boolean_t> join_to_send_messages; // Optional. True, if users need to join the supergroup before they can send messages
optional_t<boolean_t> join_by_request; // Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators
optional_t<boolean_t> join_by_request; // Optional. True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators
optional_t<string_t> description; // Optional. Description, for groups, supergroups and channel chats
optional_t<string_t> invite_link; // Optional. Primary invite link, for groups, supergroups and channel chats
optional_t<message_t> pinned_message; // Optional. The most recent pinned message (by sending date)
Expand Down Expand Up @@ -456,7 +456,7 @@ struct update_t {
optional_t<message_t> channel_post; // Optional. New incoming channel post of any kind - text, photo, sticker, etc.
optional_t<message_t> edited_channel_post; // Optional. New version of a channel post that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.
optional_t<business_connection_t> business_connection; // Optional. The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot
optional_t<message_t> business_message; // Optional. New non-service message from a connected business account
optional_t<message_t> business_message; // Optional. New message from a connected business account
optional_t<message_t> edited_business_message; // Optional. New version of a message from a connected business account
optional_t<business_messages_deleted_t> deleted_business_messages; // Optional. Messages were deleted from a connected business account
optional_t<message_reaction_updated_t> message_reaction; // Optional. A reaction to a message was changed by a user. The bot must be an administrator in the chat and must explicitly specify "message_reaction" in the list of allowed_updates to receive these updates. The update isn't received for reactions set by bots.
Expand Down Expand Up @@ -1036,7 +1036,7 @@ struct chat_member_updated_t {
chat_member_t old_chat_member; // Previous information about the chat member
chat_member_t new_chat_member; // New information about the chat member
optional_t<chat_invite_link_t> invite_link; // Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
optional_t<boolean_t> via_join_request; // Optional. True, if the user joined the chat after sending a direct join request and being approved by an administrator
optional_t<boolean_t> via_join_request; // Optional. True, if the user joined the chat after sending a direct join request without using an invite link and being approved by an administrator
optional_t<boolean_t> via_chat_folder_invite_link; // Optional. True, if the user joined the chat via a chat folder invite link
};

Expand Down
6 changes: 3 additions & 3 deletions script/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -5173,7 +5173,7 @@
},
{
"default": true,
"description": "Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators",
"description": "Optional. True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators",
"name": "join_by_request",
"optional": true,
"type": "Boolean"
Expand Down Expand Up @@ -5773,7 +5773,7 @@
"type": "ChatInviteLink"
},
{
"description": "Optional. True, if the user joined the chat after sending a direct join request and being approved by an administrator",
"description": "Optional. True, if the user joined the chat after sending a direct join request without using an invite link and being approved by an administrator",
"name": "via_join_request",
"optional": true,
"type": "Boolean"
Expand Down Expand Up @@ -11338,7 +11338,7 @@
"type": "BusinessConnection"
},
{
"description": "Optional. New non-service message from a connected business account",
"description": "Optional. New message from a connected business account",
"name": "business_message",
"optional": true,
"type": "Message"
Expand Down
6 changes: 3 additions & 3 deletions script/custom_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -7668,7 +7668,7 @@
},
{
"name": "business_message",
"description": "*Optional*. New non-service message from a connected business account",
"description": "*Optional*. New message from a connected business account",
"required": false,
"type_info": {
"type": "reference",
Expand Down Expand Up @@ -8352,7 +8352,7 @@
},
{
"name": "join_by_request",
"description": "*Optional*. *True*, if all users directly joining the supergroup need to be approved by supergroup administrators",
"description": "*Optional*. *True*, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators",
"required": false,
"type_info": {
"type": "bool",
Expand Down Expand Up @@ -13086,7 +13086,7 @@
},
{
"name": "via_join_request",
"description": "*Optional*. True, if the user joined the chat after sending a direct join request and being approved by an administrator",
"description": "*Optional*. True, if the user joined the chat after sending a direct join request without using an invite link and being approved by an administrator",
"required": false,
"type_info": {
"type": "bool"
Expand Down

0 comments on commit 2128c3b

Please sign in to comment.