public static class TdApi.ChatFolder extends TdApi.Object
| Modifier and Type | Field and Description |
|---|---|
int |
colorId
The identifier of the chosen color for the chat folder icon; from -1 to 6.
|
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 folder.
|
boolean |
excludeMuted
True, if muted chats need to be excluded.
|
boolean |
excludeRead
True, if read chats need to be excluded.
|
TdApi.ChatFolderIcon |
icon
The chosen icon for the chat folder; may be null.
|
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 folder.
|
boolean |
includeGroups
True, if basic groups and supergroups need to be included.
|
boolean |
includeNonContacts
True, if non-contact users need to be included.
|
boolean |
isShareable
True, if at least one link has been created for the folder.
|
long[] |
pinnedChatIds
The chat identifiers of pinned chats in the folder.
|
java.lang.String |
title
The title of the folder; 1-12 characters without line feeds.
|
| Constructor and Description |
|---|
ChatFolder()
Represents a folder for user chats.
|
ChatFolder(java.lang.String title,
TdApi.ChatFolderIcon icon,
int colorId,
boolean isShareable,
long[] pinnedChatIds,
long[] includedChatIds,
long[] excludedChatIds,
boolean excludeMuted,
boolean excludeRead,
boolean excludeArchived,
boolean includeContacts,
boolean includeNonContacts,
boolean includeBots,
boolean includeGroups,
boolean includeChannels)
Represents a folder for user chats.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic java.lang.String title
public TdApi.ChatFolderIcon icon
public int colorId
public boolean isShareable
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 ChatFolder()
public ChatFolder(java.lang.String title,
TdApi.ChatFolderIcon icon,
int colorId,
boolean isShareable,
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 folder; 1-12 characters without line feeds.icon - The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder.colorId - The identifier of the chosen color for the chat folder icon; from -1 to 6. If -1, then color is disabled. Can't be changed if folder tags are disabled or the current user doesn't have Telegram Premium subscription.isShareable - True, if at least one link has been created for the folder.pinnedChatIds - The chat identifiers of pinned chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.includedChatIds - The chat identifiers of always included chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.excludedChatIds - The chat identifiers of always excluded chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium.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()
TdApi.ObjectgetConstructor in class TdApi.Object