Airgram

Guides
/
/
Methods

api.testCallBytes()

Returns the received bytes; for testing only. This is an offline method. Can be called before authorization

Parameters TestCallBytesParams:

NameTypeDescription
xstring Bytes to return
Returns ApiResponse interface:
interface ApiResponse {
  _: 'testCallBytes' | 'error'
  airgram: Airgram
  request: {
    method: 'testCallBytes'
    params: TestCallBytesParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}