java.lang.Object
it.tdlight.jni.TdApi.Object
it.tdlight.jni.TdApi.ChatFolder
- Enclosing class:
- TdApi
Represents a folder for user chats.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
boolean
True, if archived chats need to be excluded.long[]
The chat identifiers of always excluded chats in the folder.boolean
True, if muted chats need to be excluded.boolean
True, if read chats need to be excluded.The chosen icon for the chat folder; may be null.boolean
True, if bots need to be included.boolean
True, if channels need to be included.boolean
True, if contacts need to be included.long[]
The chat identifiers of always included chats in the folder.boolean
True, if basic groups and supergroups need to be included.boolean
True, if non-contact users need to be included.boolean
True, if at least one link has been created for the folder.long[]
The chat identifiers of pinned chats in the folder.The title of the folder; 1-12 characters without line feeds. -
Constructor Summary
ConstructorDescriptionRepresents a folder for user chats.ChatFolder
(DataInput input) Represents a folder for user chats.ChatFolder
(String title, TdApi.ChatFolderIcon icon, 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
Methods inherited from class it.tdlight.jni.TdApi.Object
serialize, toString
-
Field Details
-
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. -
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 CONSTRUCTOR- See Also:
-
-
Constructor Details
-
ChatFolder
public ChatFolder()Represents a folder for user chats. -
ChatFolder
public ChatFolder(String title, TdApi.ChatFolderIcon icon, 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:
title
- String The title of the folder; 1-12 characters without line feeds.icon
- ChatFolderIcon The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder.isShareable
- boolean True, if at least one link has been created for the folder.pinnedChatIds
- long[] 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
- long[] 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
- long[] 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
- boolean True, if muted chats need to be excluded.excludeRead
- boolean True, if read chats need to be excluded.excludeArchived
- boolean True, if archived chats need to be excluded.includeContacts
- boolean True, if contacts need to be included.includeNonContacts
- boolean True, if non-contact users need to be included.includeBots
- boolean True, if bots need to be included.includeGroups
- boolean True, if basic groups and supergroups need to be included.includeChannels
- boolean True, if channels need to be included.
-
ChatFolder
Represents a folder for user chats.- Throws:
IOException
-
-
Method Details
-
getConstructor
public int getConstructor()- Specified by:
getConstructor
in classTdApi.Object
-
serialize
- Specified by:
serialize
in classTdApi.Object
- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-