Added full support for the Bot API 9.2 (#1720)

* Added full support for the Bot API 9.2

* Mark butcher tool output files as linguist-generated in .gitattributes

* Switch `send_date` type from `int` to `DateTime` in suggested post models
This commit is contained in:
Alex Root Junior 2025-08-17 19:07:58 +03:00 committed by GitHub
parent ddcedadfbd
commit ab8af773cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
165 changed files with 4404 additions and 813 deletions

View file

@ -21,9 +21,9 @@
},
{
"type": "Integer or String",
"description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)",
"html_description": "<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>",
"rst_description": "Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)\n",
"description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername). Channel direct messages chats and channel chats aren't supported.",
"html_description": "<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>). Channel direct messages chats and channel chats aren't supported.</td>",
"rst_description": "Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`). Channel direct messages chats and channel chats aren't supported.\n",
"name": "chat_id",
"required": true
}

View file

@ -21,9 +21,9 @@
},
{
"type": "Integer or String",
"description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)",
"html_description": "<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>",
"rst_description": "Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)\n",
"description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername). Channel direct messages chats and channel chats aren't supported.",
"html_description": "<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>). Channel direct messages chats and channel chats aren't supported.</td>",
"rst_description": "Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`). Channel direct messages chats and channel chats aren't supported.\n",
"name": "chat_id",
"required": true
}

View file

@ -21,9 +21,9 @@
},
{
"type": "Integer or String",
"description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)",
"html_description": "<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>)</td>",
"rst_description": "Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`)\n",
"description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername). Channel direct messages chats and channel chats aren't supported.",
"html_description": "<td>Unique identifier for the target chat or username of the target supergroup (in the format <code>@supergroupusername</code>). Channel direct messages chats and channel chats aren't supported.</td>",
"rst_description": "Unique identifier for the target chat or username of the target supergroup (in the format :code:`@supergroupusername`). Channel direct messages chats and channel chats aren't supported.\n",
"name": "chat_id",
"required": true
},

View file

@ -67,6 +67,14 @@
"name": "is_forum",
"required": false
},
{
"type": "True",
"description": "True, if the chat is the direct messages chat of a channel",
"html_description": "<td><em>Optional</em>. <em>True</em>, if the chat is the direct messages chat of a channel</td>",
"rst_description": "*Optional*. :code:`True`, if the chat is the direct messages chat of a channel\n",
"name": "is_direct_messages",
"required": false
},
{
"type": "Integer",
"description": "Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details. Returned only in getChat. Always returned in getChat.",

View file

@ -130,6 +130,14 @@
"rst_description": "*Optional*. :code:`True`, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only\n",
"name": "can_manage_topics",
"required": false
},
{
"type": "Boolean",
"description": "True, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only",
"html_description": "<td><em>Optional</em>. <em>True</em>, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only</td>",
"rst_description": "*Optional*. :code:`True`, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only\n",
"name": "can_manage_direct_messages",
"required": false
}
],
"category": "types"

View file

@ -67,6 +67,14 @@
"name": "is_forum",
"required": false
},
{
"type": "True",
"description": "True, if the chat is the direct messages chat of a channel",
"html_description": "<td><em>Optional</em>. <em>True</em>, if the chat is the direct messages chat of a channel</td>",
"rst_description": "*Optional*. :code:`True`, if the chat is the direct messages chat of a channel\n",
"name": "is_direct_messages",
"required": false
},
{
"type": "Integer",
"description": "Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details.",
@ -139,6 +147,14 @@
"name": "personal_chat",
"required": false
},
{
"type": "Chat",
"description": "Information about the corresponding channel chat; for direct messages chats only",
"html_description": "<td><em>Optional</em>. Information about the corresponding channel chat; for direct messages chats only</td>",
"rst_description": "*Optional*. Information about the corresponding channel chat; for direct messages chats only\n",
"name": "parent_chat",
"required": false
},
{
"type": "Array of ReactionType",
"description": "List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.",

View file

@ -155,6 +155,14 @@
"name": "can_manage_topics",
"required": false
},
{
"type": "Boolean",
"description": "True, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only",
"html_description": "<td><em>Optional</em>. <em>True</em>, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only</td>",
"rst_description": "*Optional*. :code:`True`, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only\n",
"name": "can_manage_direct_messages",
"required": false
},
{
"type": "String",
"description": "Custom title for this user",

View file

@ -14,8 +14,8 @@
{
"type": "Message",
"description": "Message containing the checklist to which the tasks were added. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.",
"html_description": "<td><em>Optional</em>. Message containing the checklist to which the tasks were added. Note that the Message object in this field will not contain the <em>reply_to_message</em> field even if it itself is a reply.</td>",
"rst_description": "*Optional*. Message containing the checklist to which the tasks were added. Note that the Message object in this field will not contain the *reply_to_message* field even if it itself is a reply.\n",
"html_description": "<td><em>Optional</em>. Message containing the checklist to which the tasks were added. Note that the <a href=\"#message\">Message</a> object in this field will not contain the <em>reply_to_message</em> field even if it itself is a reply.</td>",
"rst_description": "*Optional*. Message containing the checklist to which the tasks were added. Note that the :class:`aiogram.types.message.Message` object in this field will not contain the *reply_to_message* field even if it itself is a reply.\n",
"name": "checklist_message",
"required": false
},

View file

@ -14,8 +14,8 @@
{
"type": "Message",
"description": "Message containing the checklist whose tasks were marked as done or not done. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.",
"html_description": "<td><em>Optional</em>. Message containing the checklist whose tasks were marked as done or not done. Note that the Message object in this field will not contain the <em>reply_to_message</em> field even if it itself is a reply.</td>",
"rst_description": "*Optional*. Message containing the checklist whose tasks were marked as done or not done. Note that the Message object in this field will not contain the *reply_to_message* field even if it itself is a reply.\n",
"html_description": "<td><em>Optional</em>. Message containing the checklist whose tasks were marked as done or not done. Note that the <a href=\"#message\">Message</a> object in this field will not contain the <em>reply_to_message</em> field even if it itself is a reply.</td>",
"rst_description": "*Optional*. Message containing the checklist whose tasks were marked as done or not done. Note that the :class:`aiogram.types.message.Message` object in this field will not contain the *reply_to_message* field even if it itself is a reply.\n",
"name": "checklist_message",
"required": false
},

View file

@ -0,0 +1,33 @@
{
"meta": {},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "directmessagestopic",
"name": "DirectMessagesTopic",
"description": "Describes a topic of a direct messages chat.",
"html_description": "<p>Describes a topic of a direct messages chat.</p>",
"rst_description": "Describes a topic of a direct messages chat.",
"annotations": [
{
"type": "Integer",
"description": "Unique identifier of the topic",
"html_description": "<td>Unique identifier of the topic</td>",
"rst_description": "Unique identifier of the topic\n",
"name": "topic_id",
"required": true
},
{
"type": "User",
"description": "Information about the user that created the topic. Currently, it is always present",
"html_description": "<td><em>Optional</em>. Information about the user that created the topic. Currently, it is always present</td>",
"rst_description": "*Optional*. Information about the user that created the topic. Currently, it is always present\n",
"name": "user",
"required": false
}
],
"category": "types"
}
}

View file

@ -58,6 +58,14 @@
"rst_description": "*Optional*. The number of remaining gifts of this type that can be sent; for limited gifts only\n",
"name": "remaining_count",
"required": false
},
{
"type": "Chat",
"description": "Information about the chat that published the gift",
"html_description": "<td><em>Optional</em>. Information about the chat that published the gift</td>",
"rst_description": "*Optional*. Information about the chat that published the gift\n",
"name": "publisher_chat",
"required": false
}
],
"category": "types"

View file

@ -53,25 +53,25 @@
},
{
"type": "String",
"description": "If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent on behalf of a Telegram Business account.",
"html_description": "<td><em>Optional</em>. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent on behalf of a Telegram Business account.</td>",
"rst_description": "*Optional*. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent on behalf of a Telegram Business account.\n",
"description": "If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent in channel direct messages chats and on behalf of a Telegram Business account.",
"html_description": "<td><em>Optional</em>. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent in channel direct messages chats and on behalf of a Telegram Business account.</td>",
"rst_description": "*Optional*. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent in channel direct messages chats and on behalf of a Telegram Business account.\n",
"name": "switch_inline_query",
"required": false
},
{
"type": "String",
"description": "If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.\n\nThis offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported in channels and for messages sent on behalf of a Telegram Business account.",
"html_description": "<td><em>Optional</em>. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.<br/>\n<br/>\nThis offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported in channels and for messages sent on behalf of a Telegram Business account.</td>",
"rst_description": "*Optional*. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.\n\n\n\nThis offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported in channels and for messages sent on behalf of a Telegram Business account.\n",
"description": "If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.\n\nThis offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported in channels and for messages sent in channel direct messages chats and on behalf of a Telegram Business account.",
"html_description": "<td><em>Optional</em>. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.<br/>\n<br/>\nThis offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported in channels and for messages sent in channel direct messages chats and on behalf of a Telegram Business account.</td>",
"rst_description": "*Optional*. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.\n\n\n\nThis offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options. Not supported in channels and for messages sent in channel direct messages chats and on behalf of a Telegram Business account.\n",
"name": "switch_inline_query_current_chat",
"required": false
},
{
"type": "SwitchInlineQueryChosenChat",
"description": "If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent on behalf of a Telegram Business account.",
"html_description": "<td><em>Optional</em>. If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent on behalf of a Telegram Business account.</td>",
"rst_description": "*Optional*. If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent on behalf of a Telegram Business account.\n",
"description": "If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent in channel direct messages chats and on behalf of a Telegram Business account.",
"html_description": "<td><em>Optional</em>. If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent in channel direct messages chats and on behalf of a Telegram Business account.</td>",
"rst_description": "*Optional*. If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field. Not supported for messages sent in channel direct messages chats and on behalf of a Telegram Business account.\n",
"name": "switch_inline_query_chosen_chat",
"required": false
},

View file

@ -52,7 +52,7 @@
"required": false
},
{
"type": "True",
"type": "Boolean",
"description": "Pass True if other users can mark tasks as done or not done in the checklist",
"html_description": "<td><em>Optional</em>. Pass <em>True</em> if other users can mark tasks as done or not done in the checklist</td>",
"rst_description": "*Optional*. Pass :code:`True` if other users can mark tasks as done or not done in the checklist\n",

View file

@ -27,6 +27,14 @@
"name": "message_thread_id",
"required": false
},
{
"type": "DirectMessagesTopic",
"description": "Information about the direct messages chat topic that contains the message",
"html_description": "<td><em>Optional</em>. Information about the direct messages chat topic that contains the message</td>",
"rst_description": "*Optional*. Information about the direct messages chat topic that contains the message\n",
"name": "direct_messages_topic",
"required": false
},
{
"type": "User",
"description": "Sender of the message; may be empty for messages sent to channels. For backward compatibility, if the message was sent on behalf of a chat, the field contains a fake sender user in non-channel chats",
@ -110,8 +118,8 @@
{
"type": "Message",
"description": "For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.",
"html_description": "<td><em>Optional</em>. For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further <em>reply_to_message</em> fields even if it itself is a reply.</td>",
"rst_description": "*Optional*. For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further *reply_to_message* fields even if it itself is a reply.\n",
"html_description": "<td><em>Optional</em>. For replies in the same chat and message thread, the original message. Note that the <a href=\"#message\">Message</a> object in this field will not contain further <em>reply_to_message</em> fields even if it itself is a reply.</td>",
"rst_description": "*Optional*. For replies in the same chat and message thread, the original message. Note that the :class:`aiogram.types.message.Message` object in this field will not contain further *reply_to_message* fields even if it itself is a reply.\n",
"name": "reply_to_message",
"required": false
},
@ -139,6 +147,14 @@
"name": "reply_to_story",
"required": false
},
{
"type": "Integer",
"description": "Identifier of the specific checklist task that is being replied to",
"html_description": "<td><em>Optional</em>. Identifier of the specific checklist task that is being replied to</td>",
"rst_description": "*Optional*. Identifier of the specific checklist task that is being replied to\n",
"name": "reply_to_checklist_task_id",
"required": false
},
{
"type": "User",
"description": "Bot through which the message was sent",
@ -171,6 +187,14 @@
"name": "is_from_offline",
"required": false
},
{
"type": "True",
"description": "True, if the message is a paid post. Note that such posts must not be deleted for 24 hours to receive the payment and can't be edited.",
"html_description": "<td><em>Optional</em>. <em>True</em>, if the message is a paid post. Note that such posts must not be deleted for 24 hours to receive the payment and can't be edited.</td>",
"rst_description": "*Optional*. :code:`True`, if the message is a paid post. Note that such posts must not be deleted for 24 hours to receive the payment and can't be edited.\n",
"name": "is_paid_post",
"required": false
},
{
"type": "String",
"description": "The unique identifier of a media message group this message belongs to",
@ -219,6 +243,14 @@
"name": "link_preview_options",
"required": false
},
{
"type": "SuggestedPostInfo",
"description": "Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is an approved or declined suggested post, then it can't be edited.",
"html_description": "<td><em>Optional</em>. Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is an approved or declined suggested post, then it can't be edited.</td>",
"rst_description": "*Optional*. Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is an approved or declined suggested post, then it can't be edited.\n",
"name": "suggested_post_info",
"required": false
},
{
"type": "String",
"description": "Unique identifier of the message effect added to the message",
@ -486,8 +518,8 @@
{
"type": "MaybeInaccessibleMessage",
"description": "Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.",
"html_description": "<td><em>Optional</em>. Specified message was pinned. Note that the Message object in this field will not contain further <em>reply_to_message</em> fields even if it itself is a reply.</td>",
"rst_description": "*Optional*. Specified message was pinned. Note that the Message object in this field will not contain further *reply_to_message* fields even if it itself is a reply.\n",
"html_description": "<td><em>Optional</em>. Specified message was pinned. Note that the <a href=\"#message\">Message</a> object in this field will not contain further <em>reply_to_message</em> fields even if it itself is a reply.</td>",
"rst_description": "*Optional*. Specified message was pinned. Note that the :class:`aiogram.types.message.Message` object in this field will not contain further *reply_to_message* fields even if it itself is a reply.\n",
"name": "pinned_message",
"required": false
},
@ -707,6 +739,46 @@
"name": "paid_message_price_changed",
"required": false
},
{
"type": "SuggestedPostApproved",
"description": "Service message: a suggested post was approved",
"html_description": "<td><em>Optional</em>. Service message: a suggested post was approved</td>",
"rst_description": "*Optional*. Service message: a suggested post was approved\n",
"name": "suggested_post_approved",
"required": false
},
{
"type": "SuggestedPostApprovalFailed",
"description": "Service message: approval of a suggested post has failed",
"html_description": "<td><em>Optional</em>. Service message: approval of a suggested post has failed</td>",
"rst_description": "*Optional*. Service message: approval of a suggested post has failed\n",
"name": "suggested_post_approval_failed",
"required": false
},
{
"type": "SuggestedPostDeclined",
"description": "Service message: a suggested post was declined",
"html_description": "<td><em>Optional</em>. Service message: a suggested post was declined</td>",
"rst_description": "*Optional*. Service message: a suggested post was declined\n",
"name": "suggested_post_declined",
"required": false
},
{
"type": "SuggestedPostPaid",
"description": "Service message: payment for a suggested post was received",
"html_description": "<td><em>Optional</em>. Service message: payment for a suggested post was received</td>",
"rst_description": "*Optional*. Service message: payment for a suggested post was received\n",
"name": "suggested_post_paid",
"required": false
},
{
"type": "SuggestedPostRefunded",
"description": "Service message: payment for a suggested post was refunded",
"html_description": "<td><em>Optional</em>. Service message: payment for a suggested post was refunded</td>",
"rst_description": "*Optional*. Service message: payment for a suggested post was refunded\n",
"name": "suggested_post_refunded",
"required": false
},
{
"type": "VideoChatScheduled",
"description": "Service message: video chat scheduled",

View file

@ -21,9 +21,9 @@
},
{
"type": "Integer or String",
"description": "If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format @channelusername). Not supported for messages sent on behalf of a business account.",
"html_description": "<td><em>Optional</em>. If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format <code>@channelusername</code>). Not supported for messages sent on behalf of a business account.</td>",
"rst_description": "*Optional*. If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format :code:`@channelusername`). Not supported for messages sent on behalf of a business account.\n",
"description": "If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format @channelusername). Not supported for messages sent on behalf of a business account and messages from channel direct messages chats.",
"html_description": "<td><em>Optional</em>. If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format <code>@channelusername</code>). Not supported for messages sent on behalf of a business account and messages from channel direct messages chats.</td>",
"rst_description": "*Optional*. If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format :code:`@channelusername`). Not supported for messages sent on behalf of a business account and messages from channel direct messages chats.\n",
"name": "chat_id",
"required": false
},
@ -66,6 +66,14 @@
"rst_description": "*Optional*. Position of the quote in the original message in UTF-16 code units\n",
"name": "quote_position",
"required": false
},
{
"type": "Integer",
"description": "Identifier of the specific checklist task to be replied to",
"html_description": "<td><em>Optional</em>. Identifier of the specific checklist task to be replied to</td>",
"rst_description": "*Optional*. Identifier of the specific checklist task to be replied to\n",
"name": "checklist_task_id",
"required": false
}
],
"category": "types"

View file

@ -0,0 +1,33 @@
{
"meta": {},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "suggestedpostapprovalfailed",
"name": "SuggestedPostApprovalFailed",
"description": "Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval.",
"html_description": "<p>Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval.</p>",
"rst_description": "Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval.",
"annotations": [
{
"type": "Message",
"description": "Message containing the suggested post whose approval has failed. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.",
"html_description": "<td><em>Optional</em>. Message containing the suggested post whose approval has failed. Note that the <a href=\"#message\">Message</a> object in this field will not contain the <em>reply_to_message</em> field even if it itself is a reply.</td>",
"rst_description": "*Optional*. Message containing the suggested post whose approval has failed. Note that the :class:`aiogram.types.message.Message` object in this field will not contain the *reply_to_message* field even if it itself is a reply.\n",
"name": "suggested_post_message",
"required": false
},
{
"type": "SuggestedPostPrice",
"description": "Expected price of the post",
"html_description": "<td>Expected price of the post</td>",
"rst_description": "Expected price of the post\n",
"name": "price",
"required": true
}
],
"category": "types"
}
}

View file

@ -0,0 +1,41 @@
{
"meta": {},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "suggestedpostapproved",
"name": "SuggestedPostApproved",
"description": "Describes a service message about the approval of a suggested post.",
"html_description": "<p>Describes a service message about the approval of a suggested post.</p>",
"rst_description": "Describes a service message about the approval of a suggested post.",
"annotations": [
{
"type": "Message",
"description": "Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.",
"html_description": "<td><em>Optional</em>. Message containing the suggested post. Note that the <a href=\"#message\">Message</a> object in this field will not contain the <em>reply_to_message</em> field even if it itself is a reply.</td>",
"rst_description": "*Optional*. Message containing the suggested post. Note that the :class:`aiogram.types.message.Message` object in this field will not contain the *reply_to_message* field even if it itself is a reply.\n",
"name": "suggested_post_message",
"required": false
},
{
"type": "SuggestedPostPrice",
"description": "Amount paid for the post",
"html_description": "<td><em>Optional</em>. Amount paid for the post</td>",
"rst_description": "*Optional*. Amount paid for the post\n",
"name": "price",
"required": false
},
{
"type": "Integer",
"description": "Date when the post will be published",
"html_description": "<td>Date when the post will be published</td>",
"rst_description": "Date when the post will be published\n",
"name": "send_date",
"required": true
}
],
"category": "types"
}
}

View file

@ -0,0 +1,5 @@
annotations:
send_date:
parsed_type:
type: std
name: DateTime

View file

@ -0,0 +1,33 @@
{
"meta": {},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "suggestedpostdeclined",
"name": "SuggestedPostDeclined",
"description": "Describes a service message about the rejection of a suggested post.",
"html_description": "<p>Describes a service message about the rejection of a suggested post.</p>",
"rst_description": "Describes a service message about the rejection of a suggested post.",
"annotations": [
{
"type": "Message",
"description": "Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.",
"html_description": "<td><em>Optional</em>. Message containing the suggested post. Note that the <a href=\"#message\">Message</a> object in this field will not contain the <em>reply_to_message</em> field even if it itself is a reply.</td>",
"rst_description": "*Optional*. Message containing the suggested post. Note that the :class:`aiogram.types.message.Message` object in this field will not contain the *reply_to_message* field even if it itself is a reply.\n",
"name": "suggested_post_message",
"required": false
},
{
"type": "String",
"description": "Comment with which the post was declined",
"html_description": "<td><em>Optional</em>. Comment with which the post was declined</td>",
"rst_description": "*Optional*. Comment with which the post was declined\n",
"name": "comment",
"required": false
}
],
"category": "types"
}
}

View file

@ -0,0 +1,41 @@
{
"meta": {},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "suggestedpostinfo",
"name": "SuggestedPostInfo",
"description": "Contains information about a suggested post.",
"html_description": "<p>Contains information about a suggested post.</p>",
"rst_description": "Contains information about a suggested post.",
"annotations": [
{
"type": "String",
"description": "State of the suggested post. Currently, it can be one of 'pending', 'approved', 'declined'.",
"html_description": "<td>State of the suggested post. Currently, it can be one of &#8220;pending&#8221;, &#8220;approved&#8221;, &#8220;declined&#8221;.</td>",
"rst_description": "State of the suggested post. Currently, it can be one of 'pending', 'approved', 'declined'.\n",
"name": "state",
"required": true
},
{
"type": "SuggestedPostPrice",
"description": "Proposed price of the post. If the field is omitted, then the post is unpaid.",
"html_description": "<td><em>Optional</em>. Proposed price of the post. If the field is omitted, then the post is unpaid.</td>",
"rst_description": "*Optional*. Proposed price of the post. If the field is omitted, then the post is unpaid.\n",
"name": "price",
"required": false
},
{
"type": "Integer",
"description": "Proposed send date of the post. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user or administrator who approves it.",
"html_description": "<td><em>Optional</em>. Proposed send date of the post. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user or administrator who approves it.</td>",
"rst_description": "*Optional*. Proposed send date of the post. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user or administrator who approves it.\n",
"name": "send_date",
"required": false
}
],
"category": "types"
}
}

View file

@ -0,0 +1,5 @@
annotations:
send_date:
parsed_type:
type: std
name: DateTime

View file

@ -0,0 +1,49 @@
{
"meta": {},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "suggestedpostpaid",
"name": "SuggestedPostPaid",
"description": "Describes a service message about a successful payment for a suggested post.",
"html_description": "<p>Describes a service message about a successful payment for a suggested post.</p>",
"rst_description": "Describes a service message about a successful payment for a suggested post.",
"annotations": [
{
"type": "Message",
"description": "Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.",
"html_description": "<td><em>Optional</em>. Message containing the suggested post. Note that the <a href=\"#message\">Message</a> object in this field will not contain the <em>reply_to_message</em> field even if it itself is a reply.</td>",
"rst_description": "*Optional*. Message containing the suggested post. Note that the :class:`aiogram.types.message.Message` object in this field will not contain the *reply_to_message* field even if it itself is a reply.\n",
"name": "suggested_post_message",
"required": false
},
{
"type": "String",
"description": "Currency in which the payment was made. Currently, one of 'XTR' for Telegram Stars or 'TON' for toncoins",
"html_description": "<td>Currency in which the payment was made. Currently, one of &#8220;XTR&#8221; for Telegram Stars or &#8220;TON&#8221; for toncoins</td>",
"rst_description": "Currency in which the payment was made. Currently, one of 'XTR' for Telegram Stars or 'TON' for toncoins\n",
"name": "currency",
"required": true
},
{
"type": "Integer",
"description": "The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only",
"html_description": "<td><em>Optional</em>. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only</td>",
"rst_description": "*Optional*. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only\n",
"name": "amount",
"required": false
},
{
"type": "StarAmount",
"description": "The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only",
"html_description": "<td><em>Optional</em>. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only</td>",
"rst_description": "*Optional*. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only\n",
"name": "star_amount",
"required": false
}
],
"category": "types"
}
}

View file

@ -0,0 +1,33 @@
{
"meta": {},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "suggestedpostparameters",
"name": "SuggestedPostParameters",
"description": "Contains parameters of a post that is being suggested by the bot.",
"html_description": "<p>Contains parameters of a post that is being suggested by the bot.</p>",
"rst_description": "Contains parameters of a post that is being suggested by the bot.",
"annotations": [
{
"type": "SuggestedPostPrice",
"description": "Proposed price for the post. If the field is omitted, then the post is unpaid.",
"html_description": "<td><em>Optional</em>. Proposed price for the post. If the field is omitted, then the post is unpaid.</td>",
"rst_description": "*Optional*. Proposed price for the post. If the field is omitted, then the post is unpaid.\n",
"name": "price",
"required": false
},
{
"type": "Integer",
"description": "Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it.",
"html_description": "<td><em>Optional</em>. Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it.</td>",
"rst_description": "*Optional*. Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it.\n",
"name": "send_date",
"required": false
}
],
"category": "types"
}
}

View file

@ -0,0 +1,5 @@
annotations:
send_date:
parsed_type:
type: std
name: DateTime

View file

@ -0,0 +1,33 @@
{
"meta": {},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "suggestedpostprice",
"name": "SuggestedPostPrice",
"description": "Desribes price of a suggested post.",
"html_description": "<p>Desribes price of a suggested post.</p>",
"rst_description": "Desribes price of a suggested post.",
"annotations": [
{
"type": "String",
"description": "Currency in which the post will be paid. Currently, must be one of 'XTR' for Telegram Stars or 'TON' for toncoins",
"html_description": "<td>Currency in which the post will be paid. Currently, must be one of &#8220;XTR&#8221; for Telegram Stars or &#8220;TON&#8221; for toncoins</td>",
"rst_description": "Currency in which the post will be paid. Currently, must be one of 'XTR' for Telegram Stars or 'TON' for toncoins\n",
"name": "currency",
"required": true
},
{
"type": "Integer",
"description": "The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000.",
"html_description": "<td>The amount of the currency that will be paid for the post in the <em>smallest units</em> of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000.</td>",
"rst_description": "The amount of the currency that will be paid for the post in the *smallest units* of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000.\n",
"name": "amount",
"required": true
}
],
"category": "types"
}
}

View file

@ -0,0 +1,33 @@
{
"meta": {},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "suggestedpostrefunded",
"name": "SuggestedPostRefunded",
"description": "Describes a service message about a payment refund for a suggested post.",
"html_description": "<p>Describes a service message about a payment refund for a suggested post.</p>",
"rst_description": "Describes a service message about a payment refund for a suggested post.",
"annotations": [
{
"type": "Message",
"description": "Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.",
"html_description": "<td><em>Optional</em>. Message containing the suggested post. Note that the <a href=\"#message\">Message</a> object in this field will not contain the <em>reply_to_message</em> field even if it itself is a reply.</td>",
"rst_description": "*Optional*. Message containing the suggested post. Note that the :class:`aiogram.types.message.Message` object in this field will not contain the *reply_to_message* field even if it itself is a reply.\n",
"name": "suggested_post_message",
"required": false
},
{
"type": "String",
"description": "Reason for the refund. Currently, one of 'post_deleted' if the post was deleted within 24 hours of being posted or removed from scheduled messages without being posted, or 'payment_refunded' if the payer refunded their payment.",
"html_description": "<td>Reason for the refund. Currently, one of &#8220;post_deleted&#8221; if the post was deleted within 24 hours of being posted or removed from scheduled messages without being posted, or &#8220;payment_refunded&#8221; if the payer refunded their payment.</td>",
"rst_description": "Reason for the refund. Currently, one of 'post_deleted' if the post was deleted within 24 hours of being posted or removed from scheduled messages without being posted, or 'payment_refunded' if the payer refunded their payment.\n",
"name": "reason",
"required": true
}
],
"category": "types"
}
}

View file

@ -58,6 +58,14 @@
"rst_description": "Backdrop of the gift\n",
"name": "backdrop",
"required": true
},
{
"type": "Chat",
"description": "Information about the chat that published the gift",
"html_description": "<td><em>Optional</em>. Information about the chat that published the gift</td>",
"rst_description": "*Optional*. Information about the chat that published the gift\n",
"name": "publisher_chat",
"required": false
}
],
"category": "types"