GetCdnConfigRequest
Both users and bots can use this request. See code examples.
---functions--- help.getCdnConfig#52029342 = CdnConfig
Returns
CdnConfig |
This type can only be an instance of:
CdnConfig |
Parameters
This request takes no input parameters.
Known RPC errors
This request can cause 2 known errors:
AuthKeyPermEmptyError | The method is unavailable for temporary authorization key, not bound to permanent. |
TimeoutError | A timeout occurred while fetching data from the worker. |
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.help.GetCdnConfigRequest()) print(result.stringify())