phone.CreateGroupCall

class pyrogram.raw.functions.phone.CreateGroupCall

Create a group call or livestream

Details:
  • Layer: 223

  • ID: 48CDC6D8

Parameters:
  • peer (InputPeer) – Associate the group call or livestream to the provided group/supergroup/channel

  • random_id (int 32-bit) – Unique client message ID required to prevent creation of duplicate group calls

  • rtmp_stream (bool, optional) – Whether RTMP stream support should be enabled: only the group/supergroup/channel owner can use this flag.

  • title (str, optional) – Call title

  • schedule_date (int 32-bit, optional) – For scheduled group call or livestreams, the absolute date when the group call will start

Returns:

Updates

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_streamtrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── random_idint
├── titlestring (optional)
└── schedule_dateint (optional)

Example

await app.invoke(
    CreateGroupCall(
        rtmp_stream=None,
        peer=await app.resolve_peer(chat_id),
        random_id=0,
        title="text",
        schedule_date=0,
    )
)