help.getPassportConfig

Get passport configuration

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.getPassportConfig({
        hash: 4160854,
        }));
    console.log(result); // prints the result
})();

TL schema

help.passportConfigNotModified#bfb9f457 = help.PassportConfig;
help.passportConfig#a098d6af hash:int countries_langs:DataJSON = help.PassportConfig;
---functions---
help.getPassportConfig#c661ad08 hash:int = help.PassportConfig;

Parameters

Result

help.PassportConfig

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

How to fetch results from large lists of objects.

Last updated