SearchChatMessages class
Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query.
Returns FoundChatMessages.
- Inheritance
- Available Extensions
Constructors
- SearchChatMessages({required int chat_id, required String query, MessageSender? sender_id, required int from_message_id, required int offset, required int limit, SearchMessagesFilter? filter, required int message_thread_id, int? extra, int? clientId})
- Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query
Properties
- chat_id ↔ int
-
Identifier of the chat in which to search messages.
read / write
- clientId ↔ int?
-
TDLib client instance identifier, for which the response was received.
read / writeoverride
- extra ↔ int?
-
Request identifier. Must be non-zero.
read / writeoverride
- filter ↔ SearchMessagesFilter?
-
Additional filter for messages to search; pass null to search for all messages.
read / write
- from_message_id ↔ int
-
Identifier of the message starting from which history must be fetched; use 0 to get results from the last message.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- limit ↔ int
-
The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than -offset..
read / write
- message_thread_id ↔ int
-
If not 0, only messages in the specified thread will be returned; supergroups only.
read / write
- offset ↔ int
-
Specify 0 to get results from exactly the from_message_id or a negative offset to get the specified message and some newer messages.
read / write
- query ↔ String
-
Query to search for.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- sender_id ↔ MessageSender?
-
Identifier of the sender of messages to search for; pass null to search for messages from any sender. Not supported in secret chats.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Object to Map serializer
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? _map) → SearchChatMessages? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"searchChatMessages"