ToggleGroupCallSettingsRequest
Only users can use this request. See code examples.
---functions--- phone.toggleGroupCallSettings#74bbb43d flags:# reset_invite_hash:flags.1?true call:InputGroupCall join_muted:flags.0?Bool = Updates
Returns
Updates |
This type can be an instance of either:
UpdateShort | UpdateShortChatMessage |
UpdateShortMessage | UpdateShortSentMessage |
Updates | UpdatesCombined |
UpdatesTooLong |
Parameters
call | InputGroupCall | |
reset_invite_hash | flag | This argument defaults to None and can be omitted. |
join_muted | Bool | This argument defaults to None and can be omitted. |
Known RPC errors
This request can cause 1 known error:
GroupcallNotModifiedError | Group call settings weren't modified. |
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.ToggleGroupCallSettingsRequest( call=types.InputGroupCall( id=-12398745604826, access_hash=-12398745604826 ), reset_invite_hash=True, join_muted=False )) print(result.stringify())