Added full support of Bot API 7.11 (#1601)

* Added full support of Bot API 7.11

* Small fixes

* Added changelog
This commit is contained in:
Alex Root Junior 2024-11-02 16:13:45 +02:00 committed by GitHub
parent 4531c3628c
commit 405bbcc36f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
165 changed files with 1619 additions and 573 deletions

View file

@ -1,6 +1,6 @@
from __future__ import annotations
from typing import TYPE_CHECKING, Any, List, Optional, Union
from typing import TYPE_CHECKING, Any, Optional, Union
from pydantic import Field
@ -44,7 +44,7 @@ class AnswerInlineQuery(TelegramMethod[bool]):
inline_query_id: str
"""Unique identifier for the answered query"""
results: List[
results: list[
Union[
InlineQueryResultCachedAudio,
InlineQueryResultCachedDocument,
@ -96,7 +96,7 @@ class AnswerInlineQuery(TelegramMethod[bool]):
__pydantic__self__,
*,
inline_query_id: str,
results: List[
results: list[
Union[
InlineQueryResultCachedAudio,
InlineQueryResultCachedDocument,