editInlineMessageLiveLocation
Edit an inline message’s live location. Bot-only.
PARAMETERS
inlineMessageId: string
The inline 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.
The reply markup of the message. Bot-only.
RESULT
void
The edited location message.
SYNTAX
// Required parameters only.
await client.editInlineMessageLiveLocation(inlineMessageId, latitude, longitude);
// Required parameters + optional parameters.
// Any of the optional parameters can be omitted.
await client.editInlineMessageLiveLocation(inlineMessageId, latitude, longitude, {
horizontalAccuracy,
heading,
proximityAlertRadius,
replyMarkup,
});