<li><ahref="../../../it/ernytech/tdlib/TdApi.SearchChatMembers.html"title="class in it.ernytech.tdlib"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../it/ernytech/tdlib/TdApi.SearchChatRecentLocationMessages.html"title="class in it.ernytech.tdlib"><spanclass="typeNameLink">Next Class</span></a></li>
<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.SearchChatMessages</span>
extends <ahref="../../../it/ernytech/tdlib/TdApi.Function.html"title="class in it.ernytech.tdlib">TdApi.Function</a></pre>
<divclass="block">Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing messageId. Cannot be used in secret chats with a non-empty query (searchSecretMessages should be used instead), or without an enabled message database. For optimal performance the number of returned messages is chosen by the library.
<p> Returns <ahref="../../../it/ernytech/tdlib/TdApi.Messages.html"title="class in it.ernytech.tdlib"><code>Messages</code></a></p></div>
<divclass="block">Identifier uniquely determining type of the object.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="../../../it/ernytech/tdlib/TdApi.SearchMessagesFilter.html"title="class in it.ernytech.tdlib">TdApi.SearchMessagesFilter</a></code></td>
<divclass="block">Specify 0 to get results from exactly the fromMessageId or a negative offset to get the specified message and some newer messages.</div>
<ahref="../../../it/ernytech/tdlib/TdApi.SearchMessagesFilter.html"title="class in it.ernytech.tdlib">TdApi.SearchMessagesFilter</a> filter)</code></th>
<tdclass="colLast">
<divclass="block">Constructor for initialization of all fields.</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">Identifier of the chat in which to search messages.</div>
</li>
</ul>
<aid="query">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>query</h4>
<pre>public java.lang.String query</pre>
<divclass="block">Query to search for.</div>
</li>
</ul>
<aid="senderUserId">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>senderUserId</h4>
<pre>public int senderUserId</pre>
<divclass="block">If not 0, only messages sent by the specified user will be returned. Not supported in secret chats.</div>
</li>
</ul>
<aid="fromMessageId">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>fromMessageId</h4>
<pre>public long fromMessageId</pre>
<divclass="block">Identifier of the message starting from which history must be fetched; use 0 to get results from the beginning.</div>
</li>
</ul>
<aid="offset">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>offset</h4>
<pre>public int offset</pre>
<divclass="block">Specify 0 to get results from exactly the fromMessageId or a negative offset to get the specified message and some newer messages.</div>
</li>
</ul>
<aid="limit">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>limit</h4>
<pre>public int limit</pre>
<divclass="block">The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than -offset. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached.</div>
</li>
</ul>
<aid="filter">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>filter</h4>
<pre>public <ahref="../../../it/ernytech/tdlib/TdApi.SearchMessagesFilter.html"title="class in it.ernytech.tdlib">TdApi.SearchMessagesFilter</a> filter</pre>
<divclass="block">Filter for message content in the search results.</div>
<ahref="../../../it/ernytech/tdlib/TdApi.SearchMessagesFilter.html"title="class in it.ernytech.tdlib">TdApi.SearchMessagesFilter</a> filter)</pre>
<divclass="block">Constructor for initialization of all fields.</div>
<dd><code>chatId</code> - Identifier of the chat in which to search messages.</dd>
<dd><code>query</code> - Query to search for.</dd>
<dd><code>senderUserId</code> - If not 0, only messages sent by the specified user will be returned. Not supported in secret chats.</dd>
<dd><code>fromMessageId</code> - Identifier of the message starting from which history must be fetched; use 0 to get results from the beginning.</dd>
<dd><code>offset</code> - Specify 0 to get results from exactly the fromMessageId or a negative offset to get the specified message and some newer messages.</dd>
<dd><code>limit</code> - The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than -offset. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached.</dd>
<dd><code>filter</code> - Filter for message content in the search results.</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.SearchChatMembers.html"title="class in it.ernytech.tdlib"><spanclass="typeNameLink">Prev Class</span></a></li>
<li><ahref="../../../it/ernytech/tdlib/TdApi.SearchChatRecentLocationMessages.html"title="class in it.ernytech.tdlib"><spanclass="typeNameLink">Next Class</span></a></li>