Airgram

Guides
/
/
Methods

api.testUseUpdate()

Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization

Returns ApiResponse interface:
interface ApiResponse {
  _: 'testUseUpdate' | 'error'
  airgram: Airgram
  request: {
    method: 'testUseUpdate'
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}