Skip to main content

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">&#39;YOUR_BOT_TOKEN&#39;</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


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.1.tar.gz (7.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page