Add support for Telegram Bot API 9.1 (#1704)

* Add support for Telegram Bot API 9.1 features, including checklists, gifts, and new methods like `SendChecklist`, `EditMessageChecklist`, and `GetMyStarBalance`. Update changelog and improve `True` field descriptions.

* Bump API Version

* Refactor profile photo types to use `InputProfilePhotoType` enums instead of hardcoded literals

* Refactor imports and clean up redundant code across methods, types, and webhook server classes
This commit is contained in:
Alex Root Junior 2025-07-05 03:02:44 +03:00 committed by GitHub
parent 77ca49518e
commit f060c08d16
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
117 changed files with 2565 additions and 466 deletions

View file

@ -0,0 +1,33 @@
{
"meta": {},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "directmessagepricechanged",
"name": "DirectMessagePriceChanged",
"description": "Describes a service message about a change in the price of direct messages sent to a channel chat.",
"html_description": "<p>Describes a service message about a change in the price of direct messages sent to a channel chat.</p>",
"rst_description": "Describes a service message about a change in the price of direct messages sent to a channel chat.",
"annotations": [
{
"type": "Boolean",
"description": "True, if direct messages are enabled for the channel chat; false otherwise",
"html_description": "<td><em>True</em>, if direct messages are enabled for the channel chat; false otherwise</td>",
"rst_description": ":code:`True`, if direct messages are enabled for the channel chat; false otherwise\n",
"name": "are_direct_messages_enabled",
"required": true
},
{
"type": "Integer",
"description": "The new number of Telegram Stars that must be paid by users for each direct message sent to the channel. Does not apply to users who have been exempted by administrators. Defaults to 0.",
"html_description": "<td><em>Optional</em>. The new number of Telegram Stars that must be paid by users for each direct message sent to the channel. Does not apply to users who have been exempted by administrators. Defaults to 0.</td>",
"rst_description": "*Optional*. The new number of Telegram Stars that must be paid by users for each direct message sent to the channel. Does not apply to users who have been exempted by administrators. Defaults to 0.\n",
"name": "direct_message_star_count",
"required": false
}
],
"category": "types"
}
}