2020-06-15 02:22:24 +03:00
#######################
stopMessageLiveLocation
#######################
Use this method to stop updating a live location message before live_period expires. On success, if the message was sent by the bot, the sent Message is returned, otherwise True is returned.
Returns: :obj: `Union[Message, bool]`
2020-11-18 02:05:52 +02:00
.. automodule :: aiogram.methods.stop_message_live_location
2020-06-15 02:22:24 +03:00
:members:
2020-06-27 19:46:01 +03:00
:member-order: bysource
:special-members: __init__
:undoc-members: True
2020-06-15 02:22:24 +03:00
Usage
=====
As bot method
-------------
.. code-block ::
result: Union[Message, bool] = await bot.stop_message_live_location(...)
Method as object
----------------
Imports:
- :code: `from aiogram.methods import StopMessageLiveLocation`
2020-11-18 02:05:52 +02:00
- :code: `from aiogram.methods import StopMessageLiveLocation`
- :code: `from aiogram.methods.stop_message_live_location import StopMessageLiveLocation`
2020-06-15 02:22:24 +03:00
In handlers with current bot
----------------------------
.. code-block ::
result: Union[Message, bool] = await StopMessageLiveLocation(...)
With specific bot
~~~~~~~~~~~~~~~~~
.. code-block ::
result: Union[Message, bool] = await bot(StopMessageLiveLocation(...))
As reply into Webhook in handler
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block ::
return StopMessageLiveLocation(...)