Telegram plugin-based bot
Project description
<h1 id="tgbotplug">tgbotplug</h1>
<p><a href="https://travis-ci.org/fopina/tgbotplug"><img src="https://travis-ci.org/fopina/tgbotplug.svg" alt="Build Status" /></a></p>
<p>tgbotplug is meant to be an easy-to-extend telegram bot built around <a href="https://github.com/datamachine/twx.botapi">twx.botapi</a>.</p>
<p>Plugin examples can be found in <a href="https://github.com/fopina/tgbotplug-plugins">tgbotplug-plugins</a>.</p>
<p>Using tgbotplug, after choosing/developing your plugins, is as simple as:</p>
<pre class="sourceCode python"><code class="sourceCode python"><span class="ch">import</span> tgbot
tgbot.TGBot(
<span class="st">'YOUR_BOT_TOKEN'</span>,
plugins=[
Plugin1(),
...,
PluginN(),
],
).run()</code></pre>
<p>Plugins should inherit <code>tgbot.TGPluginBase</code>and implement <code>list_commands()</code> (and the methods mapped in its result).</p>
<p><a href="https://travis-ci.org/fopina/tgbotplug"><img src="https://travis-ci.org/fopina/tgbotplug.svg" alt="Build Status" /></a></p>
<p>tgbotplug is meant to be an easy-to-extend telegram bot built around <a href="https://github.com/datamachine/twx.botapi">twx.botapi</a>.</p>
<p>Plugin examples can be found in <a href="https://github.com/fopina/tgbotplug-plugins">tgbotplug-plugins</a>.</p>
<p>Using tgbotplug, after choosing/developing your plugins, is as simple as:</p>
<pre class="sourceCode python"><code class="sourceCode python"><span class="ch">import</span> tgbot
tgbot.TGBot(
<span class="st">'YOUR_BOT_TOKEN'</span>,
plugins=[
Plugin1(),
...,
PluginN(),
],
).run()</code></pre>
<p>Plugins should inherit <code>tgbot.TGPluginBase</code>and implement <code>list_commands()</code> (and the methods mapped in its result).</p>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tgbotplug-1.0.4.tar.gz
(7.3 kB
view hashes)