mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-11 18:01:04 +00:00
Add missing Message methods (#1030)
* Add `Message.forward` method * Add docs * Add other methods * Fix * Add changes * Fix lints * Update CHANGES/1030.feature.rst Co-authored-by: Alex Root Junior <jroot.junior@gmail.com> Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
This commit is contained in:
parent
f4d3dbf3bf
commit
8b0ca520f3
9 changed files with 204 additions and 0 deletions
|
|
@ -21,6 +21,14 @@ As bot method
|
|||
result: Union[Message, bool] = await bot.edit_message_live_location(...)
|
||||
|
||||
|
||||
As message method
|
||||
-----------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Union[Message, bool] = await message.edit_live_location(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,14 @@ As bot method
|
|||
result: Union[Message, bool] = await bot.edit_message_media(...)
|
||||
|
||||
|
||||
As message method
|
||||
-----------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Union[Message, bool] = await message.edit_media(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,14 @@ As bot method
|
|||
result: Message = await bot.forward_message(...)
|
||||
|
||||
|
||||
As message method
|
||||
-------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Message = await message.forward(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,14 @@ As bot method
|
|||
result: bool = await bot.pin_chat_message(...)
|
||||
|
||||
|
||||
As message method
|
||||
-----------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await message.pin(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,14 @@ As bot method
|
|||
result: Union[Message, bool] = await bot.stop_message_live_location(...)
|
||||
|
||||
|
||||
As message method
|
||||
-----------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: Union[Message, bool] = await message.stop_live_location(...)
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,14 @@ As bot method
|
|||
result: bool = await bot.unpin_chat_message(...)
|
||||
|
||||
|
||||
As message method
|
||||
-----------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
result: bool = await message.unpin()
|
||||
|
||||
|
||||
Method as object
|
||||
----------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue