Airgram

Guides
/
/
Methods

api.testSquareInt()

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

Parameters TestSquareIntParams:

NameTypeDescription
xnumber Number to square
Returns ApiResponse interface:
interface ApiResponse {
  _: 'testSquareInt' | 'error'
  airgram: Airgram
  request: {
    method: 'testSquareInt'
    params: TestSquareIntParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}