Package org.drinkless.tdlib
Class TdApi.ChatFolder
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.ChatFolder
- Enclosing class:
- TdApi
Represents a folder for user chats.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe identifier of the chosen color for the chat folder icon; from -1 to 6.static final intIdentifier uniquely determining type of the object.booleanTrue, if archived chats need to be excluded.long[]The chat identifiers of always excluded chats in the folder.booleanTrue, if muted chats need to be excluded.booleanTrue, if read chats need to be excluded.The chosen icon for the chat folder; may be null.booleanTrue, if bots need to be included.booleanTrue, if channels need to be included.booleanTrue, if contacts need to be included.long[]The chat identifiers of always included chats in the folder.booleanTrue, if basic groups and supergroups need to be included.booleanTrue, if non-contact users need to be included.booleanTrue, if at least one link has been created for the folder.The name of the folder.long[]The chat identifiers of pinned chats in the folder. -
Constructor Summary
ConstructorsConstructorDescriptionRepresents a folder for user chats.ChatFolder(TdApi.ChatFolderName name, 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. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Object
toString
-
Field Details
-
name
The name of the folder. -
icon
The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder. -
colorId
public int colorIdThe 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. -
pinnedChatIds
public long[] pinnedChatIdsThe 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
public long[] includedChatIdsThe 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
public long[] excludedChatIdsThe 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
public boolean excludeMutedTrue, if muted chats need to be excluded. -
excludeRead
public boolean excludeReadTrue, if read chats need to be excluded. -
excludeArchived
public boolean excludeArchivedTrue, if archived chats need to be excluded. -
includeContacts
public boolean includeContactsTrue, if contacts need to be included. -
includeNonContacts
public boolean includeNonContactsTrue, if non-contact users need to be included. -
includeBots
public boolean includeBotsTrue, if bots need to be included. -
includeGroups
public boolean includeGroupsTrue, if basic groups and supergroups need to be included. -
includeChannels
public boolean includeChannelsTrue, if channels need to be included. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
ChatFolder
public ChatFolder()Represents a folder for user chats. -
ChatFolder
public ChatFolder(TdApi.ChatFolderName name, 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.- Parameters:
name- The name of the folder.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.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-