Airgram

Guides
/
/
Methods

api.discardCall()

Discards a call

Parameters DiscardCallParams:

NameTypeDescription
callIdnumber Call identifier
isDisconnectedboolean True, if the user was disconnected
durationnumber The call duration, in seconds
isVideoboolean True, if the call was a video call
connectionIdstring Identifier of the connection used during the call
Returns ApiResponse interface:
interface ApiResponse {
  _: 'discardCall' | 'error'
  airgram: Airgram
  request: {
    method: 'discardCall'
    params: DiscardCallParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}