mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add support for Telegram Bot API 9.1 (#1704)
* Add support for Telegram Bot API 9.1 features, including checklists, gifts, and new methods like `SendChecklist`, `EditMessageChecklist`, and `GetMyStarBalance`. Update changelog and improve `True` field descriptions. * Bump API Version * Refactor profile photo types to use `InputProfilePhotoType` enums instead of hardcoded literals * Refactor imports and clean up redundant code across methods, types, and webhook server classes
This commit is contained in:
parent
77ca49518e
commit
f060c08d16
117 changed files with 2565 additions and 466 deletions
45
docs/api/methods/edit_message_checklist.rst
Normal file
45
docs/api/methods/edit_message_checklist.rst
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
####################
|
||||
editMessageChecklist
|
||||
####################
|
||||
|
||||
Returns: :obj:`Message`
|
||||
|
||||
.. automodule:: aiogram.methods.edit_message_checklist
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Message = await bot.edit_message_checklist(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.edit_message_checklist import EditMessageChecklist`
|
||||
- alias: :code:`from aiogram.methods import EditMessageChecklist`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: Message = await bot(EditMessageChecklist(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return EditMessageChecklist(...)
|
||||
38
docs/api/methods/get_my_star_balance.rst
Normal file
38
docs/api/methods/get_my_star_balance.rst
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
################
|
||||
getMyStarBalance
|
||||
################
|
||||
|
||||
Returns: :obj:`StarAmount`
|
||||
|
||||
.. automodule:: aiogram.methods.get_my_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_my_star_balance(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.get_my_star_balance import GetMyStarBalance`
|
||||
- alias: :code:`from aiogram.methods import GetMyStarBalance`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: StarAmount = await bot(GetMyStarBalance(...))
|
||||
|
|
@ -86,6 +86,7 @@ Available methods
|
|||
send_animation
|
||||
send_audio
|
||||
send_chat_action
|
||||
send_checklist
|
||||
send_contact
|
||||
send_dice
|
||||
send_document
|
||||
|
|
@ -133,6 +134,7 @@ Updating messages
|
|||
delete_messages
|
||||
delete_story
|
||||
edit_message_caption
|
||||
edit_message_checklist
|
||||
edit_message_live_location
|
||||
edit_message_media
|
||||
edit_message_reply_markup
|
||||
|
|
@ -191,6 +193,7 @@ Payments
|
|||
answer_shipping_query
|
||||
create_invoice_link
|
||||
edit_user_star_subscription
|
||||
get_my_star_balance
|
||||
get_star_transactions
|
||||
refund_star_payment
|
||||
send_invoice
|
||||
|
|
|
|||
45
docs/api/methods/send_checklist.rst
Normal file
45
docs/api/methods/send_checklist.rst
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#############
|
||||
sendChecklist
|
||||
#############
|
||||
|
||||
Returns: :obj:`Message`
|
||||
|
||||
.. automodule:: aiogram.methods.send_checklist
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Message = await bot.send_checklist(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods.send_checklist import SendChecklist`
|
||||
- alias: :code:`from aiogram.methods import SendChecklist`
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
result: Message = await bot(SendChecklist(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
return SendChecklist(...)
|
||||
10
docs/api/types/checklist.rst
Normal file
10
docs/api/types/checklist.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#########
|
||||
Checklist
|
||||
#########
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.checklist
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/checklist_task.rst
Normal file
10
docs/api/types/checklist_task.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#############
|
||||
ChecklistTask
|
||||
#############
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.checklist_task
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/checklist_tasks_added.rst
Normal file
10
docs/api/types/checklist_tasks_added.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
###################
|
||||
ChecklistTasksAdded
|
||||
###################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.checklist_tasks_added
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/checklist_tasks_done.rst
Normal file
10
docs/api/types/checklist_tasks_done.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
##################
|
||||
ChecklistTasksDone
|
||||
##################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.checklist_tasks_done
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/direct_message_price_changed.rst
Normal file
10
docs/api/types/direct_message_price_changed.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#########################
|
||||
DirectMessagePriceChanged
|
||||
#########################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.direct_message_price_changed
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
|
|
@ -70,9 +70,14 @@ Available types
|
|||
chat_permissions
|
||||
chat_photo
|
||||
chat_shared
|
||||
checklist
|
||||
checklist_task
|
||||
checklist_tasks_added
|
||||
checklist_tasks_done
|
||||
contact
|
||||
copy_text_button
|
||||
dice
|
||||
direct_message_price_changed
|
||||
document
|
||||
external_reply_info
|
||||
file
|
||||
|
|
@ -94,6 +99,8 @@ Available types
|
|||
inaccessible_message
|
||||
inline_keyboard_button
|
||||
inline_keyboard_markup
|
||||
input_checklist
|
||||
input_checklist_task
|
||||
input_file
|
||||
input_media
|
||||
input_media_animation
|
||||
|
|
|
|||
10
docs/api/types/input_checklist.rst
Normal file
10
docs/api/types/input_checklist.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
##############
|
||||
InputChecklist
|
||||
##############
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.input_checklist
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
10
docs/api/types/input_checklist_task.rst
Normal file
10
docs/api/types/input_checklist_task.rst
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
##################
|
||||
InputChecklistTask
|
||||
##################
|
||||
|
||||
|
||||
.. automodule:: aiogram.types.input_checklist_task
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:undoc-members: True
|
||||
:exclude-members: model_config,model_fields
|
||||
Loading…
Add table
Add a link
Reference in a new issue