editMessageLiveLocation
Update the coordinates of a live location message in a Telegram chat, with optional heading, accuracy, and live period, before it expires.
Instructions
Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chat_id": "<chat_id>",
"message_id": "<message_id>",
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "editMessageLiveLocation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | Unique identifier for the target chat or username of the target bot, supergroup or channel in the format `@username` | |
| heading | No | The direction in which user is moving, in degrees; 1-360. For active live locations only. | |
| latitude | Yes | Latitude of new location | |
| longitude | Yes | Longitude of new location | |
| message_id | Yes | 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 | An object for a new inline keyboard | |
| 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 | The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only. |