Layer 220
constructor
dialogFilter#aa472651 flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true title_noanimate:flags.28?true id:int title:TextWithEntities emoticon:flags.25?string color:flags.27?int pinned_peers:Vector<InputPeer> include_peers:Vector<InputPeer> exclude_peers:Vector<InputPeer> = DialogFilter;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Contacts flags.0?true Whether to include all contacts in this folder
NonContacts flags.1?true Whether to include all non-contacts in this folder
Groups flags.2?true Whether to include all groups in this folder
Broadcasts flags.3?true Whether to include all channels in this folder
Bots flags.4?true Whether to include all bots in this folder
ExcludeMuted flags.11?true Whether to exclude muted chats from this folder
ExcludeRead flags.12?true Whether to exclude read chats from this folder
ExcludeArchived flags.13?true Whether to exclude archived chats from this folder
TitleNoanimate flags.28?true If set, any animated emojis present in title should not be animated and should be instead frozen on the first frame.
Id int Folder ID
Title TextWithEntities Folder name (max 12 UTF-8 chars)
Emoticon flags.25?string Emoji to use as icon for the folder.
Color flags.27?int A color ID for the folder tag associated to this folder, see here for more info.
PinnedPeers Vector<InputPeer> Pinned chats, folders can have unlimited pinned chats
IncludePeers Vector<InputPeer> Include the following chats in this folder
ExcludePeers Vector<InputPeer> Exclude the following chats from this folder

Returns

DialogFilter

Gogram Example

// Creating DialogFilter constructor
obj := &tg.DialogFilter{
    Id: 0,
    Title: &tg.TextWithEntities{},
    PinnedPeers: []tg.InputPeer{&tg.InputPeerUser{UserID: int64(123456789)}},
    IncludePeers: []tg.InputPeer{&tg.InputPeerUser{UserID: int64(123456789)}},
    ExcludePeers: []tg.InputPeer{&tg.InputPeerUser{UserID: int64(123456789)}},

    // Optional fields:
    // Contacts: true,
    // NonContacts: true,
    // Groups: true,
    // Broadcasts: true,
    // ... more optional fields
}