# 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 final class`
`TdApi.SearchMessagesFilterAnimation`
Returns only animation messages.
`static final class`
`TdApi.SearchMessagesFilterAudio`
Returns only audio messages.
`static final class`
`TdApi.SearchMessagesFilterCall`
Returns only call messages.
`static final class`
`TdApi.SearchMessagesFilterChatPhoto`
Returns only messages containing chat photos.
`static final class`
`TdApi.SearchMessagesFilterDocument`
Returns only document messages.
`static final class`
`TdApi.SearchMessagesFilterEmpty`
Returns all found messages, no filter is applied.
`static final class`
`TdApi.SearchMessagesFilterFailedToSend`
Returns only failed to send messages.
`static final class`
`TdApi.SearchMessagesFilterMention`
Returns only messages with mentions of the current user, or messages that are replies to their messages.
`static final class`
`TdApi.SearchMessagesFilterMissedCall`
Returns only incoming call messages with missed/declined discard reasons.
`static final class`
`TdApi.SearchMessagesFilterPhoto`
Returns only photo messages.
`static final class`
`TdApi.SearchMessagesFilterPhotoAndVideo`
Returns only photo and video messages.
`static final class`
`TdApi.SearchMessagesFilterPinned`
Returns only pinned messages.
`static final class`
`TdApi.SearchMessagesFilterUnreadMention`
Returns only messages with unread mentions of the current user, or messages that are replies to their messages.
`static final class`
`TdApi.SearchMessagesFilterUrl`
Returns only messages containing URLs.
`static final class`
`TdApi.SearchMessagesFilterVideo`
Returns only video messages.
`static final class`
`TdApi.SearchMessagesFilterVideoNote`
Returns only video note messages.
`static final class`
`TdApi.SearchMessagesFilterVoiceAndVideoNote`
Returns only voice and video note messages.
`static final 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.GetChatMessageCalendar.`filter`
Filter for message content.
`TdApi.SearchMessagesFilter`
TdApi.GetChatMessageCount.`filter`
Filter for message content; searchMessagesFilterEmpty is unsupported in this function.
`TdApi.SearchMessagesFilter`
TdApi.GetChatSparseMessagePositions.`filter`
Filter for message content.
`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
Modifier
Constructor
Description
``
`GetChatMessageCalendar(long chatId, TdApi.SearchMessagesFilter filter, long fromMessageId)`
Returns information about the next messages of the specified type in the chat splitted by days.
``
`GetChatMessageCount(long chatId, TdApi.SearchMessagesFilter filter, boolean returnLocal)`
Returns approximate number of messages of the specified type in the chat.
``
`GetChatSparseMessagePositions(long chatId, TdApi.SearchMessagesFilter filter, long fromMessageId, int limit)`
Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation.
``
`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.