CreateGroupCallRequest

Only users can use this request. See code examples.

---functions---
phone.createGroupCall#48cdc6d8 flags:# rtmp_stream:flags.2?true peer:InputPeer random_id:int title:flags.0?string schedule_date:flags.1?date = Updates

Returns

Updates

This type can be an instance of either:

UpdateShortUpdateShortChatMessage
UpdateShortMessageUpdateShortSentMessage
UpdatesUpdatesCombined
UpdatesTooLong

Parameters

peerInputPeerAnything entity-like will work if the library can find its Input version (e.g., usernames, Peer, User or Channel objects, etc.).
rtmp_streamflagThis argument defaults to None and can be omitted.
random_idintIf left unspecified, it will be inferred automatically.
titlestringThis argument defaults to None and can be omitted.
schedule_datedateThis argument defaults to None and can be omitted.

Known RPC errors

This request can cause 1 known error:

ScheduleDateInvalidErrorInvalid schedule date provided.

You can import these from telethon.errors.

Example

from telethon.sync import TelegramClient
from telethon import functions, types

with TelegramClient(name, api_id, api_hash) as client:
    result = client(functions.phone.CreateGroupCallRequest(
        peer='username',
        rtmp_stream=True,
        title='My awesome title',
        schedule_date=datetime.datetime(2018, 6, 25)
    ))
    print(result.stringify())