mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-05-04 23:50:05 +00:00
deploy: ba65e01c84
This commit is contained in:
@@ -95,7 +95,7 @@
|
||||
<div class="cover ">
|
||||
<h1 class="cover"><span>bot</span><wbr><span><span>Info</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.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="../dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><a href="bot-info.html"><span class="token function">botInfo</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><a href="../../tgbotapi.core/dev.inmo.tgbotapi.types.chat/-extended-bot/index.html">ExtendedBot</a><span class="token operator">?</span></div><p class="paragraph">Returns bot information (result of <a href="../../tgbotapi.core/dev.inmo.tgbotapi.requests.bot/-get-me/index.html">GetMe</a>) associated with this <a href="../dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context/index.html">BehaviourContext</a>, if available.</p><p class="paragraph">The value is lazily computed and cached by <a href="-default-custom-behaviour-context-and-type-receiver/index.html">DefaultCustomBehaviourContextAndTypeReceiver</a> when it is used to wrap behaviour handlers. If this context was not prepared by that wrapper, the function returns null.</p><p class="paragraph">Thread-safety:</p><ul><li><p class="paragraph">The underlying retrieval is protected by a mutex to ensure the info is fetched at most once per context.</p></li></ul><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph"><a href="../../tgbotapi.core/dev.inmo.tgbotapi.types.chat/-extended-bot/index.html">ExtendedBot</a> with bot details, or null if no bot info provider is registered in this context.</p></span></div></div>
|
||||
<div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-dependent-content" data-active="" data-togglable=":tgbotapi.behaviour_builder:dokkaHtmlPartial/commonMain"><div class="symbol monospace"><span class="token keyword">suspend </span><span class="token keyword">fun </span><a href="../dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context/index.html">BehaviourContext</a><span class="token punctuation">.</span><a href="bot-info.html"><span class="token function">botInfo</span></a><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token operator">: </span><span data-unresolved-link="/<Error class: unknown class>///PointingToDeclaration/"><Error class: unknown class></span><span class="token operator">?</span></div><p class="paragraph">Returns bot information (result of GetMe) associated with this <a href="../dev.inmo.tgbotapi.extensions.behaviour_builder/-behaviour-context/index.html">BehaviourContext</a>, if available.</p><p class="paragraph">The value is lazily computed and cached by <a href="-default-custom-behaviour-context-and-type-receiver/index.html">DefaultCustomBehaviourContextAndTypeReceiver</a> when it is used to wrap behaviour handlers. If this context was not prepared by that wrapper, the function returns null.</p><p class="paragraph">Thread-safety:</p><ul><li><p class="paragraph">The underlying retrieval is protected by a mutex to ensure the info is fetched at most once per context.</p></li></ul><span class="kdoc-tag"><h4 class="">Return</h4><p class="paragraph">ExtendedBot with bot details, or null if no bot info provider is registered in this context.</p></span></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