editMessageLiveLocation
Update the coordinates of an active live location message before its live_period ends. Modify heading, accuracy, or alert radius as needed.
Instructions
Edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. Returns the edited Message on success, or True if the message is an inline message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | No | Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername). | |
| heading | No | Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. | |
| latitude | Yes | Latitude of new location. | |
| longitude | Yes | Longitude of new location. | |
| message_id | No | Required if inline_message_id is not specified. Identifier of the message to edit. | |
| live_period | No | New period in seconds during which the location can be updated, starting from the message send date. If 0x7FFFFFFF is specified, then the location can be updated forever. Otherwise, the new value must not exceed the current live_period by more than a day, and the live location expiration date must remain within the next 90 days. If not specified, then live_period remains unchanged. | |
| reply_markup | No | A JSON-serialized object for an inline keyboard. | |
| inline_message_id | No | Required if chat_id and message_id are not specified. Identifier of the inline message. | |
| horizontal_accuracy | No | The radius of uncertainty for the location, measured in meters; 0-1500. | |
| business_connection_id | No | Unique identifier of the business connection on behalf of which the message to be edited was sent. | |
| proximity_alert_radius | No | Maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified. |