SearchChatMessages constructor

const SearchChatMessages({
  1. required int chatId,
  2. required String query,
  3. MessageSender? senderId,
  4. required int fromMessageId,
  5. required int offset,
  6. required int limit,
  7. SearchMessagesFilter? filter,
  8. 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

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,
});