mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 09:11:34 +00:00
Added full support of Bot API 7.6 (#1533)
* Added full support of Bot API 7.6 * Fixed imports * fix tests (#1534) * Fixed coverage * Override InputPaidMedia media type to `str | InputFile` * Added shortcut * Fixed PaidMediaType enum * Added changelog --------- Co-authored-by: Oleg A <t0rr@mail.ru>
This commit is contained in:
parent
3baa7383c1
commit
11efa8e186
97 changed files with 2058 additions and 274 deletions
12
.butcher/enums/InputPaidMediaType.yml
Normal file
12
.butcher/enums/InputPaidMediaType.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
name: InputPaidMediaType
|
||||
description: |
|
||||
This object represents the type of a media in a paid message.
|
||||
|
||||
Source: https://core.telegram.org/bots/api#inputpaidmedia
|
||||
multi_parse:
|
||||
format: rst
|
||||
attribute: type
|
||||
regexp: '\*([a-z_]+)\*'
|
||||
entities:
|
||||
- InputPaidMediaPhoto
|
||||
- InputPaidMediaVideo
|
||||
13
.butcher/enums/PaidMediaType.yml
Normal file
13
.butcher/enums/PaidMediaType.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
name: PaidMediaType
|
||||
description: |
|
||||
This object represents the type of a media in a paid message.
|
||||
|
||||
Source: https://core.telegram.org/bots/api#paidmedia
|
||||
multi_parse:
|
||||
format: rst
|
||||
attribute: type
|
||||
regexp: "'([a-z]+)'"
|
||||
entities:
|
||||
- PaidMediaPhoto
|
||||
- PaidMediaPreview
|
||||
- PaidMediaVideo
|
||||
|
|
@ -10,3 +10,4 @@ multi_parse:
|
|||
- TransactionPartnerFragment
|
||||
- TransactionPartnerOther
|
||||
- TransactionPartnerUser
|
||||
- TransactionPartnerTelegramAds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue