mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 02:52:12 +00:00
Added full support of Bot API 7.2 (#1444)
* Added base support of Bot API 7.2 * Added base support of Bot API 7.2 * Fixing tests and content types for Telegram Bot API 7.2 update (#1453) * Fixing tests and content types for Telegram Bot API 7.2 * Adding changelog for 1453 PR * Fixes + coverage * Replace `BusinessConnection.date` type * Reformat code * Refactor UserContextMiddleware to use EventContext class This update significantly refactors UserContextMiddleware to leverage a new class, EventContext. Instead of resolving event context as a tuple, it now produces an instance of EventContext. Additional adjustments include supporting a business connection ID for event context identification and facilitating backwards compatibility. Tests and other files were also updated accordingly for these changes. * Cover FSM key builder (business_connection_id * Added changelog --------- Co-authored-by: RoLOQ <roman.fedunn@gmail.com>
This commit is contained in:
parent
5f157beb26
commit
057478621b
147 changed files with 3509 additions and 651 deletions
41
.butcher/types/Birthdate/entity.json
Normal file
41
.butcher/types/Birthdate/entity.json
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"meta": {},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "birthdate",
|
||||
"name": "Birthdate",
|
||||
"description": "",
|
||||
"html_description": "",
|
||||
"rst_description": "",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Day of the user's birth; 1-31",
|
||||
"html_description": "<td>Day of the user's birth; 1-31</td>",
|
||||
"rst_description": "Day of the user's birth; 1-31\n",
|
||||
"name": "day",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Month of the user's birth; 1-12",
|
||||
"html_description": "<td>Month of the user's birth; 1-12</td>",
|
||||
"rst_description": "Month of the user's birth; 1-12\n",
|
||||
"name": "month",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Year of the user's birth",
|
||||
"html_description": "<td><em>Optional</em>. Year of the user's birth</td>",
|
||||
"rst_description": "*Optional*. Year of the user's birth\n",
|
||||
"name": "year",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
65
.butcher/types/BusinessConnection/entity.json
Normal file
65
.butcher/types/BusinessConnection/entity.json
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{
|
||||
"meta": {},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "businessconnection",
|
||||
"name": "BusinessConnection",
|
||||
"description": "Describes the connection of the bot with a business account.",
|
||||
"html_description": "<p>Describes the connection of the bot with a business account.</p>",
|
||||
"rst_description": "Describes the connection of the bot with a business account.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Unique identifier of the business connection",
|
||||
"html_description": "<td>Unique identifier of the business connection</td>",
|
||||
"rst_description": "Unique identifier of the business connection\n",
|
||||
"name": "id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "User",
|
||||
"description": "Business account user that created the business connection",
|
||||
"html_description": "<td>Business account user that created the business connection</td>",
|
||||
"rst_description": "Business account user that created the business connection\n",
|
||||
"name": "user",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Identifier of a private chat with the user who created the business connection. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.",
|
||||
"html_description": "<td>Identifier of a private chat with the user who created the business connection. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.</td>",
|
||||
"rst_description": "Identifier of a private chat with the user who created the business connection. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier.\n",
|
||||
"name": "user_chat_id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Date the connection was established in Unix time",
|
||||
"html_description": "<td>Date the connection was established in Unix time</td>",
|
||||
"rst_description": "Date the connection was established in Unix time\n",
|
||||
"name": "date",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours",
|
||||
"html_description": "<td>True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours</td>",
|
||||
"rst_description": "True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours\n",
|
||||
"name": "can_reply",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the connection is active",
|
||||
"html_description": "<td>True, if the connection is active</td>",
|
||||
"rst_description": "True, if the connection is active\n",
|
||||
"name": "is_enabled",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
5
.butcher/types/BusinessConnection/replace.yml
Normal file
5
.butcher/types/BusinessConnection/replace.yml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
annotations:
|
||||
date:
|
||||
parsed_type:
|
||||
type: std
|
||||
name: DateTime
|
||||
41
.butcher/types/BusinessIntro/entity.json
Normal file
41
.butcher/types/BusinessIntro/entity.json
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"meta": {},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "businessintro",
|
||||
"name": "BusinessIntro",
|
||||
"description": "",
|
||||
"html_description": "",
|
||||
"rst_description": "",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Title text of the business intro",
|
||||
"html_description": "<td><em>Optional</em>. Title text of the business intro</td>",
|
||||
"rst_description": "*Optional*. Title text of the business intro\n",
|
||||
"name": "title",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Message text of the business intro",
|
||||
"html_description": "<td><em>Optional</em>. Message text of the business intro</td>",
|
||||
"rst_description": "*Optional*. Message text of the business intro\n",
|
||||
"name": "message",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Sticker",
|
||||
"description": "Sticker of the business intro",
|
||||
"html_description": "<td><em>Optional</em>. Sticker of the business intro</td>",
|
||||
"rst_description": "*Optional*. Sticker of the business intro\n",
|
||||
"name": "sticker",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
33
.butcher/types/BusinessLocation/entity.json
Normal file
33
.butcher/types/BusinessLocation/entity.json
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"meta": {},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "businesslocation",
|
||||
"name": "BusinessLocation",
|
||||
"description": "",
|
||||
"html_description": "",
|
||||
"rst_description": "",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Address of the business",
|
||||
"html_description": "<td>Address of the business</td>",
|
||||
"rst_description": "Address of the business\n",
|
||||
"name": "address",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Location",
|
||||
"description": "Location of the business",
|
||||
"html_description": "<td><em>Optional</em>. Location of the business</td>",
|
||||
"rst_description": "*Optional*. Location of the business\n",
|
||||
"name": "location",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
41
.butcher/types/BusinessMessagesDeleted/entity.json
Normal file
41
.butcher/types/BusinessMessagesDeleted/entity.json
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"meta": {},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "businessmessagesdeleted",
|
||||
"name": "BusinessMessagesDeleted",
|
||||
"description": "This object is received when messages are deleted from a connected business account.",
|
||||
"html_description": "<p>This object is received when messages are deleted from a connected business account.</p>",
|
||||
"rst_description": "This object is received when messages are deleted from a connected business account.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Unique identifier of the business connection",
|
||||
"html_description": "<td>Unique identifier of the business connection</td>",
|
||||
"rst_description": "Unique identifier of the business connection\n",
|
||||
"name": "business_connection_id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Chat",
|
||||
"description": "Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.",
|
||||
"html_description": "<td>Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.</td>",
|
||||
"rst_description": "Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.\n",
|
||||
"name": "chat",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Array of Integer",
|
||||
"description": "A JSON-serialized list of identifiers of deleted messages in the chat of the business account",
|
||||
"html_description": "<td>A JSON-serialized list of identifiers of deleted messages in the chat of the business account</td>",
|
||||
"rst_description": "A JSON-serialized list of identifiers of deleted messages in the chat of the business account\n",
|
||||
"name": "message_ids",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
33
.butcher/types/BusinessOpeningHours/entity.json
Normal file
33
.butcher/types/BusinessOpeningHours/entity.json
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"meta": {},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "businessopeninghours",
|
||||
"name": "BusinessOpeningHours",
|
||||
"description": "",
|
||||
"html_description": "",
|
||||
"rst_description": "",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Unique name of the time zone for which the opening hours are defined",
|
||||
"html_description": "<td>Unique name of the time zone for which the opening hours are defined</td>",
|
||||
"rst_description": "Unique name of the time zone for which the opening hours are defined\n",
|
||||
"name": "time_zone_name",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Array of BusinessOpeningHoursInterval",
|
||||
"description": "List of time intervals describing business opening hours",
|
||||
"html_description": "<td>List of time intervals describing business opening hours</td>",
|
||||
"rst_description": "List of time intervals describing business opening hours\n",
|
||||
"name": "opening_hours",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
33
.butcher/types/BusinessOpeningHoursInterval/entity.json
Normal file
33
.butcher/types/BusinessOpeningHoursInterval/entity.json
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"meta": {},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "businessopeninghoursinterval",
|
||||
"name": "BusinessOpeningHoursInterval",
|
||||
"description": "",
|
||||
"html_description": "",
|
||||
"rst_description": "",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0 - 7 * 24 * 60",
|
||||
"html_description": "<td>The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0 - 7 * 24 * 60</td>",
|
||||
"rst_description": "The minute's sequence number in a week, starting on Monday, marking the start of the time interval during which the business is open; 0 - 7 * 24 * 60\n",
|
||||
"name": "opening_minute",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 0 - 8 * 24 * 60",
|
||||
"html_description": "<td>The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 0 - 8 * 24 * 60</td>",
|
||||
"rst_description": "The minute's sequence number in a week, starting on Monday, marking the end of the time interval during which the business is open; 0 - 8 * 24 * 60\n",
|
||||
"name": "closing_minute",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
|
|
@ -83,6 +83,46 @@
|
|||
"name": "active_usernames",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Birthdate",
|
||||
"description": "For private chats, the date of birth of the user. Returned only in getChat.",
|
||||
"html_description": "<td><em>Optional</em>. For private chats, the date of birth of the user. Returned only in <a href=\"#getchat\">getChat</a>.</td>",
|
||||
"rst_description": "*Optional*. For private chats, the date of birth of the user. Returned only in :class:`aiogram.methods.get_chat.GetChat`.\n",
|
||||
"name": "birthdate",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "BusinessIntro",
|
||||
"description": "For private chats with business accounts, the intro of the business. Returned only in getChat.",
|
||||
"html_description": "<td><em>Optional</em>. For private chats with business accounts, the intro of the business. Returned only in <a href=\"#getchat\">getChat</a>.</td>",
|
||||
"rst_description": "*Optional*. For private chats with business accounts, the intro of the business. Returned only in :class:`aiogram.methods.get_chat.GetChat`.\n",
|
||||
"name": "business_intro",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "BusinessLocation",
|
||||
"description": "For private chats with business accounts, the location of the business. Returned only in getChat.",
|
||||
"html_description": "<td><em>Optional</em>. For private chats with business accounts, the location of the business. Returned only in <a href=\"#getchat\">getChat</a>.</td>",
|
||||
"rst_description": "*Optional*. For private chats with business accounts, the location of the business. Returned only in :class:`aiogram.methods.get_chat.GetChat`.\n",
|
||||
"name": "business_location",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "BusinessOpeningHours",
|
||||
"description": "For private chats with business accounts, the opening hours of the business. Returned only in getChat.",
|
||||
"html_description": "<td><em>Optional</em>. For private chats with business accounts, the opening hours of the business. Returned only in <a href=\"#getchat\">getChat</a>.</td>",
|
||||
"rst_description": "*Optional*. For private chats with business accounts, the opening hours of the business. Returned only in :class:`aiogram.methods.get_chat.GetChat`.\n",
|
||||
"name": "business_opening_hours",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Chat",
|
||||
"description": "For private chats, the personal channel of the user. Returned only in getChat.",
|
||||
"html_description": "<td><em>Optional</em>. For private chats, the personal channel of the user. Returned only in <a href=\"#getchat\">getChat</a>.</td>",
|
||||
"rst_description": "*Optional*. For private chats, the personal channel of the user. Returned only in :class:`aiogram.methods.get_chat.GetChat`.\n",
|
||||
"name": "personal_chat",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Array of ReactionType",
|
||||
"description": "List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed. Returned only in getChat.",
|
||||
|
|
|
|||
|
|
@ -101,33 +101,33 @@
|
|||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the administrator can post messages in the channel, or access channel statistics; channels only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the administrator can post messages in the channel, or access channel statistics; channels only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the administrator can post messages in the channel, or access channel statistics; channels only\n",
|
||||
"description": "True, if the administrator can post messages in the channel, or access channel statistics; for channels only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the administrator can post messages in the channel, or access channel statistics; for channels only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the administrator can post messages in the channel, or access channel statistics; for channels only\n",
|
||||
"name": "can_post_messages",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the administrator can edit messages of other users and can pin messages; channels only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the administrator can edit messages of other users and can pin messages; channels only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the administrator can edit messages of other users and can pin messages; channels only\n",
|
||||
"description": "True, if the administrator can edit messages of other users and can pin messages; for channels only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the administrator can edit messages of other users and can pin messages; for channels only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the administrator can edit messages of other users and can pin messages; for channels only\n",
|
||||
"name": "can_edit_messages",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to pin messages; groups and supergroups only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to pin messages; groups and supergroups only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to pin messages; groups and supergroups only\n",
|
||||
"description": "True, if the user is allowed to pin messages; for groups and supergroups only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to pin messages; for groups and supergroups only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to pin messages; for groups and supergroups only\n",
|
||||
"name": "can_pin_messages",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only\n",
|
||||
"description": "True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only</td>",
|
||||
"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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,33 +125,33 @@
|
|||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the administrator can post messages in the channel, or access channel statistics; channels only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the administrator can post messages in the channel, or access channel statistics; channels only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the administrator can post messages in the channel, or access channel statistics; channels only\n",
|
||||
"description": "True, if the administrator can post messages in the channel, or access channel statistics; for channels only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the administrator can post messages in the channel, or access channel statistics; for channels only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the administrator can post messages in the channel, or access channel statistics; for channels only\n",
|
||||
"name": "can_post_messages",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the administrator can edit messages of other users and can pin messages; channels only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the administrator can edit messages of other users and can pin messages; channels only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the administrator can edit messages of other users and can pin messages; channels only\n",
|
||||
"description": "True, if the administrator can edit messages of other users and can pin messages; for channels only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the administrator can edit messages of other users and can pin messages; for channels only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the administrator can edit messages of other users and can pin messages; for channels only\n",
|
||||
"name": "can_edit_messages",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to pin messages; groups and supergroups only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to pin messages; groups and supergroups only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to pin messages; groups and supergroups only\n",
|
||||
"description": "True, if the user is allowed to pin messages; for groups and supergroups only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to pin messages; for groups and supergroups only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to pin messages; for groups and supergroups only\n",
|
||||
"name": "can_pin_messages",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only\n",
|
||||
"description": "True, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only</td>",
|
||||
"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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
"object": {
|
||||
"anchor": "chatshared",
|
||||
"name": "ChatShared",
|
||||
"description": "This object contains information about the chat whose identifier was shared with the bot using a KeyboardButtonRequestChat button.",
|
||||
"html_description": "<p>This object contains information about the chat whose identifier was shared with the bot using a <a href=\"#keyboardbuttonrequestchat\">KeyboardButtonRequestChat</a> button.</p>",
|
||||
"rst_description": "This object contains information about the chat whose identifier was shared with the bot using a :class:`aiogram.types.keyboard_button_request_chat.KeyboardButtonRequestChat` button.",
|
||||
"description": "This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button.",
|
||||
"html_description": "<p>This object contains information about a chat that was shared with the bot using a <a href=\"#keyboardbuttonrequestchat\">KeyboardButtonRequestChat</a> button.</p>",
|
||||
"rst_description": "This object contains information about a chat that was shared with the bot using a :class:`aiogram.types.keyboard_button_request_chat.KeyboardButtonRequestChat` button.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Integer",
|
||||
|
|
@ -26,6 +26,30 @@
|
|||
"rst_description": "Identifier of the shared chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot may not have access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by some other means.\n",
|
||||
"name": "chat_id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Title of the chat, if the title was requested by the bot.",
|
||||
"html_description": "<td><em>Optional</em>. Title of the chat, if the title was requested by the bot.</td>",
|
||||
"rst_description": "*Optional*. Title of the chat, if the title was requested by the bot.\n",
|
||||
"name": "title",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Username of the chat, if the username was requested by the bot and available.",
|
||||
"html_description": "<td><em>Optional</em>. Username of the chat, if the username was requested by the bot and available.</td>",
|
||||
"rst_description": "*Optional*. Username of the chat, if the username was requested by the bot and available.\n",
|
||||
"name": "username",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Array of PhotoSize",
|
||||
"description": "Available sizes of the chat photo, if the photo was requested by the bot",
|
||||
"html_description": "<td><em>Optional</em>. Available sizes of the chat photo, if the photo was requested by the bot</td>",
|
||||
"rst_description": "*Optional*. Available sizes of the chat photo, if the photo was requested by the bot\n",
|
||||
"name": "photo",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
|
|
|
|||
|
|
@ -21,65 +21,65 @@
|
|||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Base64-encoded encrypted Telegram Passport element data provided by the user, available for 'personal_details', 'passport', 'driver_license', 'identity_card', 'internal_passport' and 'address' types. Can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Base64-encoded encrypted Telegram Passport element data provided by the user, available for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Base64-encoded encrypted Telegram Passport element data provided by the user, available for 'personal_details', 'passport', 'driver_license', 'identity_card', 'internal_passport' and 'address' types. Can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"description": "Base64-encoded encrypted Telegram Passport element data provided by the user; available only for 'personal_details', 'passport', 'driver_license', 'identity_card', 'internal_passport' and 'address' types. Can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Base64-encoded encrypted Telegram Passport element data provided by the user; available only for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Base64-encoded encrypted Telegram Passport element data provided by the user; available only for 'personal_details', 'passport', 'driver_license', 'identity_card', 'internal_passport' and 'address' types. Can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"name": "data",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "User's verified phone number, available only for 'phone_number' type",
|
||||
"html_description": "<td><em>Optional</em>. User's verified phone number, available only for “phone_number” type</td>",
|
||||
"rst_description": "*Optional*. User's verified phone number, available only for 'phone_number' type\n",
|
||||
"description": "User's verified phone number; available only for 'phone_number' type",
|
||||
"html_description": "<td><em>Optional</em>. User's verified phone number; available only for “phone_number” type</td>",
|
||||
"rst_description": "*Optional*. User's verified phone number; available only for 'phone_number' type\n",
|
||||
"name": "phone_number",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "User's verified email address, available only for 'email' type",
|
||||
"html_description": "<td><em>Optional</em>. User's verified email address, available only for “email” type</td>",
|
||||
"rst_description": "*Optional*. User's verified email address, available only for 'email' type\n",
|
||||
"description": "User's verified email address; available only for 'email' type",
|
||||
"html_description": "<td><em>Optional</em>. User's verified email address; available only for “email” type</td>",
|
||||
"rst_description": "*Optional*. User's verified email address; available only for 'email' type\n",
|
||||
"name": "email",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Array of PassportFile",
|
||||
"description": "Array of encrypted files with documents provided by the user, available for 'utility_bill', 'bank_statement', 'rental_agreement', 'passport_registration' and 'temporary_registration' types. Files can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Array of encrypted files with documents provided by the user, available for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Array of encrypted files with documents provided by the user, available for 'utility_bill', 'bank_statement', 'rental_agreement', 'passport_registration' and 'temporary_registration' types. Files can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"description": "Array of encrypted files with documents provided by the user; available only for 'utility_bill', 'bank_statement', 'rental_agreement', 'passport_registration' and 'temporary_registration' types. Files can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Array of encrypted files with documents provided by the user; available only for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Array of encrypted files with documents provided by the user; available only for 'utility_bill', 'bank_statement', 'rental_agreement', 'passport_registration' and 'temporary_registration' types. Files can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"name": "files",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "PassportFile",
|
||||
"description": "Encrypted file with the front side of the document, provided by the user. Available for 'passport', 'driver_license', 'identity_card' and 'internal_passport'. The file can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Encrypted file with the front side of the document, provided by the user. Available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Encrypted file with the front side of the document, provided by the user. Available for 'passport', 'driver_license', 'identity_card' and 'internal_passport'. The file can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"description": "Encrypted file with the front side of the document, provided by the user; available only for 'passport', 'driver_license', 'identity_card' and 'internal_passport'. The file can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Encrypted file with the front side of the document, provided by the user; available only for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Encrypted file with the front side of the document, provided by the user; available only for 'passport', 'driver_license', 'identity_card' and 'internal_passport'. The file can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"name": "front_side",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "PassportFile",
|
||||
"description": "Encrypted file with the reverse side of the document, provided by the user. Available for 'driver_license' and 'identity_card'. The file can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Encrypted file with the reverse side of the document, provided by the user. Available for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Encrypted file with the reverse side of the document, provided by the user. Available for 'driver_license' and 'identity_card'. The file can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"description": "Encrypted file with the reverse side of the document, provided by the user; available only for 'driver_license' and 'identity_card'. The file can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Encrypted file with the reverse side of the document, provided by the user; available only for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Encrypted file with the reverse side of the document, provided by the user; available only for 'driver_license' and 'identity_card'. The file can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"name": "reverse_side",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "PassportFile",
|
||||
"description": "Encrypted file with the selfie of the user holding a document, provided by the user; available for 'passport', 'driver_license', 'identity_card' and 'internal_passport'. The file can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Encrypted file with the selfie of the user holding a document, provided by the user; available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Encrypted file with the selfie of the user holding a document, provided by the user; available for 'passport', 'driver_license', 'identity_card' and 'internal_passport'. The file can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"description": "Encrypted file with the selfie of the user holding a document, provided by the user; available if requested for 'passport', 'driver_license', 'identity_card' and 'internal_passport'. The file can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Encrypted file with the selfie of the user holding a document, provided by the user; available if requested for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Encrypted file with the selfie of the user holding a document, provided by the user; available if requested for 'passport', 'driver_license', 'identity_card' and 'internal_passport'. The file can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"name": "selfie",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Array of PassportFile",
|
||||
"description": "Array of encrypted files with translated versions of documents provided by the user. Available if requested for 'passport', 'driver_license', 'identity_card', 'internal_passport', 'utility_bill', 'bank_statement', 'rental_agreement', 'passport_registration' and 'temporary_registration' types. Files can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Array of encrypted files with translated versions of documents provided by the user. Available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Array of encrypted files with translated versions of documents provided by the user. Available if requested for 'passport', 'driver_license', 'identity_card', 'internal_passport', 'utility_bill', 'bank_statement', 'rental_agreement', 'passport_registration' and 'temporary_registration' types. Files can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"description": "Array of encrypted files with translated versions of documents provided by the user; available if requested for 'passport', 'driver_license', 'identity_card', 'internal_passport', 'utility_bill', 'bank_statement', 'rental_agreement', 'passport_registration' and 'temporary_registration' types. Files can be decrypted and verified using the accompanying EncryptedCredentials.",
|
||||
"html_description": "<td><em>Optional</em>. Array of encrypted files with translated versions of documents provided by the user; available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying <a href=\"#encryptedcredentials\">EncryptedCredentials</a>.</td>",
|
||||
"rst_description": "*Optional*. Array of encrypted files with translated versions of documents provided by the user; available if requested for 'passport', 'driver_license', 'identity_card', 'internal_passport', 'utility_bill', 'bank_statement', 'rental_agreement', 'passport_registration' and 'temporary_registration' types. Files can be decrypted and verified using the accompanying :class:`aiogram.types.encrypted_credentials.EncryptedCredentials`.\n",
|
||||
"name": "translation",
|
||||
"required": false
|
||||
},
|
||||
|
|
|
|||
|
|
@ -19,6 +19,14 @@
|
|||
"name": "sticker",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Format of the added sticker, must be one of 'static' for a .WEBP or .PNG image, 'animated' for a .TGS animation, 'video' for a WEBM video",
|
||||
"html_description": "<td>Format of the added sticker, must be one of “static” for a <strong>.WEBP</strong> or <strong>.PNG</strong> image, “animated” for a <strong>.TGS</strong> animation, “video” for a <strong>WEBM</strong> video</td>",
|
||||
"rst_description": "Format of the added sticker, must be one of 'static' for a **.WEBP** or **.PNG** image, 'animated' for a **.TGS** animation, 'video' for a **WEBM** video\n",
|
||||
"name": "format",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Array of String",
|
||||
"description": "List of 1-20 emoji associated with the sticker",
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
"object": {
|
||||
"anchor": "keyboardbuttonrequestchat",
|
||||
"name": "KeyboardButtonRequestChat",
|
||||
"description": "This object defines the criteria used to request a suitable chat. The identifier of the selected chat will be shared with the bot when the corresponding button is pressed.",
|
||||
"html_description": "<p>This object defines the criteria used to request a suitable chat. The identifier of the selected chat will be shared with the bot when the corresponding button is pressed. <a href=\"/bots/features#chat-and-user-selection\">More about requesting chats »</a></p>",
|
||||
"rst_description": "This object defines the criteria used to request a suitable chat. The identifier of the selected chat will be shared with the bot when the corresponding button is pressed. `More about requesting chats » <https://core.telegram.org/bots/features#chat-and-user-selection>`_",
|
||||
"description": "This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the сhat if appropriate",
|
||||
"html_description": "<p>This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the сhat if appropriate <a href=\"/bots/features#chat-and-user-selection\">More about requesting chats »</a></p>",
|
||||
"rst_description": "This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the сhat if appropriate `More about requesting chats » <https://core.telegram.org/bots/features#chat-and-user-selection>`_",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Integer",
|
||||
|
|
@ -74,6 +74,30 @@
|
|||
"rst_description": "*Optional*. Pass :code:`True` to request a chat with the bot as a member. Otherwise, no additional restrictions are applied.\n",
|
||||
"name": "bot_is_member",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "Pass True to request the chat's title",
|
||||
"html_description": "<td><em>Optional</em>. Pass <em>True</em> to request the chat's title</td>",
|
||||
"rst_description": "*Optional*. Pass :code:`True` to request the chat's title\n",
|
||||
"name": "request_title",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "Pass True to request the chat's username",
|
||||
"html_description": "<td><em>Optional</em>. Pass <em>True</em> to request the chat's username</td>",
|
||||
"rst_description": "*Optional*. Pass :code:`True` to request the chat's username\n",
|
||||
"name": "request_username",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "Pass True to request the chat's photo",
|
||||
"html_description": "<td><em>Optional</em>. Pass <em>True</em> to request the chat's photo</td>",
|
||||
"rst_description": "*Optional*. Pass :code:`True` to request the chat's photo\n",
|
||||
"name": "request_photo",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@
|
|||
"object": {
|
||||
"anchor": "keyboardbuttonrequestusers",
|
||||
"name": "KeyboardButtonRequestUsers",
|
||||
"description": "This object defines the criteria used to request suitable users. The identifiers of the selected users will be shared with the bot when the corresponding button is pressed.",
|
||||
"html_description": "<p>This object defines the criteria used to request suitable users. The identifiers of the selected users will be shared with the bot when the corresponding button is pressed. <a href=\"/bots/features#chat-and-user-selection\">More about requesting users »</a></p>",
|
||||
"rst_description": "This object defines the criteria used to request suitable users. The identifiers of the selected users will be shared with the bot when the corresponding button is pressed. `More about requesting users » <https://core.telegram.org/bots/features#chat-and-user-selection>`_",
|
||||
"description": "This object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed.",
|
||||
"html_description": "<p>This object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed. <a href=\"/bots/features#chat-and-user-selection\">More about requesting users »</a></p>",
|
||||
"rst_description": "This object defines the criteria used to request suitable users. Information about the selected users will be shared with the bot when the corresponding button is pressed. `More about requesting users » <https://core.telegram.org/bots/features#chat-and-user-selection>`_",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Integer",
|
||||
|
|
@ -42,6 +42,30 @@
|
|||
"rst_description": "*Optional*. The maximum number of users to be selected; 1-10. Defaults to 1.\n",
|
||||
"name": "max_quantity",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "Pass True to request the users' first and last name",
|
||||
"html_description": "<td><em>Optional</em>. Pass <em>True</em> to request the users' first and last name</td>",
|
||||
"rst_description": "*Optional*. Pass :code:`True` to request the users' first and last name\n",
|
||||
"name": "request_name",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "Pass True to request the users' username",
|
||||
"html_description": "<td><em>Optional</em>. Pass <em>True</em> to request the users' username</td>",
|
||||
"rst_description": "*Optional*. Pass :code:`True` to request the users' username\n",
|
||||
"name": "request_username",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "Pass True to request the users' photo",
|
||||
"html_description": "<td><em>Optional</em>. Pass <em>True</em> to request the users' photo</td>",
|
||||
"rst_description": "*Optional*. Pass :code:`True` to request the users' photo\n",
|
||||
"name": "request_photo",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
|
|
|
|||
|
|
@ -11,14 +11,6 @@
|
|||
"html_description": "<p>This object represents a point on the map.</p>",
|
||||
"rst_description": "This object represents a point on the map.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Float",
|
||||
"description": "Longitude as defined by sender",
|
||||
"html_description": "<td>Longitude as defined by sender</td>",
|
||||
"rst_description": "Longitude as defined by sender\n",
|
||||
"name": "longitude",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Float",
|
||||
"description": "Latitude as defined by sender",
|
||||
|
|
@ -27,6 +19,14 @@
|
|||
"name": "latitude",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Float",
|
||||
"description": "Longitude as defined by sender",
|
||||
"html_description": "<td>Longitude as defined by sender</td>",
|
||||
"rst_description": "Longitude as defined by sender\n",
|
||||
"name": "longitude",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Float",
|
||||
"description": "The radius of uncertainty for the location, measured in meters; 0-1500",
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ answer:
|
|||
fill: &fill-answer
|
||||
chat_id: self.chat.id
|
||||
message_thread_id: self.message_thread_id if self.is_topic_message else None
|
||||
business_connection_id: self.business_connection_id
|
||||
|
||||
reply:
|
||||
method: sendMessage
|
||||
|
|
|
|||
|
|
@ -51,6 +51,14 @@
|
|||
"name": "sender_boost_count",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "User",
|
||||
"description": "The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.",
|
||||
"html_description": "<td><em>Optional</em>. The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.</td>",
|
||||
"rst_description": "*Optional*. The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account.\n",
|
||||
"name": "sender_business_bot",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Date the message was sent in Unix time. It is always a positive number, representing a valid date.",
|
||||
|
|
@ -59,6 +67,14 @@
|
|||
"name": "date",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.",
|
||||
"html_description": "<td><em>Optional</em>. Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.</td>",
|
||||
"rst_description": "*Optional*. Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier.\n",
|
||||
"name": "business_connection_id",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Chat",
|
||||
"description": "Chat the message belongs to",
|
||||
|
|
@ -147,6 +163,14 @@
|
|||
"name": "has_protected_content",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "True",
|
||||
"description": "True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message",
|
||||
"html_description": "<td><em>Optional</em>. True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message</td>",
|
||||
"rst_description": "*Optional*. True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message\n",
|
||||
"name": "is_from_offline",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "The unique identifier of a media message group this message belongs to",
|
||||
|
|
|
|||
|
|
@ -21,17 +21,17 @@
|
|||
},
|
||||
{
|
||||
"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)",
|
||||
"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>)</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`)\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.",
|
||||
"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",
|
||||
"name": "chat_id",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "Pass True if the message should be sent even if the specified message to be replied to is not found; can be used only for replies in the same chat and forum topic.",
|
||||
"html_description": "<td><em>Optional</em>. Pass <em>True</em> if the message should be sent even if the specified message to be replied to is not found; can be used only for replies in the same chat and forum topic.</td>",
|
||||
"rst_description": "*Optional*. Pass :code:`True` if the message should be sent even if the specified message to be replied to is not found; can be used only for replies in the same chat and forum topic.\n",
|
||||
"description": "Pass True if the message should be sent even if the specified message to be replied to is not found. Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business account.",
|
||||
"html_description": "<td><em>Optional</em>. Pass <em>True</em> if the message should be sent even if the specified message to be replied to is not found. Always <em>False</em> for replies in another chat or forum topic. Always <em>True</em> for messages sent on behalf of a business account.</td>",
|
||||
"rst_description": "*Optional*. Pass :code:`True` if the message should be sent even if the specified message to be replied to is not found. Always :code:`False` for replies in another chat or forum topic. Always :code:`True` for messages sent on behalf of a business account.\n",
|
||||
"name": "allow_sending_without_reply",
|
||||
"required": false
|
||||
},
|
||||
|
|
|
|||
57
.butcher/types/SharedUser/entity.json
Normal file
57
.butcher/types/SharedUser/entity.json
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"meta": {},
|
||||
"group": {
|
||||
"title": "Available types",
|
||||
"anchor": "available-types"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "shareduser",
|
||||
"name": "SharedUser",
|
||||
"description": "This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUser button.",
|
||||
"html_description": "<p>This object contains information about a user that was shared with the bot using a <a href=\"#keyboardbuttonrequestuser\">KeyboardButtonRequestUser</a> button.</p>",
|
||||
"rst_description": "This object contains information about a user that was shared with the bot using a :class:`aiogram.types.keyboard_button_request_user.KeyboardButtonRequestUser` button.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Identifier of the shared user. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so 64-bit integers or double-precision float types are safe for storing these identifiers. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means.",
|
||||
"html_description": "<td>Identifier of the shared user. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so 64-bit integers or double-precision float types are safe for storing these identifiers. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means.</td>",
|
||||
"rst_description": "Identifier of the shared user. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so 64-bit integers or double-precision float types are safe for storing these identifiers. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means.\n",
|
||||
"name": "user_id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "First name of the user, if the name was requested by the bot",
|
||||
"html_description": "<td><em>Optional</em>. First name of the user, if the name was requested by the bot</td>",
|
||||
"rst_description": "*Optional*. First name of the user, if the name was requested by the bot\n",
|
||||
"name": "first_name",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Last name of the user, if the name was requested by the bot",
|
||||
"html_description": "<td><em>Optional</em>. Last name of the user, if the name was requested by the bot</td>",
|
||||
"rst_description": "*Optional*. Last name of the user, if the name was requested by the bot\n",
|
||||
"name": "last_name",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Username of the user, if the username was requested by the bot",
|
||||
"html_description": "<td><em>Optional</em>. Username of the user, if the username was requested by the bot</td>",
|
||||
"rst_description": "*Optional*. Username of the user, if the username was requested by the bot\n",
|
||||
"name": "username",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Array of PhotoSize",
|
||||
"description": "Available sizes of the chat photo, if the photo was requested by the bot",
|
||||
"html_description": "<td><em>Optional</em>. Available sizes of the chat photo, if the photo was requested by the bot</td>",
|
||||
"rst_description": "*Optional*. Available sizes of the chat photo, if the photo was requested by the bot\n",
|
||||
"name": "photo",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
|
|
@ -35,22 +35,6 @@
|
|||
"name": "sticker_type",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the sticker set contains animated stickers",
|
||||
"html_description": "<td><em>True</em>, if the sticker set contains <a href=\"https://telegram.org/blog/animated-stickers\">animated stickers</a></td>",
|
||||
"rst_description": ":code:`True`, if the sticker set contains `animated stickers <https://telegram.org/blog/animated-stickers>`_\n",
|
||||
"name": "is_animated",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the sticker set contains video stickers",
|
||||
"html_description": "<td><em>True</em>, if the sticker set contains <a href=\"https://telegram.org/blog/video-stickers-better-reactions\">video stickers</a></td>",
|
||||
"rst_description": ":code:`True`, if the sticker set contains `video stickers <https://telegram.org/blog/video-stickers-better-reactions>`_\n",
|
||||
"name": "is_video",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Array of Sticker",
|
||||
"description": "List of all set stickers",
|
||||
|
|
@ -66,6 +50,30 @@
|
|||
"rst_description": "*Optional*. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format\n",
|
||||
"name": "thumbnail",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the sticker set contains animated stickers",
|
||||
"html_description": "<td><em>True</em>, if the sticker set contains <a href=\"https://telegram.org/blog/animated-stickers\">animated stickers</a></td>",
|
||||
"rst_description": ":code:`True`, if the sticker set contains `animated stickers <https://telegram.org/blog/animated-stickers>`_\n",
|
||||
"name": "is_animated",
|
||||
"required": false,
|
||||
"deprecated": {
|
||||
"version": "7.2",
|
||||
"release_date": "2024-03-31"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the sticker set contains video stickers",
|
||||
"html_description": "<td><em>True</em>, if the sticker set contains <a href=\"https://telegram.org/blog/video-stickers-better-reactions\">video stickers</a></td>",
|
||||
"rst_description": ":code:`True`, if the sticker set contains `video stickers <https://telegram.org/blog/video-stickers-better-reactions>`_\n",
|
||||
"name": "is_video",
|
||||
"required": false,
|
||||
"deprecated": {
|
||||
"version": "7.2",
|
||||
"release_date": "2024-03-31"
|
||||
}
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
|
|
|
|||
|
|
@ -51,6 +51,38 @@
|
|||
"name": "edited_channel_post",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "BusinessConnection",
|
||||
"description": "The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot",
|
||||
"html_description": "<td><em>Optional</em>. The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot</td>",
|
||||
"rst_description": "*Optional*. The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot\n",
|
||||
"name": "business_connection",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Message",
|
||||
"description": "New non-service message from a connected business account",
|
||||
"html_description": "<td><em>Optional</em>. New non-service message from a connected business account</td>",
|
||||
"rst_description": "*Optional*. New non-service message from a connected business account\n",
|
||||
"name": "business_message",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Message",
|
||||
"description": "New version of a message from a connected business account",
|
||||
"html_description": "<td><em>Optional</em>. New version of a message from a connected business account</td>",
|
||||
"rst_description": "*Optional*. New version of a message from a connected business account\n",
|
||||
"name": "edited_business_message",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "BusinessMessagesDeleted",
|
||||
"description": "Messages were deleted from a connected business account",
|
||||
"html_description": "<td><em>Optional</em>. Messages were deleted from a connected business account</td>",
|
||||
"rst_description": "*Optional*. Messages were deleted from a connected business account\n",
|
||||
"name": "deleted_business_messages",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "MessageReactionUpdated",
|
||||
"description": "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.",
|
||||
|
|
|
|||
|
|
@ -98,6 +98,14 @@
|
|||
"rst_description": "*Optional*. :code:`True`, if the bot supports inline queries. Returned only in :class:`aiogram.methods.get_me.GetMe`.\n",
|
||||
"name": "supports_inline_queries",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Boolean",
|
||||
"description": "True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe.",
|
||||
"html_description": "<td><em>Optional</em>. <em>True</em>, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in <a href=\"#getme\">getMe</a>.</td>",
|
||||
"rst_description": "*Optional*. :code:`True`, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in :class:`aiogram.methods.get_me.GetMe`.\n",
|
||||
"name": "can_connect_to_business",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
|
|
|
|||
|
|
@ -19,13 +19,25 @@
|
|||
"name": "request_id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Array of SharedUser",
|
||||
"description": "Information about users shared with the bot.",
|
||||
"html_description": "<td>Information about users shared with the bot.</td>",
|
||||
"rst_description": "Information about users shared with the bot.\n",
|
||||
"name": "users",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Array of Integer",
|
||||
"description": "Identifiers of the shared users. These numbers may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting them. But they have at most 52 significant bits, so 64-bit integers or double-precision float types are safe for storing these identifiers. The bot may not have access to the users and could be unable to use these identifiers, unless the users are already known to the bot by some other means.",
|
||||
"html_description": "<td>Identifiers of the shared users. These numbers may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting them. But they have at most 52 significant bits, so 64-bit integers or double-precision float types are safe for storing these identifiers. The bot may not have access to the users and could be unable to use these identifiers, unless the users are already known to the bot by some other means.</td>",
|
||||
"rst_description": "Identifiers of the shared users. These numbers may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting them. But they have at most 52 significant bits, so 64-bit integers or double-precision float types are safe for storing these identifiers. The bot may not have access to the users and could be unable to use these identifiers, unless the users are already known to the bot by some other means.\n",
|
||||
"name": "user_ids",
|
||||
"required": true
|
||||
"required": false,
|
||||
"deprecated": {
|
||||
"version": "7.2",
|
||||
"release_date": "2024-03-31"
|
||||
}
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue