messages.getSuggestedDialogFilters

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

TL schema

---functions---
messages.getSuggestedDialogFilters#a29cd42c = Vector<DialogFilterSuggested>;

Parameters

Result

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

Possible errors

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