Layer 220
PhoneCreateGroupCall
Create a group call or livestream
method
Users
phone.createGroupCall#48cdc6d8 flags:# rtmp_stream:flags.2?true peer:InputPeer random_id:int title:flags.0?string schedule_date:flags.1?int = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| RtmpStream | flags.2?true | Whether RTMP stream support should be enabled: only the group/supergroup/channel owner can use this flag. |
| Peer | InputPeer | Associate the group call or livestream to the provided group/supergroup/channel |
| RandomId | int | Unique client message ID required to prevent creation of duplicate group calls |
| Title | flags.0?string | Call title |
| ScheduleDate | flags.1?int | For scheduled group call or livestreams, the absolute date when the group call will start |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | CREATE_CALL_FAILED | An error occurred while creating the call. |
| 400 | GROUPCALL_ALREADY_DISCARDED | The group call was already discarded. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | SCHEDULE_DATE_INVALID | Invalid schedule date provided. |
Gogram Example
// PhoneCreateGroupCall - using Params struct result, err := client.PhoneCreateGroupCall(&tg.PhoneCreateGroupCallParams{ Peer: &tg.InputPeerUser{UserID: int64(123456789)}, RandomId: 0, // Optional fields: // RtmpStream: true, // Title: "...", // ScheduleDate: 0, }) if err != nil { // handle error } // result is *tg.Updates