GetChatSparseMessagePositions constructor

const GetChatSparseMessagePositions({
  1. required int chatId,
  2. required SearchMessagesFilter filter,
  3. required int fromMessageId,
  4. required int limit,
})

Returns sparse positions of messages of the specified type in the chat to be used for shared media scroll implementation. Returns the results in reverse chronological order (i.e., in order of decreasing message_id).. Cannot be used in secret chats or with searchMessagesFilterFailedToSend filter without an enabled message database

Implementation

const GetChatSparseMessagePositions({
  required this.chatId,
  required this.filter,
  required this.fromMessageId,
  required this.limit,
});