Airgram

Guides
/
/
Methods

api.createCall()

Creates a new call

Parameters CreateCallParams:

NameTypeDescription
userIdnumber Identifier of the user to be called
protocol The call protocols supported by the application
isVideoboolean True, if a video call needs to be created
Returns ApiResponse interface:
interface ApiResponse {
  _: 'createCall' | 'error'
  airgram: Airgram
  request: {
    method: 'createCall'
    params: CreateCallParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}