{"repo":"plutobell/teelebot","free":true,"listed":false,"github":"https://github.com/plutobell/teelebot","clone":"git clone https://github.com/plutobell/teelebot.git","description":"Python实现的Telegram Bot机器人框架，具有插件系统，插件支持热更新和热装载","language":"Python","stars":177,"topics":["python-telegram-bot","telegram","telegram-bot-api","python","telegram-bot","telebot","teelebot","bot","framework"],"license":"GPL-3.0","category":"chat-messaging","readme_excerpt":"teelebot Python实现的Telegram Bot机器人框架，具有插件系统，插件支持热更新和热装载。 说明 teelebot 是Python编写的Telegram Bot框架。 teelebot 具有 插件系统 ，Bot功能以插件的形式组织，你只需要实现具有特定功能的插件，其余细节交给 teelebot 框架处理，极大地提高了Bot的开发部署效率。 你可以自由地组合插件，来搭建具有特定功能的Bot 。 插件请前往：官方插件仓库 推荐插件： Menu - 自动生成的插件菜单 Uptime - 获取Bot运行状态，监控Bot运行状态 PluginCTL - 插件分群开关控制 PluginManagementTools - 插件包管理工具 Guard - 垃圾消息过滤，入群验证码人机检测 更新日志 更新日志 方法列表 方法列表 插件开发指南 插件开发指南 Demo Telegram Group：teelebot official（t.me/teelebot official） Bot : teelebotBot（t.me/teelebotBot） Telegram Group： teelebot体验群（t.me/teelebot chat） Bot : teelebot（t.me/teelebot） 环境要求 Python版本 teelebot 只支持 Python3.x，不支持Python2.x。 本项目在 Python 3.6 及以上版本测试通过。 安装 1.Pip 此方式推荐使用Python虚拟环境安装 2.Docker Tip: 容器创建后请完善配置文件参数，然后重启容器 升级 1.Pip 2.Docker 另外，可通过 exec 指令在容器中执行命令 pip install teelebot --upgrade 进行升级 使用 一行命令启动 (Polling Mode) 请自行替换 的内容 此命令会自动生成在Polling模式下适用的配置文件，并且，-c/--config 参数可以省略(省略将使用默认配置文件路径)。 一、运行模式 teelebot 支持以 Webhook 模式和 Polling 模式运行。生产环境推荐使用 Webhook 模式，而 Polling 则仅用于开发环境。 1、Webhook 模式 要以 Webhook 模式运行，请将配置文件字段 webhook 设置为 True ，此模式涉及的配置文件字段如下： self signed 用于设置是否使用自签名证书，而 cert key 和 cert pub 是你的证书路径(绝对路径)， load cert 则用于设置 Webhook 是否加载本地证书； server address 为你的服务器公网IP, server port 为服务器的端口(目前 telegram 官方仅支持 443, 80, 88, 8443)， local address 为Webhook 本地监听地址， local port 为 Webhook 本地运行的端口； secret token 则用于设置 Webhook 的secret token。 自签名证书生成请参考：Generating a self-signed certificate pair (PEM) 2、Polling 模式 要以 Polling 模式运行，只需要保证配置文件 webhook 字段为 False 即可。此模式最基本的配置文件如下: 二、运行 任意路径打开终端，输入以下命令： - 对于使用程序配置文件默认路径的： 输入","default_branch":null,"files":null,"tree":[],"storefront":"/r/plutobell","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/plutobell/teelebot/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}