account.getAllSecureValues

Get all saved Telegram Passport documents, for more info see the passport docs ยป

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.account.getAllSecureValues({
        }));
    console.log(result); // prints the result
})();

TL schema

---functions---
account.getAllSecureValues#b288bc7d = Vector<SecureValue>;

Parameters

Name

Type

Description

Result

Vector[SecureValue](https://core.telegram.org/type/SecureValue)

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

Last updated