MadelineProtoDocs/docs/API_docs/constructors/dialogFilter.md

3.0 KiB

title description image
dialogFilter Dialog filter AKA [folder](https://core.telegram.org/api/folders) https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: dialogFilter

Back to constructors index

Dialog filter AKA folder

Attributes:

Name Type Required Description
contacts Bool Optional Whether to include all contacts in this folder
non_contacts Bool Optional Whether to include all non-contacts in this folder
groups Bool Optional Whether to include all groups in this folder
broadcasts Bool Optional Whether to include all channels in this folder
bots Bool Optional Whether to include all bots in this folder
exclude_muted Bool Optional Whether to exclude muted chats from this folder
exclude_read Bool Optional Whether to exclude read chats from this folder
exclude_archived Bool Optional Whether to exclude archived chats from this folder
id int Yes Folder ID
title string Yes Folder name
emoticon string Optional Folder emoticon
pinned_peers Array of InputPeer Yes Pinned chats, folders can have unlimited pinned chats
include_peers Array of InputPeer Yes Include the following chats in this folder
exclude_peers Array of InputPeer Yes Exclude the following chats from this folder

Type: DialogFilter

Example:

$dialogFilter = ['_' => 'dialogFilter', 'contacts' => Bool, 'non_contacts' => Bool, 'groups' => Bool, 'broadcasts' => Bool, 'bots' => Bool, 'exclude_muted' => Bool, 'exclude_read' => Bool, 'exclude_archived' => Bool, 'id' => int, 'title' => 'string', 'emoticon' => 'string', 'pinned_peers' => [InputPeer, InputPeer], 'include_peers' => [InputPeer, InputPeer], 'exclude_peers' => [InputPeer, InputPeer]];

Or, if you're into Lua:

dialogFilter={_='dialogFilter', contacts=Bool, non_contacts=Bool, groups=Bool, broadcasts=Bool, bots=Bool, exclude_muted=Bool, exclude_read=Bool, exclude_archived=Bool, id=int, title='string', emoticon='string', pinned_peers={InputPeer}, include_peers={InputPeer}, exclude_peers={InputPeer}}