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:chevron_leftchevron_right
Parameters
Interface
| Name | Type | Description |
|---|---|---|
chatId | number | Chat identifier, in which the video chat will be created |
title | string | Group call title; if empty, chat title will be used |
startDate | number | 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>
}