mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added full support of Telegram Bot API 9.3 (#1747)
* Added full support of Telegram Bot API 9.3 * Fixed tests that fails * Add tests for `GetChatGifts`, `GetUserGifts`, `RepostStory`, and `SendMessageDraft` methods * Added changelog record
This commit is contained in:
parent
ce4ddb77f4
commit
dcff0f99c7
132 changed files with 2993 additions and 457 deletions
38
docs/api/methods/get_chat_gifts.rst
Normal file
38
docs/api/methods/get_chat_gifts.rst
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
############
|
||||
getChatGifts
|
||||
############
|
||||
|
||||
Returns: :obj:`OwnedGifts`
|
||||
|
||||
.. automodule:: aiogram.methods.get_chat_gifts
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: OwnedGifts = await bot.get_chat_gifts(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.get_chat_gifts import GetChatGifts`
|
||||
- alias: :code:`from aiogram.methods import GetChatGifts`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: OwnedGifts = await bot(GetChatGifts(...))
|
||||
38
docs/api/methods/get_user_gifts.rst
Normal file
38
docs/api/methods/get_user_gifts.rst
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
############
|
||||
getUserGifts
|
||||
############
|
||||
|
||||
Returns: :obj:`OwnedGifts`
|
||||
|
||||
.. automodule:: aiogram.methods.get_user_gifts
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: OwnedGifts = await bot.get_user_gifts(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.get_user_gifts import GetUserGifts`
|
||||
- alias: :code:`from aiogram.methods import GetUserGifts`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: OwnedGifts = await bot(GetUserGifts(...))
|
||||
|
|
@ -68,6 +68,7 @@ Available methods
|
|||
get_business_connection
|
||||
get_chat
|
||||
get_chat_administrators
|
||||
get_chat_gifts
|
||||
get_chat_member
|
||||
get_chat_member_count
|
||||
get_chat_menu_button
|
||||
|
|
@ -80,6 +81,7 @@ Available methods
|
|||
get_my_name
|
||||
get_my_short_description
|
||||
get_user_chat_boosts
|
||||
get_user_gifts
|
||||
get_user_profile_photos
|
||||
gift_premium_subscription
|
||||
hide_general_forum_topic
|
||||
|
|
@ -94,6 +96,7 @@ Available methods
|
|||
remove_user_verification
|
||||
reopen_forum_topic
|
||||
reopen_general_forum_topic
|
||||
repost_story
|
||||
restrict_chat_member
|
||||
revoke_chat_invite_link
|
||||
send_animation
|
||||
|
|
@ -107,6 +110,7 @@ Available methods
|
|||
send_location
|
||||
send_media_group
|
||||
send_message
|
||||
send_message_draft
|
||||
send_paid_media
|
||||
send_photo
|
||||
send_poll
|
||||
|
|
|
|||
45
docs/api/methods/repost_story.rst
Normal file
45
docs/api/methods/repost_story.rst
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
###########
|
||||
repostStory
|
||||
###########
|
||||
|
||||
Returns: :obj:`Story`
|
||||
|
||||
.. automodule:: aiogram.methods.repost_story
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Story = await bot.repost_story(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.repost_story import RepostStory`
|
||||
- alias: :code:`from aiogram.methods import RepostStory`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: Story = await bot(RepostStory(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return RepostStory(...)
|
||||
45
docs/api/methods/send_message_draft.rst
Normal file
45
docs/api/methods/send_message_draft.rst
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
################
|
||||
sendMessageDraft
|
||||
################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.send_message_draft
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.send_message_draft(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.send_message_draft import SendMessageDraft`
|
||||
- alias: :code:`from aiogram.methods import SendMessageDraft`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(SendMessageDraft(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return SendMessageDraft(...)
|
||||
10
docs/api/types/gift_background.rst
Normal file
10
docs/api/types/gift_background.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
##############
|
||||
GiftBackground
|
||||
##############
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.gift_background
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
|
@ -91,6 +91,7 @@ Available types
|
|||
general_forum_topic_hidden
|
||||
general_forum_topic_unhidden
|
||||
gift
|
||||
gift_background
|
||||
gift_info
|
||||
gifts
|
||||
giveaway
|
||||
|
|
@ -192,12 +193,14 @@ Available types
|
|||
unique_gift
|
||||
unique_gift_backdrop
|
||||
unique_gift_backdrop_colors
|
||||
unique_gift_colors
|
||||
unique_gift_info
|
||||
unique_gift_model
|
||||
unique_gift_symbol
|
||||
user
|
||||
user_chat_boosts
|
||||
user_profile_photos
|
||||
user_rating
|
||||
user_shared
|
||||
users_shared
|
||||
venue
|
||||
|
|
|
|||
10
docs/api/types/unique_gift_colors.rst
Normal file
10
docs/api/types/unique_gift_colors.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
################
|
||||
UniqueGiftColors
|
||||
################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.unique_gift_colors
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/user_rating.rst
Normal file
10
docs/api/types/user_rating.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
##########
|
||||
UserRating
|
||||
##########
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.user_rating
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
Loading…
Add table
Add a link
Reference in a new issue