电报机器人龙骨sh。

keel-telegram-bot的Python项目详细描述


龙骨电报机Build StatusPyPI version

keel telegram botKeel的电报机器人。在

^{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_ENDPOINTenv变量发送到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/>.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java在Android中维护应用程序状态   javajavacc:如何指定在特定上下文中需要哪些令牌?   java为什么改型会在重新加载数据时设置以前的响应?   java如何将键转换为字符串,反之亦然   java JDOM解析器插入#固定手动属性   java按元素对XML数据排序?   java Android中有哪些哈希算法?   java为什么使用可选返回类型进行单元测试失败?   Gson和argonauts使用Gson将javascript数组转换为json字符串并转换为javapojo时遇到的问题。试图让我的结构正确   java中的空格   java SQLite高分,草率IndexOutofBounds Android   使用Spring OAUTH2的java Make客户端   netbeans如何在java中创建一个JPopupMenu,其中包含一个要复制文本的项