api.editMessageLiveLocation()
Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live location. Returns the edited message after the edit is completed on the server side
Parameters
EditMessageLiveLocationParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
chatId | number | The chat the message belongs to |
messageId | number | Identifier of the message |
replyMarkup | The new message reply markup; pass null if none; for bots only | |
location | New location content of the message; pass null to stop sharing the live location | |
heading | number | The new direction in which the location moves, in degrees; 1-360. Pass 0 if unknown |
proximityAlertRadius | number | The new maximum distance for proximity alerts, in meters (0-100000). Pass 0 if the notification is disabled |
Returns
ApiResponse
interface:interface ApiResponse {
_: 'editMessageLiveLocation' | 'error'
airgram: Airgram
request: {
method: 'editMessageLiveLocation'
params: EditMessageLiveLocationParams
}
response: |
setState: (nextState: Record<string, unknown>) => void
getState: () => Record<string, unknown>
}