mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Bump API schema to version 9.4, add new object types, methods, and properties.
This commit is contained in:
parent
1708980ceb
commit
7bf08af977
48 changed files with 1186 additions and 46 deletions
38
docs/api/methods/get_user_profile_audios.rst
Normal file
38
docs/api/methods/get_user_profile_audios.rst
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
####################
|
||||
getUserProfileAudios
|
||||
####################
|
||||
|
||||
Returns: :obj:`UserProfileAudios`
|
||||
|
||||
.. automodule:: aiogram.methods.get_user_profile_audios
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: UserProfileAudios = await bot.get_user_profile_audios(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.get_user_profile_audios import GetUserProfileAudios`
|
||||
- alias: :code:`from aiogram.methods import GetUserProfileAudios`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: UserProfileAudios = await bot(GetUserProfileAudios(...))
|
||||
|
|
@ -82,6 +82,7 @@ Available methods
|
|||
get_my_short_description
|
||||
get_user_chat_boosts
|
||||
get_user_gifts
|
||||
get_user_profile_audios
|
||||
get_user_profile_photos
|
||||
gift_premium_subscription
|
||||
hide_general_forum_topic
|
||||
|
|
@ -93,6 +94,7 @@ Available methods
|
|||
read_business_message
|
||||
remove_business_account_profile_photo
|
||||
remove_chat_verification
|
||||
remove_my_profile_photo
|
||||
remove_user_verification
|
||||
reopen_forum_topic
|
||||
reopen_general_forum_topic
|
||||
|
|
@ -135,6 +137,7 @@ Available methods
|
|||
set_my_default_administrator_rights
|
||||
set_my_description
|
||||
set_my_name
|
||||
set_my_profile_photo
|
||||
set_my_short_description
|
||||
set_user_emoji_status
|
||||
transfer_business_account_stars
|
||||
|
|
|
|||
45
docs/api/methods/remove_my_profile_photo.rst
Normal file
45
docs/api/methods/remove_my_profile_photo.rst
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
####################
|
||||
removeMyProfilePhoto
|
||||
####################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.remove_my_profile_photo
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.remove_my_profile_photo(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.remove_my_profile_photo import RemoveMyProfilePhoto`
|
||||
- alias: :code:`from aiogram.methods import RemoveMyProfilePhoto`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(RemoveMyProfilePhoto(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return RemoveMyProfilePhoto(...)
|
||||
45
docs/api/methods/set_my_profile_photo.rst
Normal file
45
docs/api/methods/set_my_profile_photo.rst
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#################
|
||||
setMyProfilePhoto
|
||||
#################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.set_my_profile_photo
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.set_my_profile_photo(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.set_my_profile_photo import SetMyProfilePhoto`
|
||||
- alias: :code:`from aiogram.methods import SetMyProfilePhoto`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(SetMyProfilePhoto(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return SetMyProfilePhoto(...)
|
||||
10
docs/api/types/chat_owner_changed.rst
Normal file
10
docs/api/types/chat_owner_changed.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
################
|
||||
ChatOwnerChanged
|
||||
################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.chat_owner_changed
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/chat_owner_left.rst
Normal file
10
docs/api/types/chat_owner_left.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#############
|
||||
ChatOwnerLeft
|
||||
#############
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.chat_owner_left
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
|
@ -67,6 +67,8 @@ Available types
|
|||
chat_member_owner
|
||||
chat_member_restricted
|
||||
chat_member_updated
|
||||
chat_owner_changed
|
||||
chat_owner_left
|
||||
chat_permissions
|
||||
chat_photo
|
||||
chat_shared
|
||||
|
|
@ -199,6 +201,7 @@ Available types
|
|||
unique_gift_symbol
|
||||
user
|
||||
user_chat_boosts
|
||||
user_profile_audios
|
||||
user_profile_photos
|
||||
user_rating
|
||||
user_shared
|
||||
|
|
@ -210,6 +213,7 @@ Available types
|
|||
video_chat_scheduled
|
||||
video_chat_started
|
||||
video_note
|
||||
video_quality
|
||||
voice
|
||||
web_app_data
|
||||
web_app_info
|
||||
|
|
|
|||
10
docs/api/types/user_profile_audios.rst
Normal file
10
docs/api/types/user_profile_audios.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#################
|
||||
UserProfileAudios
|
||||
#################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.user_profile_audios
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/video_quality.rst
Normal file
10
docs/api/types/video_quality.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
############
|
||||
VideoQuality
|
||||
############
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.video_quality
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
Loading…
Add table
Add a link
Reference in a new issue