mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Added support of Bot API 6.2 (#975)
* Added support of Bot API 6.2 * Added changelog * Update tests * Update API version * Update dependencies, pre-commit config * Added pytest config
This commit is contained in:
parent
4315ecf1a2
commit
c1341ba2df
78 changed files with 523 additions and 785 deletions
37
docs/api/methods/get_custom_emoji_stickers.rst
Normal file
37
docs/api/methods/get_custom_emoji_stickers.rst
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
######################
|
||||
getCustomEmojiStickers
|
||||
######################
|
||||
|
||||
Returns: :obj:`List[Sticker]`
|
||||
|
||||
.. automodule:: aiogram.methods.get_custom_emoji_stickers
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: List[Sticker] = await bot.get_custom_emoji_stickers(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.get_custom_emoji_stickers import GetCustomEmojiStickers`
|
||||
- alias: :code:`from aiogram.methods import GetCustomEmojiStickers`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: List[Sticker] = await bot(GetCustomEmojiStickers(...))
|
||||
|
|
@ -108,6 +108,7 @@ Stickers
|
|||
|
||||
send_sticker
|
||||
get_sticker_set
|
||||
get_custom_emoji_stickers
|
||||
upload_sticker_file
|
||||
create_new_sticker_set
|
||||
add_sticker_to_set
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.send_chat_action import SendChatAction`
|
||||
- alias: :code:`from aiogram.methods import SendChatAction`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await SendChatAction(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.set_chat_sticker_set import SetChatStickerSet`
|
||||
- alias: :code:`from aiogram.methods import SetChatStickerSet`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await SetChatStickerSet(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.set_chat_title import SetChatTitle`
|
||||
- alias: :code:`from aiogram.methods import SetChatTitle`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await SetChatTitle(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.set_game_score import SetGameScore`
|
||||
- alias: :code:`from aiogram.methods import SetGameScore`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: Union[Message, bool] = await SetGameScore(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.set_my_commands import SetMyCommands`
|
||||
- alias: :code:`from aiogram.methods import SetMyCommands`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await SetMyCommands(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.set_my_default_administrator_rights import SetMyDefaultAdministratorRights`
|
||||
- alias: :code:`from aiogram.methods import SetMyDefaultAdministratorRights`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await SetMyDefaultAdministratorRights(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.set_passport_data_errors import SetPassportDataErrors`
|
||||
- alias: :code:`from aiogram.methods import SetPassportDataErrors`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await SetPassportDataErrors(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.set_sticker_position_in_set import SetStickerPositionInSet`
|
||||
- alias: :code:`from aiogram.methods import SetStickerPositionInSet`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await SetStickerPositionInSet(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.set_sticker_set_thumb import SetStickerSetThumb`
|
||||
- alias: :code:`from aiogram.methods import SetStickerSetThumb`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await SetStickerSetThumb(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.set_webhook import SetWebhook`
|
||||
- alias: :code:`from aiogram.methods import SetWebhook`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await SetWebhook(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.stop_message_live_location import StopMessageLiveLocation`
|
||||
- alias: :code:`from aiogram.methods import StopMessageLiveLocation`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: Union[Message, bool] = await StopMessageLiveLocation(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.stop_poll import StopPoll`
|
||||
- alias: :code:`from aiogram.methods import StopPoll`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: Poll = await StopPoll(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.unban_chat_member import UnbanChatMember`
|
||||
- alias: :code:`from aiogram.methods import UnbanChatMember`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await UnbanChatMember(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.unban_chat_sender_chat import UnbanChatSenderChat`
|
||||
- alias: :code:`from aiogram.methods import UnbanChatSenderChat`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await UnbanChatSenderChat(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.unpin_all_chat_messages import UnpinAllChatMessages`
|
||||
- alias: :code:`from aiogram.methods import UnpinAllChatMessages`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await UnpinAllChatMessages(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.unpin_chat_message import UnpinChatMessage`
|
||||
- alias: :code:`from aiogram.methods import UnpinChatMessage`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await UnpinChatMessage(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -29,13 +29,6 @@ Imports:
|
|||
- :code:`from aiogram.methods.upload_sticker_file import UploadStickerFile`
|
||||
- alias: :code:`from aiogram.methods import UploadStickerFile`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: File = await UploadStickerFile(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue