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

@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -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(...))

View file

@ -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(...))

View file

@ -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(...))

View file

@ -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(...))

View file

@ -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(...))

View file

@ -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(...))

View file

@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~