How command?
Sending a live location is supported since v3.0, and works in three parts:
Sending the initial location with a live_period (see API docs and Telegram docs)
$locationMsg = $bot->sendLocation([
'chat_id' => $chat,
'latitude' => $lat,
'longitude' => $lng,
'live_period' => 3600 // One hour
]);
Updating the location (not in API docs, see Telegram docs)
```php
$bot->editMessageLiveLocation([
'chat_id' => $chat,
'message_id' => $locationMsg->messageId,
'latitude' => $lat,
'longitude' => $lng,
]);
(optionally) Ending the live location early (not in API docs, see Telegram docs)
$bot->stopMessageLiveLocation([
'chat_id' => $chat,
'message_id' => $locationMsg->messageId
]);
Tell me.
How to read the live location of the lat long position change sent by the user to the bot?
User -> sendLiveLocations -> Telegram bot -> how to read changes?
$this->update->getEditedMessage()
how to work this code?