<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="inheritance"><ahref="TdApi.Object.html"title="class in it.tdlight.jni">it.tdlight.jni.TdApi.Object</a>
<divclass="inheritance"><ahref="TdApi.Function.html"title="class in it.tdlight.jni">it.tdlight.jni.TdApi.Function</a><<ahref="TdApi.Messages.html"title="class in it.tdlight.jni">TdApi.Messages</a>>
<dd><ahref="TdApi.html"title="class in it.tdlight.jni">TdApi</a></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="modifiers">public static final class </span><spanclass="element-name type-name-label">TdApi.SearchMessages</span>
<spanclass="extends-implements">extends <ahref="TdApi.Function.html"title="class in it.tdlight.jni">TdApi.Function</a><<ahref="TdApi.Messages.html"title="class in it.tdlight.jni">TdApi.Messages</a>></span></div>
<divclass="block">Searches for messages in all chats
except secret chats. Returns the
results in reverse chronological order
(i.e., in order of decreasing (date,
chatId, messageId)). For optimal
performance, the number of returned
messages is chosen by TDLib and can
be smaller than the specified limit.
<p> Returns <ahref="TdApi.Messages.html"title="class in it.tdlight.jni"><code>Messages</code></a></p></div>
</section>
<sectionclass="summary">
<ulclass="summary-list">
<!-- =========== FIELD SUMMARY =========== -->
<li>
<sectionclass="field-summary"id="field-summary">
<h2>Field Summary</h2>
<divclass="caption"><span>Fields</span></div>
<divclass="summary-table three-column-summary">
<divclass="table-header col-first">Modifier and Type</div>
<divclass="col-first even-row-color"><code><ahref="TdApi.SearchMessagesFilter.html"title="class in it.tdlight.jni">TdApi.SearchMessagesFilter</a></code></div>
<divclass="block">The message identifier of the last
found message, or 0 for the first request.</div>
</div>
<divclass="col-first odd-row-color"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="block">Searches for messages in all chats
except secret chats.</div>
</div>
<divclass="col-constructor-name odd-row-color"><code><ahref="#%3Cinit%3E(it.tdlight.jni.TdApi.ChatList,java.lang.String,int,long,long,int,it.tdlight.jni.TdApi.SearchMessagesFilter,int,int)"class="member-name-link">SearchMessages</a><wbr>(<ahref="TdApi.ChatList.html"title="class in it.tdlight.jni">TdApi.ChatList</a> chatList,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> query,
int offsetDate,
long offsetChatId,
long offsetMessageId,
int limit,
<ahref="TdApi.SearchMessagesFilter.html"title="class in it.tdlight.jni">TdApi.SearchMessagesFilter</a> filter,
int minDate,
int maxDate)</code></div>
<divclass="col-last odd-row-color">
<divclass="block">Searches for messages in all chats
except secret chats.</div>
</div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(java.io.DataInput)"class="member-name-link">SearchMessages</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/DataInput.html"title="class or interface in java.io"class="external-link">DataInput</a> input)</code></div>
<divclass="col-last even-row-color">
<divclass="block">Searches for messages in all chats
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#equals(java.lang.Object)"class="member-name-link">equals</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> o)</code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#serialize(java.io.DataOutput)"class="member-name-link">serialize</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/DataOutput.html"title="class or interface in java.io"class="external-link">DataOutput</a> output)</code></div>
<h3id="methods-inherited-from-class-it.tdlight.jni.TdApi.Function">Methods inherited from class it.tdlight.jni.<ahref="TdApi.Function.html"title="class in it.tdlight.jni">TdApi.Function</a></h3>
<h3id="methods-inherited-from-class-it.tdlight.jni.TdApi.Object">Methods inherited from class it.tdlight.jni.<ahref="TdApi.Object.html"title="class in it.tdlight.jni">TdApi.Object</a></h3>
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
</section>
</li>
</ul>
</section>
<sectionclass="details">
<ulclass="details-list">
<!-- ============ FIELD DETAIL =========== -->
<li>
<sectionclass="field-details"id="field-detail">
<h2>Field Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="chatList">
<h3>chatList</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.ChatList.html"title="class in it.tdlight.jni">TdApi.ChatList</a></span> <spanclass="element-name">chatList</span></div>
<divclass="block">Chat list in which to search messages;
pass null to search in all chats
regardless of their chat list. Only
Main and Archive chat lists are supported.</div>
</section>
</li>
<li>
<sectionclass="detail"id="query">
<h3>query</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">query</span></div>
<divclass="block">The maximum number of messages to be
returned; up to 100. For optimal
performance, the number of returned
messages is chosen by TDLib and can
be smaller than the specified limit.</div>
</section>
</li>
<li>
<sectionclass="detail"id="filter">
<h3>filter</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="TdApi.SearchMessagesFilter.html"title="class in it.tdlight.jni">TdApi.SearchMessagesFilter</a></span> <spanclass="element-name">filter</span></div>
<divclass="block">Additional filter for messages to
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">SearchMessages</span><wbr><spanclass="parameters">(<ahref="TdApi.ChatList.html"title="class in it.tdlight.jni">TdApi.ChatList</a> chatList,
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> query,
int offsetDate,
long offsetChatId,
long offsetMessageId,
int limit,
<ahref="TdApi.SearchMessagesFilter.html"title="class in it.tdlight.jni">TdApi.SearchMessagesFilter</a> filter,
int minDate,
int maxDate)</span></div>
<divclass="block">Searches for messages in all chats
except secret chats. Returns the
results in reverse chronological order
(i.e., in order of decreasing (date,
chatId, messageId)). For optimal
performance, the number of returned
messages is chosen by TDLib and can
be smaller than the specified limit.
<p> Returns <ahref="TdApi.Messages.html"title="class in it.tdlight.jni"><code>Messages</code></a></p></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>chatList</code> - ChatList Chat list in which to search messages;
pass null to search in all chats
regardless of their chat list. Only
Main and Archive chat lists are supported.</dd>
<dd><code>query</code> - String Query to search for.</dd>
<dd><code>offsetDate</code> - int The date of the message starting from
which the results need to be fetched.
Use 0 or any date in the future to
get results from the last message.</dd>
<dd><code>offsetChatId</code> - long The chat identifier of the last found
message, or 0 for the first request.</dd>
<dd><code>offsetMessageId</code> - long The message identifier of the last
found message, or 0 for the first request.</dd>
<dd><code>limit</code> - int The maximum number of messages to be
returned; up to 100. For optimal
performance, the number of returned
messages is chosen by TDLib and can
be smaller than the specified limit.</dd>
<dd><code>filter</code> - SearchMessagesFilter Additional filter for messages to
search; pass null to search for all
messages. Filters searchMessagesFilterCall,
searchMessagesFilterMissedCall,
searchMessagesFilterMention,
searchMessagesFilterUnreadMention,
searchMessagesFilterFailedToSend and
searchMessagesFilterPinned are
unsupported in this function.</dd>
<dd><code>minDate</code> - int If not 0, the minimum date of the
messages to return.</dd>
<dd><code>maxDate</code> - int If not 0, the maximum date of the
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">SearchMessages</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/DataInput.html"title="class or interface in java.io"class="external-link">DataInput</a> input)</span>
throws <spanclass="exceptions"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></span></div>
<divclass="block">Searches for messages in all chats
except secret chats. Returns the
results in reverse chronological order
(i.e., in order of decreasing (date,
chatId, messageId)). For optimal
performance, the number of returned
messages is chosen by TDLib and can
be smaller than the specified limit.
<p> Returns <ahref="TdApi.Messages.html"title="class in it.tdlight.jni"><code>Messages</code></a></p></div>
<dlclass="notes">
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></code></dd>
<dd><code><ahref="TdApi.Object.html#getConstructor()">getConstructor</a></code> in class <code><ahref="TdApi.Object.html"title="class in it.tdlight.jni">TdApi.Object</a></code></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">void</span> <spanclass="element-name">serialize</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/DataOutput.html"title="class or interface in java.io"class="external-link">DataOutput</a> output)</span>
throws <spanclass="exceptions"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></span></div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="TdApi.Object.html#serialize(java.io.DataOutput)">serialize</a></code> in class <code><ahref="TdApi.Object.html"title="class in it.tdlight.jni">TdApi.Object</a></code></dd>
<dt>Throws:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/IOException.html"title="class or interface in java.io"class="external-link">IOException</a></code></dd>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">equals</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> o)</span></div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
</dl>
</section>
</li>
</ul>
</section>
</li>
</ul>
</section>
<!-- ========= END OF CLASS DATA ========= -->
</main>
<footerrole="contentinfo">
<hr>
<pclass="legal-copy"><small>Copyright © 2021. All rights reserved.</small></p>