Airgram

Guides
/
/
Methods

api.setVideoChatDefaultParticipant()

Changes default participant identifier, on whose behalf a video chat in the chat will be joined

Parameters SetVideoChatDefaultParticipantParams:

NameTypeDescription
chatIdnumber Chat identifier
defaultParticipantId Default group call participant identifier to join the video chats
Returns ApiResponse interface:
interface ApiResponse {
  _: 'setVideoChatDefaultParticipant' | 'error'
  airgram: Airgram
  request: {
    method: 'setVideoChatDefaultParticipant'
    params: SetVideoChatDefaultParticipantParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}