Airgram

Guides
/
/
Methods

api.saveApplicationLogEvent()

Saves application log event on the server. Can be called before authorization

Parameters SaveApplicationLogEventParams:

NameTypeDescription
typestring Event type
chatIdnumber Optional chat identifier, associated with the event
data The log event data
Returns ApiResponse interface:
interface ApiResponse {
  _: 'saveApplicationLogEvent' | 'error'
  airgram: Airgram
  request: {
    method: 'saveApplicationLogEvent'
    params: SaveApplicationLogEventParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}