This commit is contained in:
InsanusMokrassar committed 2023-06-14 07:48:24 +00:00
1 parent 9337350745
commit 33c1dcb693
3 files changed
+9 -8

No files matched your search

+1 -1
View File
@@ -1 +1 @@
{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"index.html","title":"Insanus Mokrassar libraries home","text":"<p>Hello :) It is my libraries docs place and I glad to welcome you here. I hope, this documentation place will help you.</p>"},{"location":"index.html#projects","title":"Projects","text":"Common and independent TelegramBotAPI Plagubot"},{"location":"index.html#dependencies-graph","title":"Dependencies graph:","text":"<pre><code>flowchart RL\n KSLog[&lt;a href='https://github.com/InsanusMokrassar/kslog'&gt;KSLog&lt;/a&gt;]\n MicroUtils[&lt;a href='https://github.com/InsanusMokrassar/MicroUtils'&gt;MicroUtils&lt;/a&gt;]\n TelegramBotAPI[&lt;a href='https://github.com/InsanusMokrassar/ktgbotapi'&gt;TelegramBotAPI&lt;/a&gt;]\n TelegramBotAPI-examples[&lt;a href='https://github.com/InsanusMokrassar/TelegramBotAPI-examples'&gt;TelegramBotAPI-examples &lt;/a&gt;]\n PlaguBot[&lt;a href='https://github.com/InsanusMokrassar/PlaguBot'&gt;PlaguBot&lt;/a&gt;]\n TelegramBotAPILibraries[&lt;a href='https://github.com/InsanusMokrassar/TelegramBotAPILibraries'&gt;TelegramBotAPILibraries&lt;/a&gt;]\n PlaguBotPlugins[&lt;a href='https://github.com/InsanusMokrassar/PlaguBotPlugins'&gt;PlaguBotPlugins&lt;/a&gt;]\n PlaguBotExample[&lt;a href='https://github.com/InsanusMokrassar/PlaguBotExample'&gt;PlaguBotExample&lt;/a&gt;]\n BooruGrabberTelegramBot[&lt;a href='https://github.com/InsanusMokrassar/BooruGrabberTelegramBot'&gt;BooruGrabberTelegramBot&lt;/a&gt;]\n SauceNaoTelegramBot[&lt;a href='https://github.com/InsanusMokrassar/SauceNaoTelegramBot'&gt;SauceNaoTelegramBot&lt;/a&gt;]\n PlaguPoster[&lt;a href='https://github.com/InsanusMokrassar/PlaguPoster'&gt;PlaguPoster&lt;/a&gt;]\n PlaguBotSuggestionsBot[&lt;a href='https://github.com/InsanusMokrassar/PlaguBotSuggestionsBot'&gt;PlaguBotSuggestionsBot&lt;/a&gt;]\n TelegramBotTutorial[&lt;a href='https://github.com/InsanusMokrassar/TelegramBotTutorial'&gt;TelegramBotTutorial&lt;/a&gt;]\n Krontab[&lt;a href='https://github.com/InsanusMokrassar/krontab'&gt;Krontab&lt;/a&gt;]\n KJSUiKit[&lt;a href='https://github.com/InsanusMokrassar/JSUiKitKBindings'&gt;KJSUiKit&lt;/a&gt;]\n SauceNaoAPI[&lt;a href='https://github.com/InsanusMokrassar/SauceNaoAPI'&gt;SauceNaoAPI&lt;/a&gt;]\n Navigation[&lt;a href='https://github.com/InsanusMokrassar/navigation'&gt;Navigation&lt;/a&gt;]\n\n TelegramBotAPI-bot_template[&lt;a href='https://github.com/InsanusMokrassar/TelegramBotAPI-bot_template'&gt;TelegramBotAPI-bot_template&lt;/a&gt;]\n PlaguBotPluginTemplate[&lt;a href='https://github.com/InsanusMokrassar/PlaguBotPluginTemplate'&gt;PlaguBotPluginTemplate&lt;/a&gt;]\n PlaguBotBotTemplate[&lt;a href='https://github.com/InsanusMokrassar/PlaguBotBotTemplate'&gt;PlaguBotBotTemplate&lt;/a&gt;]\n\n MicroUtils --&gt; KSLog\n TelegramBotAPI --&gt; MicroUtils\n TelegramBotAPI-examples --&gt; TelegramBotAPI\n PlaguBot --&gt; TelegramBotAPI\n TelegramBotAPILibraries --&gt; PlaguBot\n PlaguBotPlugins --&gt; TelegramBotAPILibraries\n PlaguBotExample --&gt; PlaguBotPlugins\n BooruGrabberTelegramBot --&gt; TelegramBotAPI\n BooruGrabberTelegramBot --&gt; Krontab\n SauceNaoTelegramBot --&gt; TelegramBotAPI\n SauceNaoTelegramBot --&gt; SauceNaoAPI\n TelegramBotTutorial --&gt; PlaguBotPlugins\n PlaguBotSuggestionsBot --&gt; PlaguBotPlugins\n PlaguPoster --&gt; PlaguBotPlugins\n PlaguPoster --&gt; Krontab\n SauceNaoAPI --&gt; MicroUtils\n Navigation --&gt; MicroUtils\n\n TelegramBotAPI-bot_template -.- TelegramBotAPI\n PlaguBotPluginTemplate -.- PlaguBot\n PlaguBotBotTemplate -.- PlaguBot</code></pre>"},{"location":"krontab/index.html","title":"krontab","text":"<p>Library was created to give oppotunity to launch some things from time to time according to some schedule in runtime of applications.</p>"},{"location":"krontab/index.html#how-to-use","title":"How to use","text":"<p>There are several ways to configure and use this library:</p> <ul> <li>From some string</li> <li>From builder</li> </ul> <p>Anyway, to start some action from time to time you will need to use one of extensions/functions:</p> <pre><code>val kronScheduler = /* creating of KronScheduler instance */;\nkronScheduler.doWhile {\n// some action\ntrue // true - repeat on next time\n}\n</code></pre>"},{"location":"krontab/index.html#including-in-project","title":"Including in project","text":"<p>If you want to include <code>krontab</code> in your project, just add next line to your dependencies part:</p> <pre><code>implementation \"dev.inmo:krontab:$krontab_version\"\n</code></pre> <p>Next version is the latest currently for the library:</p> <p></p> <p>For old version of Gradle, instead of <code>implementation</code> word developers must use <code>compile</code>.</p>"},{"location":"krontab/index.html#config-from-string","title":"Config from string","text":"<p>Developers can use Line truncated
{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"index.html","title":"Insanus Mokrassar libraries home","text":"<p>Hello :) It is my libraries docs place and I glad to welcome you here. I hope, this documentation place will help you.</p>"},{"location":"index.html#projects","title":"Projects","text":"Common and independent TelegramBotAPI Plagubot"},{"location":"index.html#dependencies-graph","title":"Dependencies graph:","text":"<pre><code>flowchart RL\n KSLog[&lt;a href='https://github.com/InsanusMokrassar/kslog'&gt;KSLog&lt;/a&gt;]\n MicroUtils[&lt;a href='https://github.com/InsanusMokrassar/MicroUtils'&gt;MicroUtils&lt;/a&gt;]\n TelegramBotAPI[&lt;a href='https://github.com/InsanusMokrassar/ktgbotapi'&gt;TelegramBotAPI&lt;/a&gt;]\n TelegramBotAPI-examples[&lt;a href='https://github.com/InsanusMokrassar/TelegramBotAPI-examples'&gt;TelegramBotAPI-examples &lt;/a&gt;]\n PlaguBot[&lt;a href='https://github.com/InsanusMokrassar/PlaguBot'&gt;PlaguBot&lt;/a&gt;]\n TelegramBotAPILibraries[&lt;a href='https://github.com/InsanusMokrassar/TelegramBotAPILibraries'&gt;TelegramBotAPILibraries&lt;/a&gt;]\n PlaguBotPlugins[&lt;a href='https://github.com/InsanusMokrassar/PlaguBotPlugins'&gt;PlaguBotPlugins&lt;/a&gt;]\n PlaguBotExample[&lt;a href='https://github.com/InsanusMokrassar/PlaguBotExample'&gt;PlaguBotExample&lt;/a&gt;]\n BooruGrabberTelegramBot[&lt;a href='https://github.com/InsanusMokrassar/BooruGrabberTelegramBot'&gt;BooruGrabberTelegramBot&lt;/a&gt;]\n SauceNaoTelegramBot[&lt;a href='https://github.com/InsanusMokrassar/SauceNaoTelegramBot'&gt;SauceNaoTelegramBot&lt;/a&gt;]\n PlaguPoster[&lt;a href='https://github.com/InsanusMokrassar/PlaguPoster'&gt;PlaguPoster&lt;/a&gt;]\n PlaguBotSuggestionsBot[&lt;a href='https://github.com/InsanusMokrassar/PlaguBotSuggestionsBot'&gt;PlaguBotSuggestionsBot&lt;/a&gt;]\n TelegramBotTutorial[&lt;a href='https://github.com/InsanusMokrassar/TelegramBotTutorial'&gt;TelegramBotTutorial&lt;/a&gt;]\n Krontab[&lt;a href='https://github.com/InsanusMokrassar/krontab'&gt;Krontab&lt;/a&gt;]\n KJSUiKit[&lt;a href='https://github.com/InsanusMokrassar/JSUiKitKBindings'&gt;KJSUiKit&lt;/a&gt;]\n SauceNaoAPI[&lt;a href='https://github.com/InsanusMokrassar/SauceNaoAPI'&gt;SauceNaoAPI&lt;/a&gt;]\n Navigation[&lt;a href='https://github.com/InsanusMokrassar/navigation'&gt;Navigation&lt;/a&gt;]\n\n TelegramBotAPI-bot_template[&lt;a href='https://github.com/InsanusMokrassar/TelegramBotAPI-bot_template'&gt;TelegramBotAPI-bot_template&lt;/a&gt;]\n PlaguBotPluginTemplate[&lt;a href='https://github.com/InsanusMokrassar/PlaguBotPluginTemplate'&gt;PlaguBotPluginTemplate&lt;/a&gt;]\n PlaguBotBotTemplate[&lt;a href='https://github.com/InsanusMokrassar/PlaguBotBotTemplate'&gt;PlaguBotBotTemplate&lt;/a&gt;]\n\n MicroUtils --&gt; KSLog\n TelegramBotAPI --&gt; MicroUtils\n TelegramBotAPI-examples --&gt; TelegramBotAPI\n PlaguBot --&gt; TelegramBotAPI\n TelegramBotAPILibraries --&gt; PlaguBot\n PlaguBotPlugins --&gt; TelegramBotAPILibraries\n PlaguBotExample --&gt; PlaguBotPlugins\n BooruGrabberTelegramBot --&gt; TelegramBotAPI\n BooruGrabberTelegramBot --&gt; Krontab\n SauceNaoTelegramBot --&gt; TelegramBotAPI\n SauceNaoTelegramBot --&gt; SauceNaoAPI\n TelegramBotTutorial --&gt; PlaguBotPlugins\n PlaguBotSuggestionsBot --&gt; PlaguBotPlugins\n PlaguPoster --&gt; PlaguBotPlugins\n PlaguPoster --&gt; Krontab\n SauceNaoAPI --&gt; MicroUtils\n Navigation --&gt; MicroUtils\n\n TelegramBotAPI-bot_template -.- TelegramBotAPI\n PlaguBotPluginTemplate -.- PlaguBot\n PlaguBotBotTemplate -.- PlaguBot</code></pre>"},{"location":"krontab/index.html","title":"krontab","text":"<p>Library was created to give oppotunity to launch some things from time to time according to some schedule in runtime of applications.</p>"},{"location":"krontab/index.html#how-to-use","title":"How to use","text":"<p>There are several ways to configure and use this library:</p> <ul> <li>From some string</li> <li>From builder</li> </ul> <p>Anyway, to start some action from time to time you will need to use one of extensions/functions:</p> <pre><code>val kronScheduler = /* creating of KronScheduler instance */;\nkronScheduler.doWhile {\n// some action\ntrue // true - repeat on next time\n}\n</code></pre>"},{"location":"krontab/index.html#including-in-project","title":"Including in project","text":"<p>If you want to include <code>krontab</code> in your project, just add next line to your dependencies part:</p> <pre><code>implementation \"dev.inmo:krontab:$krontab_version\"\n</code></pre> <p>Next version is the latest currently for the library:</p> <p></p> <p>For old version of Gradle, instead of <code>implementation</code> word developers must use <code>compile</code>.</p>"},{"location":"krontab/index.html#config-from-string","title":"Config from string","text":"<p>Developers can use Line truncated
BIN
View File
Binary file not shown.
+8 -7
View File
@@ -1433,15 +1433,16 @@
<h1 id="faq">FAQ<a class="headerlink" href="#faq" title="Permanent link">&para;</a></h1>
<h2 id="how-to-filter-updates-in-some-part-of-behaviourbuilder">How to filter updates in some part of <code>BehaviourBuilder</code>?<a class="headerlink" href="#how-to-filter-updates-in-some-part-of-behaviourbuilder" title="Permanent link">&para;</a></h2>
<p>You may create subcontext with
<code>BehaviourBuilder.</code><a href="https://tgbotapi.inmo.dev/tgbotapi.behaviour_builder/dev.inmo.tgbotapi.extensions.behaviour_builder/create-sub-context.html"><code>createSubContext</code></a>
<code>BehaviourBuilder.</code><a href="https://tgbotapi.inmo.dev/tgbotapi.behaviour_builder/dev.inmo.tgbotapi.extensions.behaviour_builder/create-sub-context-and-do-with-updates-filter.html"><code>createSubContextAndDoWithUpdatesFilter</code></a>
and pass there <code>updatesUpstreamFlow</code> parameter with any operations over parent behaviour builder:</p>
<div class="language-kotlin highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="n">buildBehaviourWithLongPolling</span><span class="w"> </span><span class="p">{</span>
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="w"> </span><span class="n">createSubContext</span><span class="p">(</span>
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a><span class="w"> </span><span class="n">updatesUpstreamFlow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">filter</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* some condition */</span><span class="w"> </span><span class="p">}</span>
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a><span class="w"> </span><span class="n">onCommand</span><span class="p">()</span><span class="w"> </span><span class="c1">//...</span>
</span><span id="__span-0-6"><a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a><span class="w"> </span><span class="p">}</span>
</span><span id="__span-0-7"><a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a><span class="p">}</span>
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="w"> </span><span class="n">createSubContextAndDoWithUpdatesFilter</span><span class="p">(</span>
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a><span class="w"> </span><span class="n">updatesUpstreamFlow</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">filter</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="cm">/* some condition */</span><span class="w"> </span><span class="p">},</span>
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a><span class="w"> </span><span class="n">stopOnCompletion</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="kc">false</span><span class="w"> </span><span class="c1">// disable stopping of sub context after setup</span>
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
</span><span id="__span-0-6"><a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a><span class="w"> </span><span class="n">onCommand</span><span class="p">()</span><span class="w"> </span><span class="c1">//...</span>
</span><span id="__span-0-7"><a id="__codelineno-0-7" name="__codelineno-0-7" href="#__codelineno-0-7"></a><span class="w"> </span><span class="p">}</span>
</span><span id="__span-0-8"><a id="__codelineno-0-8" name="__codelineno-0-8" href="#__codelineno-0-8"></a><span class="p">}</span>
</span></code></pre></div>
<h3 id="additional-info">Additional info<a class="headerlink" href="#additional-info" title="Permanent link">&para;</a></h3>
<ul>