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:
Danipulok 2022-10-22 00:29:29 +03:00 committed by GitHub
parent f4d3dbf3bf
commit 8b0ca520f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 204 additions and 0 deletions

View file

@ -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
----------------

View file

@ -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
----------------

View file

@ -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
----------------

View file

@ -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
----------------

View file

@ -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
----------------

View file

@ -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
----------------