SearchMessages class

Inheritance

Constructors

SearchMessages({String query, int offsetDate, int offsetChatId, int offsetMessageId, int limit})
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. query Query to search for. 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. offsetChatId The chat identifier of the last found message, or 0 for the first request. offsetMessageId The message identifier of the last found message, or 0 for the first request. 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
SearchMessages.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

constructor String
read / write, inherited
extra ↔ dynamic
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
limit int
read / write
offsetChatId int
read / write
offsetDate int
read / write
offsetMessageId int
read / write
query String
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"searchMessages"