<li><ahref="../../../it/ernytech/tdlib/TdApi.OpenMessageContent.html"title="class in it.ernytech.tdlib"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../it/ernytech/tdlib/TdApi.OptionValue.html"title="class in it.ernytech.tdlib"><spanclass="typeNameLink">Next Class</span></a></li>
<li><ahref="../../../it/ernytech/tdlib/TdApi.Object.html"title="class in it.ernytech.tdlib">it.ernytech.tdlib.TdApi.Object</a></li>
<li>
<ulclass="inheritance">
<li><ahref="../../../it/ernytech/tdlib/TdApi.Function.html"title="class in it.ernytech.tdlib">it.ernytech.tdlib.TdApi.Function</a></li>
<li>
<ulclass="inheritance">
<li>it.ernytech.tdlib.TdApi.OptimizeStorage</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<dl>
<dt>Enclosing class:</dt>
<dd><ahref="../../../it/ernytech/tdlib/TdApi.html"title="class in it.ernytech.tdlib">TdApi</a></dd>
</dl>
<hr>
<pre>public static class <spanclass="typeNameLabel">TdApi.OptimizeStorage</span>
extends <ahref="../../../it/ernytech/tdlib/TdApi.Function.html"title="class in it.ernytech.tdlib">TdApi.Function</a></pre>
<divclass="block">Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted.
<p> Returns <ahref="../../../it/ernytech/tdlib/TdApi.StorageStatistics.html"title="class in it.ernytech.tdlib"><code>StorageStatistics</code></a></p></div>
<h3>Methods inherited from class it.ernytech.tdlib.<ahref="../../../it/ernytech/tdlib/TdApi.Function.html"title="class in it.ernytech.tdlib">TdApi.Function</a></h3>
<divclass="block">Limit on the total size of files after deletion. Pass -1 to use the default limit.</div>
</li>
</ul>
<aid="ttl">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>ttl</h4>
<pre>public int ttl</pre>
<divclass="block">Limit on the time that has passed since the last time a file was accessed (or creation time for some filesystems). Pass -1 to use the default limit.</div>
</li>
</ul>
<aid="count">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>count</h4>
<pre>public int count</pre>
<divclass="block">Limit on the total count of files after deletion. Pass -1 to use the default limit.</div>
</li>
</ul>
<aid="immunityDelay">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>immunityDelay</h4>
<pre>public int immunityDelay</pre>
<divclass="block">The amount of time after the creation of a file during which it can't be deleted, in seconds. Pass -1 to use the default value.</div>
</li>
</ul>
<aid="fileTypes">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>fileTypes</h4>
<pre>public <ahref="../../../it/ernytech/tdlib/TdApi.FileType.html"title="class in it.ernytech.tdlib">TdApi.FileType</a>[] fileTypes</pre>
<divclass="block">If not empty, only files with the given type(s) are considered. By default, all types except thumbnails, profile photos, stickers and wallpapers are deleted.</div>
</li>
</ul>
<aid="chatIds">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>chatIds</h4>
<pre>public long[] chatIds</pre>
<divclass="block">If not empty, only files from the given chats are considered. Use 0 as chat identifier to delete files not belonging to any chat (e.g., profile photos).</div>
</li>
</ul>
<aid="excludeChatIds">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>excludeChatIds</h4>
<pre>public long[] excludeChatIds</pre>
<divclass="block">If not empty, files from the given chats are excluded. Use 0 as chat identifier to exclude all files not belonging to any chat (e.g., profile photos).</div>
</li>
</ul>
<aid="chatLimit">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>chatLimit</h4>
<pre>public int chatLimit</pre>
<divclass="block">Same as in getStorageStatistics. Affects only returned statistics.</div>
<dd><code>size</code> - Limit on the total size of files after deletion. Pass -1 to use the default limit.</dd>
<dd><code>ttl</code> - Limit on the time that has passed since the last time a file was accessed (or creation time for some filesystems). Pass -1 to use the default limit.</dd>
<dd><code>count</code> - Limit on the total count of files after deletion. Pass -1 to use the default limit.</dd>
<dd><code>immunityDelay</code> - The amount of time after the creation of a file during which it can't be deleted, in seconds. Pass -1 to use the default value.</dd>
<dd><code>fileTypes</code> - If not empty, only files with the given type(s) are considered. By default, all types except thumbnails, profile photos, stickers and wallpapers are deleted.</dd>
<dd><code>chatIds</code> - If not empty, only files from the given chats are considered. Use 0 as chat identifier to delete files not belonging to any chat (e.g., profile photos).</dd>
<dd><code>excludeChatIds</code> - If not empty, files from the given chats are excluded. Use 0 as chat identifier to exclude all files not belonging to any chat (e.g., profile photos).</dd>
<dd><code>chatLimit</code> - Same as in getStorageStatistics. Affects only returned statistics.</dd>
<dd><code><ahref="../../../it/ernytech/tdlib/TdApi.Object.html#getConstructor()">getConstructor</a></code> in class <code><ahref="../../../it/ernytech/tdlib/TdApi.Object.html"title="class in it.ernytech.tdlib">TdApi.Object</a></code></dd>
<li><ahref="../../../it/ernytech/tdlib/TdApi.OpenMessageContent.html"title="class in it.ernytech.tdlib"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../it/ernytech/tdlib/TdApi.OptionValue.html"title="class in it.ernytech.tdlib"><spanclass="typeNameLink">Next Class</span></a></li>