aiogram/docs/api/methods/stop_message_live_location.rst
Alex Root Junior 3ea73fbbbd
Add missing shortcuts, new enums, reworked old stuff (#1070)
* Render shortcuts

* Render docs

* Added enumerations

* Added docs

* Use enums, removed Helper

* Bump butcher

* Added InputMediaType enum

* Added MaskPositionPoint, InlineQueryResultType enums

* Update texts

* Added StickerType enum

* Cover tests

* Update docs

* Fixed imports

* Re-enabled all pre-commit hooks
2022-12-04 03:05:49 +02:00

50 lines
977 B
ReStructuredText

#######################
stopMessageLiveLocation
#######################
Returns: :obj:`Union[Message, bool]`
.. automodule:: aiogram.methods.stop_message_live_location
:members:
:member-order: bysource
:undoc-members: True
Usage
=====
As bot method
-------------
.. code-block::
result: Union[Message, bool] = await bot.stop_message_live_location(...)
Method as object
----------------
Imports:
- :code:`from aiogram.methods.stop_message_live_location import StopMessageLiveLocation`
- alias: :code:`from aiogram.methods import StopMessageLiveLocation`
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block:: python
result: Union[Message, bool] = await bot(StopMessageLiveLocation(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: python
return StopMessageLiveLocation(...)
As shortcut from received object
--------------------------------
- :meth:`aiogram.types.message.Message.stop_live_location`