phone.CreateGroupCall
- class pyrogram.raw.functions.phone.CreateGroupCall
Create a group call or livestream
- Details:
Layer:
223ID:
48CDC6D8
- Parameters:
peer (
InputPeer) – Associate the group call or livestream to the provided group/supergroup/channelrandom_id (
int32-bit) – Unique client message ID required to prevent creation of duplicate group callsrtmp_stream (
bool, optional) – Whether RTMP stream support should be enabled: only the group/supergroup/channel owner can use this flag.title (
str, optional) – Call titleschedule_date (
int32-bit, optional) – For scheduled group call or livestreams, the absolute date when the group call will start
- Returns:
TL Schema
phone.createGroupCall#48cdc6d8
flags:#
rtmp_stream:flags.2?true
peer:InputPeer
random_id:int
title:flags.0?string
schedule_date:flags.1?int
= Updates
Parameter Tree
CreateGroupCall
├── rtmp_stream →
true (optional)├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long├── random_id →
int├── title →
string (optional)└── schedule_date →
int (optional)Example
await app.invoke(
CreateGroupCall(
rtmp_stream=None,
peer=await app.resolve_peer(chat_id),
random_id=0,
title="text",
schedule_date=0,
)
)