Added full support of Bot API 7.9 (#1560)

* Added full support of Bot API 7.9

* Added changelog

* Try to fix towncrier

* Fixed towncrier check
This commit is contained in:
Alex Root Junior 2024-08-16 00:44:40 +03:00 committed by GitHub
parent 1c323ecc97
commit c3a08664d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
48 changed files with 817 additions and 114 deletions

View file

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

View file

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

View file

@ -44,6 +44,7 @@ Available methods
copy_message
copy_messages
create_chat_invite_link
create_chat_subscription_invite_link
create_forum_topic
decline_chat_join_request
delete_chat_photo
@ -51,6 +52,7 @@ Available methods
delete_forum_topic
delete_my_commands
edit_chat_invite_link
edit_chat_subscription_invite_link
edit_forum_topic
edit_general_forum_topic
export_chat_invite_link

View file

@ -137,6 +137,7 @@ Available types
reaction_type
reaction_type_custom_emoji
reaction_type_emoji
reaction_type_paid
reply_keyboard_markup
reply_keyboard_remove
reply_parameters

View file

@ -0,0 +1,10 @@
################
ReactionTypePaid
################
.. automodule:: aiogram.types.reaction_type_paid
:members:
:member-order: bysource
:undoc-members: True
:exclude-members: model_config,model_fields