Last updated 4 years ago
Was this helpful?
Get saved document,
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.getSecureValue({ types: [new Api.SecureValueType({...})], })); console.log(result); // prints the result })();
import {Api, TelegramClient} from 'telegram'; import {StringSession} from 'telegram/sessions'; const session = new StringSession(''); const client = new TelegramClient(session, apiId, apiHash, {}); (async function run() { const result: Api.Vector<SecureValue> = await client.invoke(new Api.account.getSecureValue({ types: [new Api.SecureValueType({...})], })); console.log(result); // prints the result })();
---functions--- account.getSecureValue#73665bc2 types:Vector<SecureValueType> = Vector<SecureValue>;
Name
Type
Description
types
Requested value types
Code
< >