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:
Alex Root Junior 2023-03-11 02:17:47 +02:00 committed by GitHub
parent 5adaf7a567
commit 6570d0bab1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
218 changed files with 7687 additions and 1741 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

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

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