version: 2.1.3


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.


chat_id int | string Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername) Optional
message_id int Required if inline_message_id is not specified. Identifier of the message to edit Optional
inline_message_id string Required if chat_id and message_id are not specified. Identifier of the inline message Optional
latitude float Latitude of new location Yes
longitude float Longitude of new location Yes
horizontal_accuracy float The radius of uncertainty for the location, measured in meters; 0-1500 Optional
heading int Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. Optional
proximity_alert_radius int The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified. Optional
reply_markup InlineKeyboardMarkup A JSON-serialized object for a new inline keyboard. Optional
token String You can use this method on another bot with specify this parameter Optional
return_array Boolean Specify the result type , if pass true results will be array otherwise will be object Optional
forgot Boolean You can set to not receive request result, dont set it or pass null for turn it off Optional
answer Boolean You can set to answer to webhook, dont set it or pass null for turn it off Optional

Method errors

required parameters not found required parameter for this method is not founded. you can see them in log
answer mode not allowed you can use answer mode only once for each webhook update and you already did
answer mode not allowed bc multi you can't use answer mode when multi is on

Method examples

$this->editMessageLiveLocation(['chat_id' => int | string, 'message_id' => int, 'inline_message_id' => string, 'latitude' => float, 'longitude' => float, 'horizontal_accuracy' => float, 'heading' => int, 'proximity_alert_radius' => int, 'reply_markup' => InlineKeyboardMarkup]);
$this->editMessageLiveLocation(['latitude' => float, 'longitude' => float]);

Method alices

Method output :

Message | bool