ExportAuthorizationRequest
Both users and bots can use this request. See code examples.
---functions--- auth.exportAuthorization#e5bfffcd dc_id:int = auth.ExportedAuthorization
Returns
| auth.ExportedAuthorization |
This type can only be an instance of:
| ExportedAuthorization |
Parameters
| dc_id | int |
Known RPC errors
This request can cause 1 known error:
DcIdInvalidError | This occurs when an authorization is tried to be exported for the same data center one is currently connected to. |
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.auth.ExportAuthorizationRequest(
dc_id=42
))
print(result.stringify())