mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added full support of Telegram Bot API 9.3 (#1747)
* Added full support of Telegram Bot API 9.3 * Fixed tests that fails * Add tests for `GetChatGifts`, `GetUserGifts`, `RepostStory`, and `SendMessageDraft` methods * Added changelog record
This commit is contained in:
parent
ce4ddb77f4
commit
dcff0f99c7
132 changed files with 2993 additions and 457 deletions
34
.butcher/types/UniqueGiftInfo/entity.json
generated
34
.butcher/types/UniqueGiftInfo/entity.json
generated
|
|
@ -21,18 +21,26 @@
|
|||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Origin of the gift. Currently, either 'upgrade' for gifts upgraded from regular gifts, 'transfer' for gifts transferred from other users or channels, or 'resale' for gifts bought from other users",
|
||||
"html_description": "<td>Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, or “resale” for gifts bought from other users</td>",
|
||||
"rst_description": "Origin of the gift. Currently, either 'upgrade' for gifts upgraded from regular gifts, 'transfer' for gifts transferred from other users or channels, or 'resale' for gifts bought from other users\n",
|
||||
"description": "Origin of the gift. Currently, either 'upgrade' for gifts upgraded from regular gifts, 'transfer' for gifts transferred from other users or channels, 'resale' for gifts bought from other users, 'gifted_upgrade' for upgrades purchased after the gift was sent, or 'offer' for gifts bought or sold through gift purchase offers",
|
||||
"html_description": "<td>Origin of the gift. Currently, either “upgrade” for gifts upgraded from regular gifts, “transfer” for gifts transferred from other users or channels, “resale” for gifts bought from other users, “gifted_upgrade” for upgrades purchased after the gift was sent, or “offer” for gifts bought or sold through gift purchase offers</td>",
|
||||
"rst_description": "Origin of the gift. Currently, either 'upgrade' for gifts upgraded from regular gifts, 'transfer' for gifts transferred from other users or channels, 'resale' for gifts bought from other users, 'gifted_upgrade' for upgrades purchased after the gift was sent, or 'offer' for gifts bought or sold through gift purchase offers\n",
|
||||
"name": "origin",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of 'XTR' for Telegram Stars or 'TON' for toncoins.",
|
||||
"html_description": "<td><em>Optional</em>. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of “XTR” for Telegram Stars or “TON” for toncoins.</td>",
|
||||
"rst_description": "*Optional*. For gifts bought from other users, the currency in which the payment for the gift was done. Currently, one of 'XTR' for Telegram Stars or 'TON' for toncoins.\n",
|
||||
"name": "last_resale_currency",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "For gifts bought from other users, the price paid for the gift",
|
||||
"html_description": "<td><em>Optional</em>. For gifts bought from other users, the price paid for the gift</td>",
|
||||
"rst_description": "*Optional*. For gifts bought from other users, the price paid for the gift\n",
|
||||
"name": "last_resale_star_count",
|
||||
"description": "For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins",
|
||||
"html_description": "<td><em>Optional</em>. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins</td>",
|
||||
"rst_description": "*Optional*. For gifts bought from other users, the price paid for the gift in either Telegram Stars or nanotoncoins\n",
|
||||
"name": "last_resale_amount",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
|
|
@ -58,6 +66,18 @@
|
|||
"rst_description": "*Optional*. Point in time (Unix timestamp) when the gift can be transferred. If it is in the past, then the gift can be transferred now\n",
|
||||
"name": "next_transfer_date",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "For gifts bought from other users, the price paid for the gift",
|
||||
"html_description": "<td><em>Optional</em>. For gifts bought from other users, the price paid for the gift</td>",
|
||||
"rst_description": "*Optional*. For gifts bought from other users, the price paid for the gift\n",
|
||||
"name": "last_resale_star_count",
|
||||
"required": false,
|
||||
"deprecated": {
|
||||
"version": "9.3",
|
||||
"release_date": "2025-12-31"
|
||||
}
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue