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.

businessConnectionId?: string

The identifier of a business connection ID to perform the action on. Bot-only.

replyMarkup?: ReplyMarkup

The reply markup of the message. Bot-only.

Result

void

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