pub async fn create_video_chat(
chat_id: i64,
title: String,
start_date: i32,
is_rtmp_stream: bool,
client_id: i32,
) -> Result<GroupCallId, Error>
Expand description
Creates a video chat (a group call bound to a chat). Available only for basic groups, supergroups and channels; requires can_manage_video_chats administrator right
ยงArguments
chat_id
- Identifier of a chat in which the video chat will be createdtitle
- Group call title; if empty, chat title will be usedstart_date
- 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 futureis_rtmp_stream
- Pass true to create an RTMP stream instead of an ordinary video chat; requires owner privilegesclient_id
- The client id to send the request to