Last updated 4 years ago
Was this helpful?
Delete stored documents,
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.deleteSecureValue({ 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.Bool = await client.invoke(new Api.account.deleteSecureValue({ types: [new Api.SecureValueType({...})], })); console.log(result); // prints the result })();
boolFalse#bc799737 = Bool; boolTrue#997275b5 = Bool; ---functions--- account.deleteSecureValue#b880bc4b types:Vector<SecureValueType> = Bool;
Name
Type
Description
types
Document types to delete
Code
< >