help.getCdnConfig

Get configuration for CDN file downloads.

Example

const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');

const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});

(async function run() {
    const result = await client.invoke(new Api.help.getCdnConfig({
        401: new Api.AUTH_KEY_PERM_EMPTY({...}),
        }));
    console.log(result); // prints the result
})();

TL schema

cdnConfig#5725e40a public_keys:Vector<CdnPublicKey> = CdnConfig;
---functions---
help.getCdnConfig#52029342 = CdnConfig;

Parameters

Name

Type

Description

401

AUTH_KEY_PERM_EMPTY

The temporary auth key must be binded to the permanent auth key to use these methods.

Result

CdnConfig

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

Last updated