mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update API
This commit is contained in:
parent
5aeab63384
commit
915c84c742
363 changed files with 1510 additions and 2262 deletions
|
|
@ -2,14 +2,11 @@
|
|||
editMessageCaption
|
||||
##################
|
||||
|
||||
Use this method to edit captions of messages. On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
|
||||
|
||||
Returns: :obj:`Union[Message, bool]`
|
||||
|
||||
.. automodule:: aiogram.methods.edit_message_caption
|
||||
:members:
|
||||
:member-order: bysource
|
||||
:special-members: __init__
|
||||
:undoc-members: True
|
||||
|
||||
|
||||
|
|
@ -29,27 +26,26 @@ Method as object
|
|||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods import EditMessageCaption`
|
||||
- :code:`from aiogram.methods import EditMessageCaption`
|
||||
- :code:`from aiogram.methods.edit_message_caption import EditMessageCaption`
|
||||
- alias: :code:`from aiogram.methods import EditMessageCaption`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: python
|
||||
|
||||
result: Union[Message, bool] = await EditMessageCaption(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: python
|
||||
|
||||
result: Union[Message, bool] = await bot(EditMessageCaption(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
.. code-block:: python
|
||||
|
||||
return EditMessageCaption(...)
|
||||
Loading…
Add table
Add a link
Reference in a new issue