SearchSavedMessages constructor

const SearchSavedMessages({
  1. required int savedMessagesTopicId,
  2. ReactionType? tag,
  3. required String query,
  4. required int fromMessageId,
  5. required int offset,
  6. required int limit,
})

Searches for messages tagged by the given reaction and with the given words in the Saved Messages chat; for Telegram Premium users only. Returns the results in reverse chronological order, i.e. in order of decreasing message.id. For optimal performance, the number of returned messages is chosen by TDLib and can be smaller than the specified limit

Implementation

const SearchSavedMessages({
  required this.savedMessagesTopicId,
  this.tag,
  required this.query,
  required this.fromMessageId,
  required this.offset,
  required this.limit,
});