OptimizeStorage constructor

const OptimizeStorage({
  1. required int size,
  2. required int ttl,
  3. required int count,
  4. required int immunityDelay,
  5. required List<FileType> fileTypes,
  6. required List<int> chatIds,
  7. required List<int> excludeChatIds,
  8. required bool returnDeletedFileStatistics,
  9. required int chatLimit,
})

Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted

Implementation

const OptimizeStorage({
  required this.size,
  required this.ttl,
  required this.count,
  required this.immunityDelay,
  required this.fileTypes,
  required this.chatIds,
  required this.excludeChatIds,
  required this.returnDeletedFileStatistics,
  required this.chatLimit,
});