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

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

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

Subclasses of TdApi.SearchMessagesFilter in it.tdlight.jni
Modifier and Type | Class | Description
--- | --- | ---
`static class` | `TdApi.SearchMessagesFilterAnimation` | Returns only animation messages.
`static class` | `TdApi.SearchMessagesFilterAudio` | Returns only audio messages.
`static class` | `TdApi.SearchMessagesFilterCall` | Returns only call messages.
`static class` | `TdApi.SearchMessagesFilterChatPhoto` | Returns only messages containing chat photos.
`static class` | `TdApi.SearchMessagesFilterDocument` | Returns only document messages.
`static class` | `TdApi.SearchMessagesFilterEmpty` | Returns all found messages, no filter is applied.
`static class` | `TdApi.SearchMessagesFilterFailedToSend` | Returns only failed to send messages.
`static class` | `TdApi.SearchMessagesFilterMention` | Returns only messages with mentions of the current user, or messages that are replies to their messages.
`static class` | `TdApi.SearchMessagesFilterMissedCall` | Returns only incoming call messages with missed/declined discard reasons.
`static class` | `TdApi.SearchMessagesFilterPhoto` | Returns only photo messages.
`static class` | `TdApi.SearchMessagesFilterPhotoAndVideo` | Returns only photo and video messages.
`static class` | `TdApi.SearchMessagesFilterPinned` | Returns only pinned messages.
`static class` | `TdApi.SearchMessagesFilterUnreadMention` | Returns only messages with unread mentions of the current user, or messages that are replies to their messages.
`static class` | `TdApi.SearchMessagesFilterUrl` | Returns only messages containing URLs.
`static class` | `TdApi.SearchMessagesFilterVideo` | Returns only video messages.
`static class` | `TdApi.SearchMessagesFilterVideoNote` | Returns only video note messages.
`static class` | `TdApi.SearchMessagesFilterVoiceAndVideoNote` | Returns only voice and video note messages.
`static class` | `TdApi.SearchMessagesFilterVoiceNote` | Returns only voice note messages.

Fields in it.tdlight.jni declared as TdApi.SearchMessagesFilter
Modifier and Type | Field | Description
--- | --- | ---
`TdApi.SearchMessagesFilter` | TdApi.GetChatMessageCount.`filter` | Filter for message content; searchMessagesFilterEmpty is unsupported in this function.
`TdApi.SearchMessagesFilter` | TdApi.SearchChatMessages.`filter` | Additional filter for messages to search; pass null to search for all messages.
`TdApi.SearchMessagesFilter` | TdApi.SearchMessages.`filter` | Additional filter for messages to search; pass null to search for all messages.
`TdApi.SearchMessagesFilter` | TdApi.SearchSecretMessages.`filter` | Additional filter for messages to search; pass null to search for all messages.

Constructors in it.tdlight.jni with parameters of type TdApi.SearchMessagesFilter
Constructor | Description
--- | ---
`GetChatMessageCount​(long chatId, TdApi.SearchMessagesFilter filter, boolean returnLocal)` | Returns approximate number of messages of the specified type in the chat.
`SearchChatMessages​(long chatId, String query, TdApi.MessageSender sender, long fromMessageId, int offset, int limit, TdApi.SearchMessagesFilter filter, long messageThreadId)` | Searches for messages with given words in the chat.
`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.
`SearchSecretMessages​(long chatId, String query, String offset, int limit, TdApi.SearchMessagesFilter filter)` | Searches for messages in secret chats.