Added basic support of Bot API 6.6

This commit is contained in:
Alex Root Junior 2023-03-09 00:29:58 +02:00
parent 5adaf7a567
commit 824df34534
No known key found for this signature in database
GPG key ID: 074C1D455EBEA4AC
109 changed files with 2907 additions and 25 deletions

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

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

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

View file

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

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

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

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

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

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

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

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

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

View file

@ -0,0 +1,9 @@
##############
BotDescription
##############
.. automodule:: aiogram.types.bot_description
:members:
:member-order: bysource
:undoc-members: True

View file

@ -0,0 +1,9 @@
###################
BotShortDescription
###################
.. automodule:: aiogram.types.bot_short_description
:members:
:member-order: bysource
:undoc-members: True

View file

@ -189,6 +189,16 @@ Payments
shipping_query
successful_payment
Upcoming update
===============
.. toctree::
:maxdepth: 1
bot_description
bot_short_description
input_sticker
Games
=====

View file

@ -0,0 +1,9 @@
############
InputSticker
############
.. automodule:: aiogram.types.input_sticker
:members:
:member-order: bysource
:undoc-members: True