mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added full support of Bot API 8.1 (#1617)
* Added full support of Bot API 8.1 * Remove artifacts from types and methods (model_* methods)
This commit is contained in:
parent
6520b9fba2
commit
782796c217
25 changed files with 433 additions and 51 deletions
57
.butcher/types/AffiliateInfo/entity.json
Normal file
57
.butcher/types/AffiliateInfo/entity.json
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{
|
||||
"meta": {},
|
||||
"group": {
|
||||
"title": "Payments",
|
||||
"anchor": "payments"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "affiliateinfo",
|
||||
"name": "AffiliateInfo",
|
||||
"description": "Contains information about the affiliate that received a commission via this transaction.",
|
||||
"html_description": "<p>Contains information about the affiliate that received a commission via this transaction.</p>",
|
||||
"rst_description": "Contains information about the affiliate that received a commission via this transaction.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "User",
|
||||
"description": "The bot or the user that received an affiliate commission if it was received by a bot or a user",
|
||||
"html_description": "<td><em>Optional</em>. The bot or the user that received an affiliate commission if it was received by a bot or a user</td>",
|
||||
"rst_description": "*Optional*. The bot or the user that received an affiliate commission if it was received by a bot or a user\n",
|
||||
"name": "affiliate_user",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Chat",
|
||||
"description": "The chat that received an affiliate commission if it was received by a chat",
|
||||
"html_description": "<td><em>Optional</em>. The chat that received an affiliate commission if it was received by a chat</td>",
|
||||
"rst_description": "*Optional*. The chat that received an affiliate commission if it was received by a chat\n",
|
||||
"name": "affiliate_chat",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users",
|
||||
"html_description": "<td>The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users</td>",
|
||||
"rst_description": "The number of Telegram Stars received by the affiliate for each 1000 Telegram Stars received by the bot from referred users\n",
|
||||
"name": "commission_per_mille",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds",
|
||||
"html_description": "<td>Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds</td>",
|
||||
"rst_description": "Integer amount of Telegram Stars received by the affiliate from the transaction, rounded to 0; can be negative for refunds\n",
|
||||
"name": "amount",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds",
|
||||
"html_description": "<td><em>Optional</em>. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds</td>",
|
||||
"rst_description": "*Optional*. The number of 1/1000000000 shares of Telegram Stars received by the affiliate; from -999999999 to 999999999; can be negative for refunds\n",
|
||||
"name": "nanostar_amount",
|
||||
"required": false
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue