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:
UpdateShort | UpdateShortChatMessage |
UpdateShortMessage | UpdateShortSentMessage |
Updates | UpdatesCombined |
UpdatesTooLong |
Parameters
peer | InputPeer | Anything entity-like will work if the library can find its Input version (e.g., usernames, Peer , User or Channel objects, etc.). |
rtmp_stream | flag | This argument defaults to None and can be omitted. |
random_id | int | If left unspecified, it will be inferred automatically. |
title | string | This argument defaults to None and can be omitted. |
schedule_date | date | This argument defaults to None and can be omitted. |
Known RPC errors
This request can cause 1 known error:
ScheduleDateInvalidError | Invalid 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())