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. This method support both normal and static use
| Name | Type | Description | Required |
|---|---|---|---|
| latitude | float | array | stdClass | Latitude of new location | yes |
| longitude | float | stdClass | Longitude of new location | yes |
| chat_id | int | string | null | Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername) | no |
| message_id | int | null | Required if inline_message_id is not specified. Identifier of the message to edit | no |
| inline_message_id | string | null | Required if chat_id and message_id are not specified. Identifier of the inline message | no |
| horizontal_accuracy | float | null | stdClass | The radius of uncertainty for the location, measured in meters; 0-1500 | no |
| heading | int | null | Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified. | no |
| proximity_alert_radius | int | null | The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified. | no |
| reply_markup | inlineKeyboardMarkup | null | stdClass | A JSON-serialized object for a new inline keyboard. | no |
| token | string | null | You can use this method on another bot with specify this parameter | no |
| forgot | bool | null | You can set to not receive request result, dont set it or pass null for turn it off | no |
| answer | bool | null | You can set to answer to webhook, dont set it or pass null for turn it off | no |
Output : BPT\types\message | bool | BPT\types\responseError
Static or normal : Static
BPT::editMessageLiveLocation(latitude: float, longitude: float, chat_id: int | string | null, message_id: int | null, inline_message_id: string | null, horizontal_accuracy: float | null, heading: int | null, proximity_alert_radius: int | null, reply_markup: InlineKeyboardMarkup | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);BPT::editMessageLiveLocation(['latitude' => float, 'longitude' => float, 'chat_id' => int | string | null, 'message_id' => int | null, 'inline_message_id' => string | null, 'horizontal_accuracy' => float | null, 'heading' => int | null, 'proximity_alert_radius' => int | null, 'reply_markup' => InlineKeyboardMarkup | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);BPT::editMessageLiveLocation(latitude: float, longitude: float);BPT::editMessageLiveLocation(['latitude' => float, 'longitude' => float]);$this->editMessageLiveLocation(latitude: float, longitude: float, chat_id: int | string | null, message_id: int | null, inline_message_id: string | null, horizontal_accuracy: float | null, heading: int | null, proximity_alert_radius: int | null, reply_markup: InlineKeyboardMarkup | null, token: String | null, forgot: Boolean | null, answer: Boolean | null);$this->editMessageLiveLocation(['latitude' => float, 'longitude' => float, 'chat_id' => int | string | null, 'message_id' => int | null, 'inline_message_id' => string | null, 'horizontal_accuracy' => float | null, 'heading' => int | null, 'proximity_alert_radius' => int | null, 'reply_markup' => InlineKeyboardMarkup | null, 'token' => String | null, 'forgot' => Boolean | null, 'answer' => Boolean | null]);$this->editMessageLiveLocation(latitude: float, longitude: float);$this->editMessageLiveLocation(['latitude' => float, 'longitude' => float]);