基于telegram插件的bot
tgbotplug的Python项目详细描述
TgbotPlug是一个易于扩展的电报机器人 twx.botapi。
在选择/开发插件之后,使用tgbotplug非常简单 作为:
importtgbottgbot.TGBot('YOUR_BOT_TOKEN',plugins=[Plugin1(),...,PluginN(),],).run()
文档
插件应该继承tgbot.pluginbase.TGPluginBase并实现 list_commands()(以及在其结果中映射的方法)。
文档目前有点伤痕(==none),请集中精力 关于plugin examples 还有现在的VirtualLife Examples!
VirtualLife示例
- PriberamBot-使用 webhook,内联查询,为heroku打包
- ButtieBot-使用 webhook,发送照片,打包用于openshift
- EuromillionsBot- 使用webhook、内联查询、为openshift打包
- PushItBot-使用 webhooks,扩展tgbotplug瓶子应用程序以获得额外的路线,打包用于 openshift
- IndieShuffleBot-使用 webhooks,发送音频,为openshift打包