mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add sphinx with converting part of pages
This commit is contained in:
parent
3aa68a93d1
commit
f68960ca87
192 changed files with 6123 additions and 350 deletions
52
docs2/source/api/methods/edit_message_text.rst
Normal file
52
docs2/source/api/methods/edit_message_text.rst
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
###############
|
||||
editMessageText
|
||||
###############
|
||||
|
||||
Use this method to edit text and game 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.api.methods.edit_message_text
|
||||
:members:
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
As bot method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Union[Message, bool] = await bot.edit_message_text(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
Imports:
|
||||
|
||||
- :code:`from aiogram.methods import EditMessageText`
|
||||
- :code:`from aiogram.api.methods import EditMessageText`
|
||||
- :code:`from aiogram.api.methods.edit_message_text import EditMessageText`
|
||||
|
||||
In handlers with current bot
|
||||
----------------------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Union[Message, bool] = await EditMessageText(...)
|
||||
|
||||
With specific bot
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Union[Message, bool] = await bot(EditMessageText(...))
|
||||
|
||||
As reply into Webhook in handler
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. code-block::
|
||||
|
||||
return EditMessageText(...)
|
||||
Loading…
Add table
Add a link
Reference in a new issue