JoinGroupCallRequest

Only users can use this request. See code examples.

---functions---
phone.joinGroupCall#b132ff7b flags:# muted:flags.0?true video_stopped:flags.2?true call:InputGroupCall join_as:InputPeer invite_hash:flags.1?string params:DataJSON = Updates

Returns

Updates

This type can be an instance of either:

UpdateShortUpdateShortChatMessage
UpdateShortMessageUpdateShortSentMessage
UpdatesUpdatesCombined
UpdatesTooLong

Parameters

callInputGroupCall
join_asInputPeerAnything entity-like will work if the library can find its Input version (e.g., usernames, Peer, User or Channel objects, etc.).
paramsDataJSON
mutedflagThis argument defaults to None and can be omitted.
video_stoppedflagThis argument defaults to None and can be omitted.
invite_hashstringThis argument defaults to None and can be omitted.

Known RPC errors

This request can cause 2 known errors:

GroupcallAddParticipantsFailedError.
GroupcallSsrcDuplicateMuchErrorThe app needs to retry joining the group call with a new SSRC value.

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.JoinGroupCallRequest(
        call=types.InputGroupCall(
            id=-12398745604826,
            access_hash=-12398745604826
        ),
        join_as='username',
        params=types.DataJSON(
            data='some string here'
        ),
        muted=True,
        video_stopped=True,
        invite_hash='some string here'
    ))
    print(result.stringify())