电报机器人龙骨sh。
keel-telegram-bot的Python项目详细描述
龙骨电报机
keel telegram bot是Keel的电报机器人。在
^{img2}图像1}$ 在
特点
- [x] 接收通知(通过Webhook)
- [x] 列表审批
- [x] 批准待定审批
- [x] 拒绝待定审批
- [x] 删除存档的审批
如何使用
手动安装
安装
使用pip安装keel telegram bot:
pip3 install keel-telegram-bot
配置
keel telegram bot使用container-app-conf 通过YAML文件和ENV变量提供配置。看看 documentation about it。在
请参阅keel-telegram-bot_example.yaml获取此回购中的示例。在
运行
使用以下命令启动机器人程序:
^{pr2}$码头工人
要使用docker运行keel telegram bot,可以使用markusressel/keel-telegram-bot 来自DockerHub的图像:
sudo docker run -t \
markusressel/keel-telegram-bot:latest
使用环境变量或挂载配置来配置映像
文件从主机系统发送到/app/keel-telegram-bot.yaml
。在
设置
这个机器人使用Keel提供的restapi与它交互 并依赖于Webhook功能来接收和转发通知 电报聊天。一方面,keel telegram bot就像网络一样 一只手上的代理,就像一只手上的代理一样 单包装。在
要使命令正常工作,只需提供 配置文件。在
要使通知生效,您必须提供
keel telegram bot使用WEBHOOK_ENDPOINT
env变量发送到keel。
实现这一点的最简单方法是同时运行Keel和Keel telegram bot
并指定http://localhost:5000/
。在
贡献
GitHub是用于社会化编码的:如果你想写代码,我会通过forks的pull请求来鼓励贡献 此存储库的。为bug和新特性创建GitHub罚单,并对您感兴趣的特性进行评论。在
许可证
keel-telegram-bot by Markus Ressel Copyright (C) 2020 Markus Ressel This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
- 项目
标签: