# Uses of Class it.tdlight.jni.TdApi.ChatList (tdlight API 3.3.160 API)
use: package: it.tdlight.jni, class: TdApi, class: ChatList

# 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 class` | `TdApi.ChatListArchive` | A list of chats usually located at the top of the main chat list.
`static class` | `TdApi.ChatListFilter` | A list of chats belonging to a chat filter.
`static 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.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.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.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
Constructor | Description
--- | ---
`AddChatToList​(long chatId, TdApi.ChatList chatList)` | Adds a chat to a chat list.
`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.
`SearchMessages​(TdApi.ChatList chatList, String query, int offsetDate, long offsetChatId, long offsetMessageId, 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.
`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.