SearchMessages constructor

const SearchMessages({
  1. ChatList? chatList,
  2. required String query,
  3. required String offset,
  4. required int limit,
  5. SearchMessagesFilter? filter,
  6. required int minDate,
  7. 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.offset,
  required this.limit,
  this.filter,
  required this.minDate,
  required this.maxDate,
});