mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-06-26 13:15:09 +00:00
deploy: b8e995f36d
This commit is contained in:
@@ -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"><</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">> </span><span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><span class="token operator"><</span><a href="only-sent-via-bot.html">M</a><span class="token operator">></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"><</span><a href="only-sent-via-bot.html">M</a><span class="token operator"> & </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html">Any</a><span class="token operator">></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"><</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">> </span><span data-unresolved-link="kotlinx.coroutines.flow/Flow///PointingToDeclaration/">Flow</span><span class="token operator"><</span><a href="only-sent-via-bot.html">M</a><span class="token operator">></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"><</span><a href="only-sent-via-bot.html">M</a><span class="token operator"> & </span><a href="https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html">Any</a><span class="token operator">></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>
|
||||
|
||||
Reference in New Issue
Block a user