editMessageLiveLocationInline
Edit a live location in an inline Telegram message by updating latitude, longitude, heading, and related parameters before the live period expires.
Instructions
Use this method to edit live location inline 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": {
"inline_message_id": "<inline_message_id>",
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "editMessageLiveLocationInline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | |
| 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 | |
| inline_message_id | Yes | 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 | The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only. |