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

@ -0,0 +1,33 @@
{
"meta": {},
"group": {
"title": "Available types",
"anchor": "available-types"
},
"object": {
"anchor": "paidmediainfo",
"name": "PaidMediaInfo",
"description": "Describes the paid media added to a message.",
"html_description": "<p>Describes the paid media added to a message.</p>",
"rst_description": "Describes the paid media added to a message.",
"annotations": [
{
"type": "Integer",
"description": "The number of Telegram Stars that must be paid to buy access to the media",
"html_description": "<td>The number of Telegram Stars that must be paid to buy access to the media</td>",
"rst_description": "The number of Telegram Stars that must be paid to buy access to the media\n",
"name": "star_count",
"required": true
},
{
"type": "Array of PaidMedia",
"description": "Information about the paid media",
"html_description": "<td>Information about the paid media</td>",
"rst_description": "Information about the paid media\n",
"name": "paid_media",
"required": true
}
],
"category": "types"
}
}