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
|
|
@ -2,7 +2,7 @@
|
|||
copyMessages
|
||||
############
|
||||
|
||||
Returns: :obj:`List[MessageId]`
|
||||
Returns: :obj:`list[MessageId]`
|
||||
|
||||
.. automodule:: aiogram.methods.copy_messages
|
||||
:members:
|
||||
|
|
@ -19,7 +19,7 @@ As bot method
|
|||
|
||||
.. code-block::
|
||||
|
||||
result: List[MessageId] = await bot.copy_messages(...)
|
||||
result: list[MessageId] = await bot.copy_messages(...)
|
||||
|
||||
|
||||
Method as object
|
||||
|
|
@ -35,7 +35,7 @@ With specific bot
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
result: List[MessageId] = await bot(CopyMessages(...))
|
||||
result: list[MessageId] = await bot(CopyMessages(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
forwardMessages
|
||||
###############
|
||||
|
||||
Returns: :obj:`List[MessageId]`
|
||||
Returns: :obj:`list[MessageId]`
|
||||
|
||||
.. automodule:: aiogram.methods.forward_messages
|
||||
:members:
|
||||
|
|
@ -19,7 +19,7 @@ As bot method
|
|||
|
||||
.. code-block::
|
||||
|
||||
result: List[MessageId] = await bot.forward_messages(...)
|
||||
result: list[MessageId] = await bot.forward_messages(...)
|
||||
|
||||
|
||||
Method as object
|
||||
|
|
@ -35,7 +35,7 @@ With specific bot
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
result: List[MessageId] = await bot(ForwardMessages(...))
|
||||
result: list[MessageId] = await bot(ForwardMessages(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
getChatAdministrators
|
||||
#####################
|
||||
|
||||
Returns: :obj:`List[Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]]`
|
||||
Returns: :obj:`list[Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]]`
|
||||
|
||||
.. automodule:: aiogram.methods.get_chat_administrators
|
||||
:members:
|
||||
|
|
@ -19,7 +19,7 @@ As bot method
|
|||
|
||||
.. code-block::
|
||||
|
||||
result: List[Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]] = await bot.get_chat_administrators(...)
|
||||
result: list[Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]] = await bot.get_chat_administrators(...)
|
||||
|
||||
|
||||
Method as object
|
||||
|
|
@ -35,7 +35,7 @@ With specific bot
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
result: List[Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]] = await bot(GetChatAdministrators(...))
|
||||
result: list[Union[ChatMemberOwner, ChatMemberAdministrator, ChatMemberMember, ChatMemberRestricted, ChatMemberLeft, ChatMemberBanned]] = await bot(GetChatAdministrators(...))
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
getCustomEmojiStickers
|
||||
######################
|
||||
|
||||
Returns: :obj:`List[Sticker]`
|
||||
Returns: :obj:`list[Sticker]`
|
||||
|
||||
.. automodule:: aiogram.methods.get_custom_emoji_stickers
|
||||
:members:
|
||||
|
|
@ -19,7 +19,7 @@ As bot method
|
|||
|
||||
.. code-block::
|
||||
|
||||
result: List[Sticker] = await bot.get_custom_emoji_stickers(...)
|
||||
result: list[Sticker] = await bot.get_custom_emoji_stickers(...)
|
||||
|
||||
|
||||
Method as object
|
||||
|
|
@ -35,4 +35,4 @@ With specific bot
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
result: List[Sticker] = await bot(GetCustomEmojiStickers(...))
|
||||
result: list[Sticker] = await bot(GetCustomEmojiStickers(...))
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
getForumTopicIconStickers
|
||||
#########################
|
||||
|
||||
Returns: :obj:`List[Sticker]`
|
||||
Returns: :obj:`list[Sticker]`
|
||||
|
||||
.. automodule:: aiogram.methods.get_forum_topic_icon_stickers
|
||||
:members:
|
||||
|
|
@ -19,7 +19,7 @@ As bot method
|
|||
|
||||
.. code-block::
|
||||
|
||||
result: List[Sticker] = await bot.get_forum_topic_icon_stickers(...)
|
||||
result: list[Sticker] = await bot.get_forum_topic_icon_stickers(...)
|
||||
|
||||
|
||||
Method as object
|
||||
|
|
@ -35,4 +35,4 @@ With specific bot
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
result: List[Sticker] = await bot(GetForumTopicIconStickers(...))
|
||||
result: list[Sticker] = await bot(GetForumTopicIconStickers(...))
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
getGameHighScores
|
||||
#################
|
||||
|
||||
Returns: :obj:`List[GameHighScore]`
|
||||
Returns: :obj:`list[GameHighScore]`
|
||||
|
||||
.. automodule:: aiogram.methods.get_game_high_scores
|
||||
:members:
|
||||
|
|
@ -19,7 +19,7 @@ As bot method
|
|||
|
||||
.. code-block::
|
||||
|
||||
result: List[GameHighScore] = await bot.get_game_high_scores(...)
|
||||
result: list[GameHighScore] = await bot.get_game_high_scores(...)
|
||||
|
||||
|
||||
Method as object
|
||||
|
|
@ -35,4 +35,4 @@ With specific bot
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
result: List[GameHighScore] = await bot(GetGameHighScores(...))
|
||||
result: list[GameHighScore] = await bot(GetGameHighScores(...))
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
getMyCommands
|
||||
#############
|
||||
|
||||
Returns: :obj:`List[BotCommand]`
|
||||
Returns: :obj:`list[BotCommand]`
|
||||
|
||||
.. automodule:: aiogram.methods.get_my_commands
|
||||
:members:
|
||||
|
|
@ -19,7 +19,7 @@ As bot method
|
|||
|
||||
.. code-block::
|
||||
|
||||
result: List[BotCommand] = await bot.get_my_commands(...)
|
||||
result: list[BotCommand] = await bot.get_my_commands(...)
|
||||
|
||||
|
||||
Method as object
|
||||
|
|
@ -35,4 +35,4 @@ With specific bot
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
result: List[BotCommand] = await bot(GetMyCommands(...))
|
||||
result: list[BotCommand] = await bot(GetMyCommands(...))
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
getUpdates
|
||||
##########
|
||||
|
||||
Returns: :obj:`List[Update]`
|
||||
Returns: :obj:`list[Update]`
|
||||
|
||||
.. automodule:: aiogram.methods.get_updates
|
||||
:members:
|
||||
|
|
@ -19,7 +19,7 @@ As bot method
|
|||
|
||||
.. code-block::
|
||||
|
||||
result: List[Update] = await bot.get_updates(...)
|
||||
result: list[Update] = await bot.get_updates(...)
|
||||
|
||||
|
||||
Method as object
|
||||
|
|
@ -35,4 +35,4 @@ With specific bot
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
result: List[Update] = await bot(GetUpdates(...))
|
||||
result: list[Update] = await bot(GetUpdates(...))
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
sendMediaGroup
|
||||
##############
|
||||
|
||||
Returns: :obj:`List[Message]`
|
||||
Returns: :obj:`list[Message]`
|
||||
|
||||
.. automodule:: aiogram.methods.send_media_group
|
||||
:members:
|
||||
|
|
@ -19,7 +19,7 @@ As bot method
|
|||
|
||||
.. code-block::
|
||||
|
||||
result: List[Message] = await bot.send_media_group(...)
|
||||
result: list[Message] = await bot.send_media_group(...)
|
||||
|
||||
|
||||
Method as object
|
||||
|
|
@ -35,7 +35,7 @@ With specific bot
|
|||
|
||||
.. code-block:: python
|
||||
|
||||
result: List[Message] = await bot(SendMediaGroup(...))
|
||||
result: list[Message] = await bot(SendMediaGroup(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue