Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Telegram plugin-based bot

Project description

tgbotplug is meant to be an easy-to-extend telegram bot built around twx.botapi.

Using tgbotplug, after choosing/developing your plugins, is as simple as:

import tgbot
tgbot.TGBot(
  'YOUR_BOT_TOKEN',
  plugins=[
    Plugin1(),
    ...,
    PluginN(),
  ],
).run()

Documentation

Plugins should inherit tgbot.pluginbase.TGPluginBase and implement list_commands() (and the methods mapped in its result).

Documentation is a bit scarse (== None) at the moment so please focus on the plugin examples and the VirtualLife Examples for now!

VirtualLife Examples

  • PriberamBot - uses webhooks, inline queries, packaged for Heroku
  • ButtieBot - uses webhooks, sends photos, packaged for OpenShift
  • EuromillionsBot - uses webhooks, inline queries, packaged for OpenShift
  • PushItBot - uses webhooks, extends tgbotplug Bottle app for extra routes, packaged for OpenShift
  • IndieShuffleBot - uses webhooks, sends audio, packaged for OpenShift

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tgbotplug, version 1.2.12
Filename, size File type Python version Upload date Hashes
Filename, size tgbotplug-1.2.12.tar.gz (26.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page