Airgram

Guides
/
/
Methods

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:

NameTypeDescription
chatIdnumber The chat the message belongs to
messageIdnumber 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
headingnumber The new direction in which the location moves, in degrees; 1-360. Pass 0 if unknown
proximityAlertRadiusnumber 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>
}