mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added basic support of Bot API 6.6
This commit is contained in:
parent
5adaf7a567
commit
824df34534
109 changed files with 2907 additions and 25 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(...))
|
||||
|
|
@ -121,6 +121,24 @@ Games
|
|||
send_game
|
||||
set_game_score
|
||||
|
||||
Upcoming update
|
||||
===============
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
delete_sticker_set
|
||||
get_my_description
|
||||
get_my_short_description
|
||||
set_custom_emoji_sticker_set_thumbnail
|
||||
set_my_description
|
||||
set_my_short_description
|
||||
set_sticker_emoji_list
|
||||
set_sticker_keywords
|
||||
set_sticker_mask_position
|
||||
set_sticker_set_thumbnail
|
||||
set_sticker_set_title
|
||||
|
||||
Getting updates
|
||||
===============
|
||||
|
||||
|
|
|
|||
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(...)
|
||||
9
docs/api/types/bot_description.rst
Normal file
9
docs/api/types/bot_description.rst
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
##############
|
||||
BotDescription
|
||||
##############
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.bot_description
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
9
docs/api/types/bot_short_description.rst
Normal file
9
docs/api/types/bot_short_description.rst
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
###################
|
||||
BotShortDescription
|
||||
###################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.bot_short_description
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
|
|
@ -189,6 +189,16 @@ Payments
|
|||
shipping_query
|
||||
successful_payment
|
||||
|
||||
Upcoming update
|
||||
===============
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
bot_description
|
||||
bot_short_description
|
||||
input_sticker
|
||||
|
||||
Games
|
||||
=====
|
||||
|
||||
|
|
|
|||
9
docs/api/types/input_sticker.rst
Normal file
9
docs/api/types/input_sticker.rst
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
############
|
||||
InputSticker
|
||||
############
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.input_sticker
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
Loading…
Add table
Add a link
Reference in a new issue