account.getWebAuthorizations

Get web login widget authorizations

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

TL schema

account.webAuthorizations#ed56c9fc authorizations:Vector<WebAuthorization> users:Vector<User> = account.WebAuthorizations;
---functions---
account.getWebAuthorizations#182e6d6f = account.WebAuthorizations;

Parameters

Name

Type

Description

Result

account.WebAuthorizations

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

Last updated