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:
Alex Root Junior 2024-07-06 20:31:49 +03:00 committed by GitHub
parent 3baa7383c1
commit 11efa8e186
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
97 changed files with 2058 additions and 274 deletions

View file

@ -174,6 +174,11 @@ reply_voice:
code: *assert-chat
fill: *fill-reply
answer_paid_media:
method: sendPaidMedia
code: *assert-chat
fill: *fill-answer
copy_to:
method: copyMessage
code: *assert-chat

View file

@ -243,6 +243,14 @@
"name": "document",
"required": false
},
{
"type": "PaidMediaInfo",
"description": "Message contains paid media; information about the paid media",
"html_description": "<td><em>Optional</em>. Message contains paid media; information about the paid media</td>",
"rst_description": "*Optional*. Message contains paid media; information about the paid media\n",
"name": "paid_media",
"required": false
},
{
"type": "Array of PhotoSize",
"description": "Message is a photo, available sizes of the photo",
@ -293,9 +301,9 @@
},
{
"type": "String",
"description": "Caption for the animation, audio, document, photo, video or voice",
"html_description": "<td><em>Optional</em>. Caption for the animation, audio, document, photo, video or voice</td>",
"rst_description": "*Optional*. Caption for the animation, audio, document, photo, video or voice\n",
"description": "Caption for the animation, audio, document, paid media, photo, video or voice",
"html_description": "<td><em>Optional</em>. Caption for the animation, audio, document, paid media, photo, video or voice</td>",
"rst_description": "*Optional*. Caption for the animation, audio, document, paid media, photo, video or voice\n",
"name": "caption",
"required": false
},