mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Merge branch 'refs/heads/dev-3.x'
This commit is contained in:
commit
2a8b27ede7
179 changed files with 4977 additions and 828 deletions
45
docs/api/methods/approve_suggested_post.rst
Normal file
45
docs/api/methods/approve_suggested_post.rst
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
####################
|
||||
approveSuggestedPost
|
||||
####################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.approve_suggested_post
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.approve_suggested_post(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.approve_suggested_post import ApproveSuggestedPost`
|
||||
- alias: :code:`from aiogram.methods import ApproveSuggestedPost`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(ApproveSuggestedPost(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return ApproveSuggestedPost(...)
|
||||
45
docs/api/methods/decline_suggested_post.rst
Normal file
45
docs/api/methods/decline_suggested_post.rst
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
####################
|
||||
declineSuggestedPost
|
||||
####################
|
||||
|
||||
Returns: :obj:`bool`
|
||||
|
||||
.. automodule:: aiogram.methods.decline_suggested_post
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await bot.decline_suggested_post(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.decline_suggested_post import DeclineSuggestedPost`
|
||||
- alias: :code:`from aiogram.methods import DeclineSuggestedPost`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: bool = await bot(DeclineSuggestedPost(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return DeclineSuggestedPost(...)
|
||||
|
|
@ -41,23 +41,30 @@ Available methods
|
|||
close
|
||||
close_forum_topic
|
||||
close_general_forum_topic
|
||||
convert_gift_to_stars
|
||||
copy_message
|
||||
copy_messages
|
||||
create_chat_invite_link
|
||||
create_chat_subscription_invite_link
|
||||
create_forum_topic
|
||||
decline_chat_join_request
|
||||
delete_business_messages
|
||||
delete_chat_photo
|
||||
delete_chat_sticker_set
|
||||
delete_forum_topic
|
||||
delete_my_commands
|
||||
delete_story
|
||||
edit_chat_invite_link
|
||||
edit_chat_subscription_invite_link
|
||||
edit_forum_topic
|
||||
edit_general_forum_topic
|
||||
edit_story
|
||||
export_chat_invite_link
|
||||
forward_message
|
||||
forward_messages
|
||||
get_available_gifts
|
||||
get_business_account_gifts
|
||||
get_business_account_star_balance
|
||||
get_business_connection
|
||||
get_chat
|
||||
get_chat_administrators
|
||||
|
|
@ -74,11 +81,17 @@ Available methods
|
|||
get_my_short_description
|
||||
get_user_chat_boosts
|
||||
get_user_profile_photos
|
||||
gift_premium_subscription
|
||||
hide_general_forum_topic
|
||||
leave_chat
|
||||
log_out
|
||||
pin_chat_message
|
||||
post_story
|
||||
promote_chat_member
|
||||
read_business_message
|
||||
remove_business_account_profile_photo
|
||||
remove_chat_verification
|
||||
remove_user_verification
|
||||
reopen_forum_topic
|
||||
reopen_general_forum_topic
|
||||
restrict_chat_member
|
||||
|
|
@ -90,6 +103,7 @@ Available methods
|
|||
send_contact
|
||||
send_dice
|
||||
send_document
|
||||
send_gift
|
||||
send_location
|
||||
send_media_group
|
||||
send_message
|
||||
|
|
@ -100,6 +114,11 @@ Available methods
|
|||
send_video
|
||||
send_video_note
|
||||
send_voice
|
||||
set_business_account_bio
|
||||
set_business_account_gift_settings
|
||||
set_business_account_name
|
||||
set_business_account_profile_photo
|
||||
set_business_account_username
|
||||
set_chat_administrator_custom_title
|
||||
set_chat_description
|
||||
set_chat_menu_button
|
||||
|
|
@ -114,6 +133,8 @@ Available methods
|
|||
set_my_name
|
||||
set_my_short_description
|
||||
set_user_emoji_status
|
||||
transfer_business_account_stars
|
||||
transfer_gift
|
||||
unban_chat_member
|
||||
unban_chat_sender_chat
|
||||
unhide_general_forum_topic
|
||||
|
|
@ -121,6 +142,9 @@ Available methods
|
|||
unpin_all_forum_topic_messages
|
||||
unpin_all_general_forum_topic_messages
|
||||
unpin_chat_message
|
||||
upgrade_gift
|
||||
verify_chat
|
||||
verify_user
|
||||
|
||||
Updating messages
|
||||
=================
|
||||
|
|
@ -128,40 +152,18 @@ Updating messages
|
|||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
convert_gift_to_stars
|
||||
delete_business_messages
|
||||
approve_suggested_post
|
||||
decline_suggested_post
|
||||
delete_message
|
||||
delete_messages
|
||||
delete_story
|
||||
edit_message_caption
|
||||
edit_message_checklist
|
||||
edit_message_live_location
|
||||
edit_message_media
|
||||
edit_message_reply_markup
|
||||
edit_message_text
|
||||
edit_story
|
||||
get_available_gifts
|
||||
get_business_account_gifts
|
||||
get_business_account_star_balance
|
||||
gift_premium_subscription
|
||||
post_story
|
||||
read_business_message
|
||||
remove_business_account_profile_photo
|
||||
remove_chat_verification
|
||||
remove_user_verification
|
||||
send_gift
|
||||
set_business_account_bio
|
||||
set_business_account_gift_settings
|
||||
set_business_account_name
|
||||
set_business_account_profile_photo
|
||||
set_business_account_username
|
||||
stop_message_live_location
|
||||
stop_poll
|
||||
transfer_business_account_stars
|
||||
transfer_gift
|
||||
upgrade_gift
|
||||
verify_chat
|
||||
verify_user
|
||||
|
||||
Inline mode
|
||||
===========
|
||||
|
|
|
|||
10
docs/api/types/direct_messages_topic.rst
Normal file
10
docs/api/types/direct_messages_topic.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
###################
|
||||
DirectMessagesTopic
|
||||
###################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.direct_messages_topic
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
|
@ -78,6 +78,7 @@ Available types
|
|||
copy_text_button
|
||||
dice
|
||||
direct_message_price_changed
|
||||
direct_messages_topic
|
||||
document
|
||||
external_reply_info
|
||||
file
|
||||
|
|
@ -178,6 +179,14 @@ Available types
|
|||
story_area_type_suggested_reaction
|
||||
story_area_type_unique_gift
|
||||
story_area_type_weather
|
||||
suggested_post_approval_failed
|
||||
suggested_post_approved
|
||||
suggested_post_declined
|
||||
suggested_post_info
|
||||
suggested_post_paid
|
||||
suggested_post_parameters
|
||||
suggested_post_price
|
||||
suggested_post_refunded
|
||||
switch_inline_query_chosen_chat
|
||||
text_quote
|
||||
unique_gift
|
||||
|
|
|
|||
10
docs/api/types/suggested_post_approval_failed.rst
Normal file
10
docs/api/types/suggested_post_approval_failed.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
###########################
|
||||
SuggestedPostApprovalFailed
|
||||
###########################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.suggested_post_approval_failed
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/suggested_post_approved.rst
Normal file
10
docs/api/types/suggested_post_approved.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#####################
|
||||
SuggestedPostApproved
|
||||
#####################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.suggested_post_approved
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/suggested_post_declined.rst
Normal file
10
docs/api/types/suggested_post_declined.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#####################
|
||||
SuggestedPostDeclined
|
||||
#####################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.suggested_post_declined
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/suggested_post_info.rst
Normal file
10
docs/api/types/suggested_post_info.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#################
|
||||
SuggestedPostInfo
|
||||
#################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.suggested_post_info
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/suggested_post_paid.rst
Normal file
10
docs/api/types/suggested_post_paid.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#################
|
||||
SuggestedPostPaid
|
||||
#################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.suggested_post_paid
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/suggested_post_parameters.rst
Normal file
10
docs/api/types/suggested_post_parameters.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#######################
|
||||
SuggestedPostParameters
|
||||
#######################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.suggested_post_parameters
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/suggested_post_price.rst
Normal file
10
docs/api/types/suggested_post_price.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
##################
|
||||
SuggestedPostPrice
|
||||
##################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.suggested_post_price
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/suggested_post_refunded.rst
Normal file
10
docs/api/types/suggested_post_refunded.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#####################
|
||||
SuggestedPostRefunded
|
||||
#####################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.suggested_post_refunded
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
|
@ -22,6 +22,10 @@ RedisStorage
|
|||
MongoStorage
|
||||
------------
|
||||
|
||||
.. autoclass:: aiogram.fsm.storage.pymongo.PyMongoStorage
|
||||
:members: __init__, from_url
|
||||
:member-order: bysource
|
||||
|
||||
.. autoclass:: aiogram.fsm.storage.mongo.MongoStorage
|
||||
:members: __init__, from_url
|
||||
:member-order: bysource
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue