SearchChatMessages constructor
const
SearchChatMessages({
- required int chatId,
- required String query,
- MessageSender? senderId,
- required int fromMessageId,
- required int offset,
- required int limit,
- SearchMessagesFilter? filter,
- required int messageThreadId,
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. (searchSecretMessages must be used instead), or without an enabled message database. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit.. A combination of query, sender_id, filter and message_thread_id search criteria is expected to be supported, only if it is required for Telegram official application implementation
Implementation
const SearchChatMessages({
required this.chatId,
required this.query,
this.senderId,
required this.fromMessageId,
required this.offset,
required this.limit,
this.filter,
required this.messageThreadId,
});