Link Search Menu Expand Document

Constructor: dialogFilter

Back to constructors index

Dialog filter AKA folder

Attributes:

NameTypeRequiredDescription
contactsBoolOptionalWhether to include all contacts in this folder
non_contactsBoolOptionalWhether to include all non-contacts in this folder
groupsBoolOptionalWhether to include all groups in this folder
broadcastsBoolOptionalWhether to include all channels in this folder
botsBoolOptionalWhether to include all bots in this folder
exclude_mutedBoolOptionalWhether to exclude muted chats from this folder
exclude_readBoolOptionalWhether to exclude read chats from this folder
exclude_archivedBoolOptionalWhether to exclude archived chats from this folder
idintYesFolder ID
titlestringYesFolder name
emoticonstringOptionalEmoji to use as icon for the folder.
colorintOptional
pinned_peersArray of InputPeerYesPinned chats, folders can have unlimited pinned chats
include_peersArray of InputPeerYesInclude the following chats in this folder
exclude_peersArray of InputPeerYesExclude 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', 'color' => int, 'pinned_peers' => [InputPeer, InputPeer], 'include_peers' => [InputPeer, InputPeer], 'exclude_peers' => [InputPeer, InputPeer]];