Added full support for the Bot API 9.6 (#1792)

* Added full support for the Bot API 9.6

* Add support for `managed_bot` updates

* Set `description_parse_mode` default to `"parse_mode"` and use `DateTime` for `addition_date` in `PollOption`

* Update changelog with features and changes from Bot API 9.6

* Add changelog fragment generator and update poll parameter descriptions
This commit is contained in:
Alex Root Junior 2026-04-04 01:22:08 +03:00 committed by GitHub
parent 00c1130938
commit 9f49c0413f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
107 changed files with 3077 additions and 328 deletions

View file

@ -84,11 +84,19 @@
"required": true
},
{
"type": "Integer",
"description": "0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.",
"html_description": "<td><em>Optional</em>. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.</td>",
"rst_description": "*Optional*. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.\n",
"name": "correct_option_id",
"type": "Boolean",
"description": "True, if the poll allows to change the chosen answer options",
"html_description": "<td><em>True</em>, if the poll allows to change the chosen answer options</td>",
"rst_description": ":code:`True`, if the poll allows to change the chosen answer options\n",
"name": "allows_revoting",
"required": true
},
{
"type": "Array of Integer",
"description": "Array of 0-based identifiers of the correct answer options. Available only for polls in quiz mode which are closed or were sent (not forwarded) by the bot or to the private chat with the bot.",
"html_description": "<td><em>Optional</em>. Array of 0-based identifiers of the correct answer options. Available only for polls in quiz mode which are closed or were sent (not forwarded) by the bot or to the private chat with the bot.</td>",
"rst_description": "*Optional*. Array of 0-based identifiers of the correct answer options. Available only for polls in quiz mode which are closed or were sent (not forwarded) by the bot or to the private chat with the bot.\n",
"name": "correct_option_ids",
"required": false
},
{
@ -122,6 +130,34 @@
"rst_description": "*Optional*. Point in time (Unix timestamp) when the poll will be automatically closed\n",
"name": "close_date",
"required": false
},
{
"type": "String",
"description": "Description of the poll; for polls inside the Message object only",
"html_description": "<td><em>Optional</em>. Description of the poll; for polls inside the <a href=\"#message\">Message</a> object only</td>",
"rst_description": "*Optional*. Description of the poll; for polls inside the :class:`aiogram.types.message.Message` object only\n",
"name": "description",
"required": false
},
{
"type": "Array of MessageEntity",
"description": "Special entities like usernames, URLs, bot commands, etc. that appear in the description",
"html_description": "<td><em>Optional</em>. Special entities like usernames, URLs, bot commands, etc. that appear in the description</td>",
"rst_description": "*Optional*. Special entities like usernames, URLs, bot commands, etc. that appear in the description\n",
"name": "description_entities",
"required": false
},
{
"type": "Integer",
"description": "0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.",
"html_description": "<td><em>Optional</em>. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.</td>",
"rst_description": "*Optional*. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.\n",
"name": "correct_option_id",
"required": false,
"deprecated": {
"version": "9.6",
"release_date": "2026-04-03"
}
}
],
"category": "types"