SearchMessages constructor

const SearchMessages({
  1. ChatList? chatList,
  2. required String query,
  3. required int offsetDate,
  4. required int offsetChatId,
  5. required int offsetMessageId,
  6. required int limit,
  7. SearchMessagesFilter? filter,
  8. required int minDate,
  9. required 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 TDLib and can be smaller than the specified limit

Implementation

const SearchMessages({
  this.chatList,
  required this.query,
  required this.offsetDate,
  required this.offsetChatId,
  required this.offsetMessageId,
  required this.limit,
  this.filter,
  required this.minDate,
  required this.maxDate,
});