editMessageLiveLocation
Edit a message’s live location.
Parameters
The identifier of the chat that contains the messages.
messageId: number
The message’s identifier.
latitude: number
The new latitude.
longitude: number
The new longitude.
horizontalAccuracy?: number
The accuracy radius of the location in meters. Must be in the range of 0-1500.
heading?: number
The direction which the user is moving towards. Must be in the range of 1-350.
proximityAlertRadius?: number
The maximum distance for proximity alerts on approaching another chat member in meters. Must be in the range 1-100,000.
businessConnectionId?: string
The identifier of a business connection ID to perform the action on. Bot-only.
The reply markup of the message. Bot-only.
Result
The edited location message.
Syntax
// Required parameters only.
await client.editMessageLiveLocation(chatId, messageId, latitude, longitude);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.editMessageLiveLocation(chatId, messageId, latitude, longitude, {
horizontalAccuracy,
heading,
proximityAlertRadius,
businessConnectionId,
replyMarkup,
});