OptimizeStorage constructor

OptimizeStorage(
  1. {required int size,
  2. required int ttl,
  3. required int count,
  4. required int immunity_delay,
  5. required List<FileType> file_types,
  6. required List<int> chat_ids,
  7. required List<int> exclude_chat_ids,
  8. required bool return_deleted_file_statistics,
  9. required int chat_limit,
  10. int? extra,
  11. int? clientId}
)

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

Returns StorageStatistics

Implementation

OptimizeStorage