api.createCall()
Creates a new call
Parameters
CreateCallParams
:chevron_leftchevron_right
Parameters
Interface
Name | Type | Description |
---|---|---|
userId | number | Identifier of the user to be called |
protocol | The call protocols supported by the application | |
isVideo | boolean | 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>
}