contacts.getStatuses

Returns the list of contact statuses.

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

TL schema

---functions---
contacts.getStatuses#c4a353ee = Vector<ContactStatus>;

Parameters

Name

Type

Description

Result

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

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

Last updated