mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
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:
parent
4531c3628c
commit
405bbcc36f
165 changed files with 1619 additions and 573 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue