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:
UpdateShort | UpdateShortChatMessage |
UpdateShortMessage | UpdateShortSentMessage |
Updates | UpdatesCombined |
UpdatesTooLong |
Parameters
call | InputGroupCall | |
join_as | InputPeer | Anything entity-like will work if the library can find its Input version (e.g., usernames, Peer , User or Channel objects, etc.). |
params | DataJSON | |
muted | flag | This argument defaults to None and can be omitted. |
video_stopped | flag | This argument defaults to None and can be omitted. |
invite_hash | string | This argument defaults to None and can be omitted. |
Known RPC errors
This request can cause 2 known errors:
GroupcallAddParticipantsFailedError | . |
GroupcallSsrcDuplicateMuchError | The 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())