SearchMessages class



SearchMessages({ChatList chatList, String query, int offsetDate, int offsetChatId, int offsetMessageId, int limit, SearchMessagesFilter filter, int minDate, int maxDate})
Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)).. For optimal performance the number of returned messages is chosen by the library
SearchMessages.fromJson(Map<String, dynamic> json)
Parse from a json


chatList ChatList
chatList Chat list in which to search messages; pass null to search in all chats regardless of their chat list
read / write
extra ↔ dynamic
callback sign
read / write
filter SearchMessagesFilter
filter Filter for message content in the search results; searchMessagesFilterCall, searchMessagesFilterMissedCall, searchMessagesFilterMention, searchMessagesFilterUnreadMention, searchMessagesFilterFailedToSend and searchMessagesFilterPinned are unsupported in this function
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
limit int
limit The maximum number of messages to be returned; up to 100. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached
read / write
maxDate int
maxDate If not 0, the maximum date of the messages to return
read / write
minDate int
minDate If not 0, the minimum date of the messages to return
read / write
offsetChatId int
offsetChatId The chat identifier of the last found message, or 0 for the first request
read / write
offsetDate int
offsetDate The date of the message starting from which the results should be fetched. Use 0 or any date in the future to get results from the last message
read / write
offsetMessageId int
offsetMessageId The message identifier of the last found message, or 0 for the first request
read / write
query String
query Query to search for
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


getConstructor() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]


CONSTRUCTOR → const String