ChangeAuthorizationSettingsRequest
Both users and bots may be able to use this method. See code examples.
---functions--- account.changeAuthorizationSettings#40f48462 flags:# hash:long encrypted_requests_disabled:flags.0?Bool call_requests_disabled:flags.1?Bool = Bool
Returns
| Bool |
This type has no instances available.
Parameters
| hash | long | |
| encrypted_requests_disabled | Bool | This argument defaults to None and can be omitted. |
| call_requests_disabled | Bool | This argument defaults to None and can be omitted. |
Known RPC errors
This request can't cause any RPC error as far as we know.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.account.ChangeAuthorizationSettingsRequest(
hash=-12398745604826,
encrypted_requests_disabled=False,
call_requests_disabled=False
))
print(result)