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

@ -11,6 +11,14 @@
"html_description": "<p>This object contains information about one answer option in a poll.</p>",
"rst_description": "This object contains information about one answer option in a poll.",
"annotations": [
{
"type": "String",
"description": "Unique identifier of the option, persistent on option addition and deletion",
"html_description": "<td>Unique identifier of the option, persistent on option addition and deletion</td>",
"rst_description": "Unique identifier of the option, persistent on option addition and deletion\n",
"name": "persistent_id",
"required": true
},
{
"type": "String",
"description": "Option text, 1-100 characters",
@ -29,11 +37,35 @@
},
{
"type": "Integer",
"description": "Number of users that voted for this option",
"html_description": "<td>Number of users that voted for this option</td>",
"rst_description": "Number of users that voted for this option\n",
"description": "Number of users who voted for this option; may be 0 if unknown",
"html_description": "<td>Number of users who voted for this option; may be 0 if unknown</td>",
"rst_description": "Number of users who voted for this option; may be 0 if unknown\n",
"name": "voter_count",
"required": true
},
{
"type": "User",
"description": "User who added the option; omitted if the option wasn't added by a user after poll creation",
"html_description": "<td><em>Optional</em>. User who added the option; omitted if the option wasn't added by a user after poll creation</td>",
"rst_description": "*Optional*. User who added the option; omitted if the option wasn't added by a user after poll creation\n",
"name": "added_by_user",
"required": false
},
{
"type": "Chat",
"description": "Chat that added the option; omitted if the option wasn't added by a chat after poll creation",
"html_description": "<td><em>Optional</em>. Chat that added the option; omitted if the option wasn't added by a chat after poll creation</td>",
"rst_description": "*Optional*. Chat that added the option; omitted if the option wasn't added by a chat after poll creation\n",
"name": "added_by_chat",
"required": false
},
{
"type": "Integer",
"description": "Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll",
"html_description": "<td><em>Optional</em>. Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll</td>",
"rst_description": "*Optional*. Point in time (Unix timestamp) when the option was added; omitted if the option existed in the original poll\n",
"name": "addition_date",
"required": false
}
],
"category": "types"

View file

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