mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
Bot API 6.6 (#1139)
* Added basic support of Bot API 6.6 * Update descriptions * Added StickerFormat enum * Bump version * Refresh from docs * Fixed CommandStart * Fixed files uploading * Cover new functionality * Added changelog * Update texts
This commit is contained in:
parent
5adaf7a567
commit
6570d0bab1
218 changed files with 7687 additions and 1741 deletions
44
docs/api/methods/delete_sticker_set.rst
Normal file
44
docs/api/methods/delete_sticker_set.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
################
|
||||
deleteStickerSet
|
||||
################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.delete_sticker_set
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.delete_sticker_set(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.delete_sticker_set import DeleteStickerSet`
|
||||
- alias: :code:`from aiogram.methods import DeleteStickerSet`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(DeleteStickerSet(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return DeleteStickerSet(...)
|
||||
37
docs/api/methods/get_my_description.rst
Normal file
37
docs/api/methods/get_my_description.rst
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
################
|
||||
getMyDescription
|
||||
################
|
||||
|
||||
Returns: :obj:`BotDescription`
|
||||
|
||||
.. automodule:: aiogram.methods.get_my_description
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: BotDescription = await bot.get_my_description(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.get_my_description import GetMyDescription`
|
||||
- alias: :code:`from aiogram.methods import GetMyDescription`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: BotDescription = await bot(GetMyDescription(...))
|
||||
37
docs/api/methods/get_my_short_description.rst
Normal file
37
docs/api/methods/get_my_short_description.rst
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
#####################
|
||||
getMyShortDescription
|
||||
#####################
|
||||
|
||||
Returns: :obj:`BotShortDescription`
|
||||
|
||||
.. automodule:: aiogram.methods.get_my_short_description
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: BotShortDescription = await bot.get_my_short_description(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.get_my_short_description import GetMyShortDescription`
|
||||
- alias: :code:`from aiogram.methods import GetMyShortDescription`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: BotShortDescription = await bot(GetMyShortDescription(...))
|
||||
|
|
@ -29,7 +29,6 @@ Available methods
|
|||
edit_chat_invite_link
|
||||
edit_forum_topic
|
||||
edit_general_forum_topic
|
||||
edit_message_live_location
|
||||
export_chat_invite_link
|
||||
forward_message
|
||||
get_chat
|
||||
|
|
@ -42,6 +41,8 @@ Available methods
|
|||
get_me
|
||||
get_my_commands
|
||||
get_my_default_administrator_rights
|
||||
get_my_description
|
||||
get_my_short_description
|
||||
get_user_profile_photos
|
||||
hide_general_forum_topic
|
||||
leave_chat
|
||||
|
|
@ -76,7 +77,8 @@ Available methods
|
|||
set_chat_title
|
||||
set_my_commands
|
||||
set_my_default_administrator_rights
|
||||
stop_message_live_location
|
||||
set_my_description
|
||||
set_my_short_description
|
||||
unban_chat_member
|
||||
unban_chat_sender_chat
|
||||
unhide_general_forum_topic
|
||||
|
|
@ -104,11 +106,17 @@ Stickers
|
|||
add_sticker_to_set
|
||||
create_new_sticker_set
|
||||
delete_sticker_from_set
|
||||
delete_sticker_set
|
||||
get_custom_emoji_stickers
|
||||
get_sticker_set
|
||||
send_sticker
|
||||
set_custom_emoji_sticker_set_thumbnail
|
||||
set_sticker_emoji_list
|
||||
set_sticker_keywords
|
||||
set_sticker_mask_position
|
||||
set_sticker_position_in_set
|
||||
set_sticker_set_thumb
|
||||
set_sticker_set_thumbnail
|
||||
set_sticker_set_title
|
||||
upload_sticker_file
|
||||
|
||||
Games
|
||||
|
|
@ -148,9 +156,11 @@ Updating messages
|
|||
|
||||
delete_message
|
||||
edit_message_caption
|
||||
edit_message_live_location
|
||||
edit_message_media
|
||||
edit_message_reply_markup
|
||||
edit_message_text
|
||||
stop_message_live_location
|
||||
stop_poll
|
||||
|
||||
Inline mode
|
||||
|
|
|
|||
44
docs/api/methods/set_custom_emoji_sticker_set_thumbnail.rst
Normal file
44
docs/api/methods/set_custom_emoji_sticker_set_thumbnail.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#################################
|
||||
setCustomEmojiStickerSetThumbnail
|
||||
#################################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.set_custom_emoji_sticker_set_thumbnail
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.set_custom_emoji_sticker_set_thumbnail(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.set_custom_emoji_sticker_set_thumbnail import SetCustomEmojiStickerSetThumbnail`
|
||||
- alias: :code:`from aiogram.methods import SetCustomEmojiStickerSetThumbnail`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(SetCustomEmojiStickerSetThumbnail(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return SetCustomEmojiStickerSetThumbnail(...)
|
||||
44
docs/api/methods/set_my_description.rst
Normal file
44
docs/api/methods/set_my_description.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
################
|
||||
setMyDescription
|
||||
################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.set_my_description
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.set_my_description(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.set_my_description import SetMyDescription`
|
||||
- alias: :code:`from aiogram.methods import SetMyDescription`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(SetMyDescription(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return SetMyDescription(...)
|
||||
44
docs/api/methods/set_my_short_description.rst
Normal file
44
docs/api/methods/set_my_short_description.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
#####################
|
||||
setMyShortDescription
|
||||
#####################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.set_my_short_description
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.set_my_short_description(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.set_my_short_description import SetMyShortDescription`
|
||||
- alias: :code:`from aiogram.methods import SetMyShortDescription`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(SetMyShortDescription(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return SetMyShortDescription(...)
|
||||
44
docs/api/methods/set_sticker_emoji_list.rst
Normal file
44
docs/api/methods/set_sticker_emoji_list.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
###################
|
||||
setStickerEmojiList
|
||||
###################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.set_sticker_emoji_list
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.set_sticker_emoji_list(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.set_sticker_emoji_list import SetStickerEmojiList`
|
||||
- alias: :code:`from aiogram.methods import SetStickerEmojiList`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(SetStickerEmojiList(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return SetStickerEmojiList(...)
|
||||
44
docs/api/methods/set_sticker_keywords.rst
Normal file
44
docs/api/methods/set_sticker_keywords.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
##################
|
||||
setStickerKeywords
|
||||
##################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.set_sticker_keywords
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.set_sticker_keywords(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.set_sticker_keywords import SetStickerKeywords`
|
||||
- alias: :code:`from aiogram.methods import SetStickerKeywords`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(SetStickerKeywords(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return SetStickerKeywords(...)
|
||||
44
docs/api/methods/set_sticker_mask_position.rst
Normal file
44
docs/api/methods/set_sticker_mask_position.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
######################
|
||||
setStickerMaskPosition
|
||||
######################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.set_sticker_mask_position
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.set_sticker_mask_position(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.set_sticker_mask_position import SetStickerMaskPosition`
|
||||
- alias: :code:`from aiogram.methods import SetStickerMaskPosition`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(SetStickerMaskPosition(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return SetStickerMaskPosition(...)
|
||||
44
docs/api/methods/set_sticker_set_thumbnail.rst
Normal file
44
docs/api/methods/set_sticker_set_thumbnail.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
######################
|
||||
setStickerSetThumbnail
|
||||
######################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.set_sticker_set_thumbnail
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.set_sticker_set_thumbnail(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.set_sticker_set_thumbnail import SetStickerSetThumbnail`
|
||||
- alias: :code:`from aiogram.methods import SetStickerSetThumbnail`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(SetStickerSetThumbnail(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return SetStickerSetThumbnail(...)
|
||||
44
docs/api/methods/set_sticker_set_title.rst
Normal file
44
docs/api/methods/set_sticker_set_title.rst
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
##################
|
||||
setStickerSetTitle
|
||||
##################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.set_sticker_set_title
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.set_sticker_set_title(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.set_sticker_set_title import SetStickerSetTitle`
|
||||
- alias: :code:`from aiogram.methods import SetStickerSetTitle`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(SetStickerSetTitle(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return SetStickerSetTitle(...)
|
||||
Loading…
Add table
Add a link
Reference in a new issue