1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-10-23 16:20:11 +00:00
This commit is contained in:
InsanusMokrassar
2023-01-18 17:55:09 +00:00
parent 431d1019a8
commit e6a32ceba4
8844 changed files with 17793 additions and 17793 deletions

View File

@@ -40,7 +40,7 @@
</a>
</div>
<div>
5.0.0 </div>
5.0.1 </div>
<div class="pull-right d-flex">
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector common-like" data-active="" data-filter=":docs:dokkaHtml/commonMain">common</button>
@@ -62,7 +62,7 @@
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":docs:dokkaHtml/commonMain"><div class="symbol monospace"><span class="token keyword"></span><span class="token keyword">fun </span><a href="../dev.inmo.tgbotapi.types.message.abstracts/-common-message/index.html">CommonMessage</a><span class="token operator">&lt;</span><span class="token operator">*</span><span class="token operator">&gt;</span><span class="token punctuation">.</span><a href="has-commands.html"><span class="token function">hasCommands</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a></div><p class="paragraph">A predicate to test whether a message contains any commands in its body. Use it as the <code class="lang-kotlin">initialFilter</code> parameter in behaviour builder triggers. E.g.</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">onContentMessage(<br> initialFilter = CommonMessage&lt;MessageContent&gt;::hasCommands<br>) {<br> // the message contains at least one command here<br>}</code></pre><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">true if this <a href="../dev.inmo.tgbotapi.types.message.abstracts/-common-message/index.html">CommonMessage</a> contains any commands. False otherwise.</p></span><h4 class="">See also</h4><div data-togglable="See also"><div class="table" data-togglable="See also"><div class="table-row" data-filterable-current=":docs:dokkaHtml/commonMain" data-filterable-set=":docs:dokkaHtml/commonMain"><div class="main-subrow keyValue WithExtraAttributes"><div class=""><span class="inline-flex"><div><a href="has-no-commands.html"><span>has</span><wbr></wbr><span>No</span><wbr></wbr><span><span>Commands</span></span></a></div></span></div><div></div></div></div></div></div></div></div>
</div>
<div class="footer">
<span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2022 Copyright</span><span
<span class="go-to-top-icon"><a href="#content" id="go-to-top-link"></a></span><span>© 2023 Copyright</span><span
class="pull-right"><span>Generated by </span><a
href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span>
</div>