1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2026-06-26 13:15:09 +00:00
This commit is contained in:
InsanusMokrassar
2026-06-13 08:43:27 +00:00
parent a54e3fdddd
commit a0e7390e84
984 changed files with 95248 additions and 37528 deletions

View File

@@ -95,7 +95,7 @@
<div class="cover ">
<h1 class="cover"><span>only</span><wbr><span>Sent</span><wbr><span>Via</span><wbr><span><span>Bot</span></span></h1>
</div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.utils:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">fun </span><span class="token operator">&lt;</span><a href="only-sent-via-bot.html">MC</a><span class="token punctuation">, </span><a href="only-sent-via-bot.html">M</a><span class="token operator">&gt; </span><span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><span class="token operator">&lt;</span><a href="only-sent-via-bot.html">M</a><span class="token operator">&gt;</span><span class="token punctuation">.</span><a href="only-sent-via-bot.html"><span class="token function">onlySentViaBot</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><span class="token operator">&lt;</span><a href="only-sent-via-bot.html">M</a><span class="token operator"> &amp; </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html">Any</a><span class="token operator">&gt;</span></div><p class="paragraph">Filter the messages and checking that incoming CommonMessage is PossiblySentViaBotCommonMessage and its PossiblySentViaBotCommonMessage.senderBot is not null</p></div></div>
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.utils:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">fun </span><span class="token operator">&lt;</span><a href="only-sent-via-bot.html">MC</a><span class="token punctuation">, </span><a href="only-sent-via-bot.html">M</a><span class="token operator">&gt; </span><span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><span class="token operator">&lt;</span><a href="only-sent-via-bot.html">M</a><span class="token operator">&gt;</span><span class="token punctuation">.</span><a href="only-sent-via-bot.html"><span class="token function">onlySentViaBot</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><span class="token operator">&lt;</span><a href="only-sent-via-bot.html">M</a><span class="token operator"> &amp; </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html">Any</a><span class="token operator">&gt;</span></div><p class="paragraph">Filter the messages and checking that incoming ChatContentMessage is PossiblySentViaBotCommonMessage and its PossiblySentViaBotCommonMessage.senderBot is not null</p></div></div>
</div>
<div class="footer">
<a href="#content" id="go-to-top-link" class="footer--button footer--button_go-to-top"></a>