Message.edit_live_location()¶
- Message.edit_live_location()¶
Use this method to edit live location messages.
- Parameters:
latitude (
float) – Latitude of the location.longitude (
float) – Longitude of the location.horizontal_accuracy (
float, optional) – The radius of uncertainty for the location, measured in meters, 0-1500.live_period (
int, optional) – 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 currentlive_periodby more than a day, and the live location expiration date must remain within the next 90 days. If not specified, thenlive_periodremains unchanged.heading (
int, optional) – For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.proximity_alert_radius (
int, optional) – For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified. Can’t be enabled in channels and Saved Messages.
- Returns:
On success, the edited
Messageis returned.