Added full support for the Bot API 9.0

This commit is contained in:
JRoot Junior 2025-04-12 23:03:30 +03:00
parent 25e9127db9
commit e9b917a729
No known key found for this signature in database
GPG key ID: 738964250D5FF6E2
228 changed files with 9562 additions and 386 deletions

View file

@ -0,0 +1,45 @@
##################
convertGiftToStars
##################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.convert_gift_to_stars
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.convert_gift_to_stars(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.convert_gift_to_stars import ConvertGiftToStars`
- alias: :code:`from aiogram.methods import ConvertGiftToStars`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(ConvertGiftToStars(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return ConvertGiftToStars(...)

View file

@ -0,0 +1,45 @@
######################
deleteBusinessMessages
######################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.delete_business_messages
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.delete_business_messages(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.delete_business_messages import DeleteBusinessMessages`
- alias: :code:`from aiogram.methods import DeleteBusinessMessages`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(DeleteBusinessMessages(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return DeleteBusinessMessages(...)

View file

@ -0,0 +1,45 @@
###########
deleteStory
###########
Returns: :obj:`bool`
.. automodule:: aiogram.methods.delete_story
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.delete_story(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.delete_story import DeleteStory`
- alias: :code:`from aiogram.methods import DeleteStory`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(DeleteStory(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return DeleteStory(...)

View file

@ -0,0 +1,45 @@
#########
editStory
#########
Returns: :obj:`Story`
.. automodule:: aiogram.methods.edit_story
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: Story = await bot.edit_story(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.edit_story import EditStory`
- alias: :code:`from aiogram.methods import EditStory`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: Story = await bot(EditStory(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return EditStory(...)

View file

@ -0,0 +1,38 @@
#######################
getBusinessAccountGifts
#######################
Returns: :obj:`OwnedGifts`
.. automodule:: aiogram.methods.get_business_account_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_business_account_gifts(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.get_business_account_gifts import GetBusinessAccountGifts`
- alias: :code:`from aiogram.methods import GetBusinessAccountGifts`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: OwnedGifts = await bot(GetBusinessAccountGifts(...))

View file

@ -0,0 +1,38 @@
#############################
getBusinessAccountStarBalance
#############################
Returns: :obj:`StarAmount`
.. automodule:: aiogram.methods.get_business_account_star_balance
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: StarAmount = await bot.get_business_account_star_balance(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.get_business_account_star_balance import GetBusinessAccountStarBalance`
- alias: :code:`from aiogram.methods import GetBusinessAccountStarBalance`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: StarAmount = await bot(GetBusinessAccountStarBalance(...))

View file

@ -0,0 +1,45 @@
#######################
giftPremiumSubscription
#######################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.gift_premium_subscription
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.gift_premium_subscription(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.gift_premium_subscription import GiftPremiumSubscription`
- alias: :code:`from aiogram.methods import GiftPremiumSubscription`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(GiftPremiumSubscription(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return GiftPremiumSubscription(...)

View file

@ -15,13 +15,9 @@ Stickers
create_new_sticker_set
delete_sticker_from_set
delete_sticker_set
get_available_gifts
get_custom_emoji_stickers
get_sticker_set
remove_chat_verification
remove_user_verification
replace_sticker_in_set
send_gift
send_sticker
set_custom_emoji_sticker_set_thumbnail
set_sticker_emoji_list
@ -31,8 +27,6 @@ Stickers
set_sticker_set_thumbnail
set_sticker_set_title
upload_sticker_file
verify_chat
verify_user
Available methods
=================
@ -133,15 +127,39 @@ Updating messages
.. toctree::
:maxdepth: 1
convert_gift_to_stars
delete_business_messages
delete_message
delete_messages
delete_story
edit_message_caption
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
===========

View file

@ -0,0 +1,45 @@
#########
postStory
#########
Returns: :obj:`Story`
.. automodule:: aiogram.methods.post_story
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: Story = await bot.post_story(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.post_story import PostStory`
- alias: :code:`from aiogram.methods import PostStory`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: Story = await bot(PostStory(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return PostStory(...)

View file

@ -0,0 +1,45 @@
###################
readBusinessMessage
###################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.read_business_message
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.read_business_message(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.read_business_message import ReadBusinessMessage`
- alias: :code:`from aiogram.methods import ReadBusinessMessage`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(ReadBusinessMessage(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return ReadBusinessMessage(...)

View file

@ -0,0 +1,45 @@
#################################
removeBusinessAccountProfilePhoto
#################################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.remove_business_account_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_business_account_profile_photo(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.remove_business_account_profile_photo import RemoveBusinessAccountProfilePhoto`
- alias: :code:`from aiogram.methods import RemoveBusinessAccountProfilePhoto`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(RemoveBusinessAccountProfilePhoto(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return RemoveBusinessAccountProfilePhoto(...)

View file

@ -0,0 +1,45 @@
#####################
setBusinessAccountBio
#####################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.set_business_account_bio
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.set_business_account_bio(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.set_business_account_bio import SetBusinessAccountBio`
- alias: :code:`from aiogram.methods import SetBusinessAccountBio`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(SetBusinessAccountBio(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return SetBusinessAccountBio(...)

View file

@ -0,0 +1,45 @@
##############################
setBusinessAccountGiftSettings
##############################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.set_business_account_gift_settings
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.set_business_account_gift_settings(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.set_business_account_gift_settings import SetBusinessAccountGiftSettings`
- alias: :code:`from aiogram.methods import SetBusinessAccountGiftSettings`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(SetBusinessAccountGiftSettings(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return SetBusinessAccountGiftSettings(...)

View file

@ -0,0 +1,45 @@
######################
setBusinessAccountName
######################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.set_business_account_name
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.set_business_account_name(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.set_business_account_name import SetBusinessAccountName`
- alias: :code:`from aiogram.methods import SetBusinessAccountName`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(SetBusinessAccountName(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return SetBusinessAccountName(...)

View file

@ -0,0 +1,45 @@
##############################
setBusinessAccountProfilePhoto
##############################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.set_business_account_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_business_account_profile_photo(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.set_business_account_profile_photo import SetBusinessAccountProfilePhoto`
- alias: :code:`from aiogram.methods import SetBusinessAccountProfilePhoto`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(SetBusinessAccountProfilePhoto(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return SetBusinessAccountProfilePhoto(...)

View file

@ -0,0 +1,45 @@
##########################
setBusinessAccountUsername
##########################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.set_business_account_username
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.set_business_account_username(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.set_business_account_username import SetBusinessAccountUsername`
- alias: :code:`from aiogram.methods import SetBusinessAccountUsername`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(SetBusinessAccountUsername(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return SetBusinessAccountUsername(...)

View file

@ -0,0 +1,45 @@
############################
transferBusinessAccountStars
############################
Returns: :obj:`bool`
.. automodule:: aiogram.methods.transfer_business_account_stars
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.transfer_business_account_stars(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.transfer_business_account_stars import TransferBusinessAccountStars`
- alias: :code:`from aiogram.methods import TransferBusinessAccountStars`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(TransferBusinessAccountStars(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return TransferBusinessAccountStars(...)

View file

@ -0,0 +1,45 @@
############
transferGift
############
Returns: :obj:`bool`
.. automodule:: aiogram.methods.transfer_gift
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.transfer_gift(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.transfer_gift import TransferGift`
- alias: :code:`from aiogram.methods import TransferGift`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(TransferGift(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return TransferGift(...)

View file

@ -0,0 +1,45 @@
###########
upgradeGift
###########
Returns: :obj:`bool`
.. automodule:: aiogram.methods.upgrade_gift
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields
Usage
=====
As bot method
-------------
.. code-block::
result: bool = await bot.upgrade_gift(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.upgrade_gift import UpgradeGift`
- alias: :code:`from aiogram.methods import UpgradeGift`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: bool = await bot(UpgradeGift(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return UpgradeGift(...)