public static class TdApi.ChatFilter extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
boolean |
excludeArchived
True, if archived chats need to be excluded.
|
long[] |
excludedChatIds
The chat identifiers of always excluded chats in the filtered chat list.
|
boolean |
excludeMuted
True, if muted chats need to be excluded.
|
boolean |
excludeRead
True, if read chats need to be excluded.
|
java.lang.String |
iconName
The chosen icon name for short filter representation.
|
boolean |
includeBots
True, if bots need to be included.
|
boolean |
includeChannels
True, if channels need to be included.
|
boolean |
includeContacts
True, if contacts need to be included.
|
long[] |
includedChatIds
The chat identifiers of always included chats in the filtered chat list.
|
boolean |
includeGroups
True, if basic groups and supergroups need to be included.
|
boolean |
includeNonContacts
True, if non-contact users need to be included.
|
long[] |
pinnedChatIds
The chat identifiers of pinned chats in the filtered chat list.
|
java.lang.String |
title
The title of the filter; 1-12 characters without line feeds.
|
Constructor and Description |
---|
ChatFilter()
Represents a filter of user chats.
|
ChatFilter(java.lang.String title,
java.lang.String iconName,
long[] pinnedChatIds,
long[] includedChatIds,
long[] excludedChatIds,
boolean excludeMuted,
boolean excludeRead,
boolean excludeArchived,
boolean includeContacts,
boolean includeNonContacts,
boolean includeBots,
boolean includeGroups,
boolean includeChannels)
Represents a filter of user chats.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String title
public java.lang.String iconName
public long[] pinnedChatIds
public long[] includedChatIds
public long[] excludedChatIds
public boolean excludeMuted
public boolean excludeRead
public boolean excludeArchived
public boolean includeContacts
public boolean includeNonContacts
public boolean includeBots
public boolean includeGroups
public boolean includeChannels
public static final int CONSTRUCTOR
public ChatFilter()
public ChatFilter(java.lang.String title, java.lang.String iconName, long[] pinnedChatIds, long[] includedChatIds, long[] excludedChatIds, boolean excludeMuted, boolean excludeRead, boolean excludeArchived, boolean includeContacts, boolean includeNonContacts, boolean includeBots, boolean includeGroups, boolean includeChannels)
title
- The title of the filter; 1-12 characters without line feeds.iconName
- 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.pinnedChatIds
- The chat identifiers of pinned chats in the filtered chat list.includedChatIds
- The chat identifiers of always included chats in the filtered chat list.excludedChatIds
- The chat identifiers of always excluded chats in the filtered chat list.excludeMuted
- True, if muted chats need to be excluded.excludeRead
- True, if read chats need to be excluded.excludeArchived
- True, if archived chats need to be excluded.includeContacts
- True, if contacts need to be included.includeNonContacts
- True, if non-contact users need to be included.includeBots
- True, if bots need to be included.includeGroups
- True, if basic groups and supergroups need to be included.includeChannels
- True, if channels need to be included.public int getConstructor()
getConstructor
in class TdApi.Object