Airgram

Guides
/
/
Methods

api.createVideoChat()

Creates a video chat (a group call bound to a chat). Available only for basic groups, supergroups and channels; requires can_manage_video_chats rights

Parameters CreateVideoChatParams:

NameTypeDescription
chatIdnumber Chat identifier, in which the video chat will be created
titlestring Group call title; if empty, chat title will be used
startDatenumber Point in time (Unix timestamp) when the group call is supposed to be started by an administrator; 0 to start the video chat immediately. The date must be at least 10 seconds and at most 8 days in the future
Returns ApiResponse interface:
interface ApiResponse {
  _: 'createVideoChat' | 'error'
  airgram: Airgram
  request: {
    method: 'createVideoChat'
    params: CreateVideoChatParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}