editMessageLiveLocation

Edit a message’s live location.

PARAMETERS
chatId: ID

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.

replyMarkup?: ReplyMarkup

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,
    replyMarkup,
});