# Uses of Class
it.tdlight.jni.TdApi.ChatList

## Uses of TdApi.ChatList in it.tdlight.jni

Subclasses of TdApi.ChatList in it.tdlight.jni
Modifier and Type
Class
Description
`static final class`
`TdApi.ChatListArchive`
A list of chats usually located at the top of the main chat list.
`static final class`
`TdApi.ChatListFolder`
A list of chats added to a chat folder.
`static final class`
`TdApi.ChatListMain`
A main list of chats.
Fields in it.tdlight.jni declared as TdApi.ChatList
Modifier and Type
Field
Description
`TdApi.ChatList`
TdApi.AddChatToList.`chatList`
The chat list.
`TdApi.ChatList`
TdApi.GetChats.`chatList`
The chat list in which to return chats; pass null to get chats from the main chat list.
`TdApi.ChatList`
TdApi.LoadChats.`chatList`
The chat list in which to load chats; pass null to load chats from the main chat list.
`TdApi.ChatList`
TdApi.ReadChatList.`chatList`
Chat list in which to mark all chats as read.
`TdApi.ChatList`
TdApi.SearchMessages.`chatList`
Chat list in which to search messages; pass null to search in all chats regardless of their chat list.
`TdApi.ChatList`
TdApi.SetPinnedChats.`chatList`
Chat list in which to change the order of pinned chats.
`TdApi.ChatList`
TdApi.ToggleChatIsPinned.`chatList`
Chat list in which to change the pinned state of the chat.
`TdApi.ChatList`
TdApi.UpdateChatAddedToList.`chatList`
The chat list to which the chat was added.
`TdApi.ChatList`
TdApi.UpdateChatRemovedFromList.`chatList`
The chat list from which the chat was removed.
`TdApi.ChatList`
TdApi.UpdateUnreadChatCount.`chatList`
The chat list with changed number of unread messages.
`TdApi.ChatList`
TdApi.UpdateUnreadMessageCount.`chatList`
The chat list with changed number of unread messages.
`TdApi.ChatList[]`
TdApi.Chat.`chatLists`
Chat lists to which the chat belongs.
`TdApi.ChatList[]`
TdApi.ChatLists.`chatLists`
List of chat lists.
`TdApi.ChatList`
TdApi.ChatPosition.`list`
The chat list.
Constructors in it.tdlight.jni with parameters of type TdApi.ChatList
Modifier
Constructor
Description
``
`AddChatToList(long chatId, TdApi.ChatList chatList)`
Adds a chat to a chat list.
``
`Chat(long id, TdApi.ChatType type, String title, TdApi.ChatPhotoInfo photo, int accentColorId, long backgroundCustomEmojiId, int profileAccentColorId, long profileBackgroundCustomEmojiId, TdApi.ChatPermissions permissions, TdApi.Message lastMessage, TdApi.ChatPosition[] positions, TdApi.ChatList[] chatLists, TdApi.MessageSender messageSenderId, TdApi.BlockList blockList, boolean hasProtectedContent, boolean isTranslatable, boolean isMarkedAsUnread, boolean viewAsTopics, boolean hasScheduledMessages, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canBeReported, boolean defaultDisableNotification, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, TdApi.ChatNotificationSettings notificationSettings, TdApi.ChatAvailableReactions availableReactions, int messageAutoDeleteTime, TdApi.EmojiStatus emojiStatus, TdApi.ChatBackground background, String themeName, TdApi.ChatActionBar actionBar, TdApi.VideoChat videoChat, TdApi.ChatJoinRequestsInfo pendingJoinRequests, long replyMarkupMessageId, TdApi.DraftMessage draftMessage, String clientData)`
A chat.
``
`ChatLists(TdApi.ChatList[] chatLists)`
Contains a list of chat lists.
``
`ChatPosition(TdApi.ChatList list, long order, boolean isPinned, TdApi.ChatSource source)`
Describes a position of a chat in a chat list.
``
`GetChats(TdApi.ChatList chatList, int limit)`
Returns an ordered list of chats from the beginning of a chat list.
``
`LoadChats(TdApi.ChatList chatList, int limit)`
Loads more chats from a chat list.
``
`ReadChatList(TdApi.ChatList chatList)`
Traverse all chats in a chat list and marks all messages in the chats as read.
``
`SearchMessages(TdApi.ChatList chatList, String query, String offset, int limit, TdApi.SearchMessagesFilter filter, int minDate, int maxDate)`
Searches for messages in all chats except secret chats.
``
`SetPinnedChats(TdApi.ChatList chatList, long[] chatIds)`
Changes the order of pinned chats.
``
`ToggleChatIsPinned(TdApi.ChatList chatList, long chatId, boolean isPinned)`
Changes the pinned state of a chat.
``
`UpdateChatAddedToList(long chatId, TdApi.ChatList chatList)`
A chat was added to a chat list.
``
`UpdateChatRemovedFromList(long chatId, TdApi.ChatList chatList)`
A chat was removed from a chat list.
``
`UpdateUnreadChatCount(TdApi.ChatList chatList, int totalCount, int unreadCount, int unreadUnmutedCount, int markedAsUnreadCount, int markedAsUnreadUnmutedCount)`
Number of unread chats, i.e.
``
`UpdateUnreadMessageCount(TdApi.ChatList chatList, int unreadCount, int unreadUnmutedCount)`
Number of unread messages in a chat list has changed.