messages.getDialogFilters

Get folders

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

TL schema

---functions---
messages.getDialogFilters#f19ed96d = Vector<DialogFilter>;

Parameters

Name

Type

Description

Result

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

Possible errors

Code

Type

Description

Can bots use this methd ?

yes

Telegram allows placing chats into folders, based on their type, mute status, or other custom criteria, thanks to folder blacklists and whitelists.

Last updated