Airgram

Guides
/
/
Output types

ChatFilter

Represents a filter of user chats.

This is an alias for the ChatFilterUnion type.


NameTypeDescription
_"chatFilter"
titlestring The title of the filter; 1-12 characters without line feeds
iconNamestring The chosen icon name for short filter representation. If non-empty, must be one of "All", "Unread", "Unmuted", "Bots", "Channels", "Groups", "Private", "Custom", "Setup", "Cat", "Crown", "Favorite", "Flower", "Game", "Home", "Love", "Mask", "Party", "Sport", "Study", "Trade", "Travel", "Work". If empty, use getChatFilterDefaultIconName to get default icon name for the filter
pinnedChatIdsnumber[] The chat identifiers of pinned chats in the filtered chat list
includedChatIdsnumber[] The chat identifiers of always included chats in the filtered chat list
excludedChatIdsnumber[] The chat identifiers of always excluded chats in the filtered chat list
excludeMutedboolean True, if muted chats need to be excluded
excludeReadboolean True, if read chats need to be excluded
excludeArchivedboolean True, if archived chats need to be excluded
includeContactsboolean True, if contacts need to be included
includeNonContactsboolean True, if non-contact users need to be included
includeBotsboolean True, if bots need to be included
includeGroupsboolean True, if basic groups and supergroups need to be included
includeChannelsboolean True, if channels need to be included