跳转到主要内容

一个用于与grocy交互的Telegram机器人

项目描述

grocy-telegram-bot Build Status PyPI version

grocy-telegram-bot 是一个允许您接收通知并与 Grocy 交互的Telegram机器人。

工作原理

grocy-telegram-bot 是一个自包含的Python应用程序,通过REST API与您的 Grocy 实例进行通信,其中使用了 pygrocy

如何使用

手动安装

安装

使用pip安装 grocy-telegram-bot

pip3 install grocy-telegram-bot

配置

grocy-telegram-bot 使用 container-app-conf 通过YAML文件以及ENV变量提供配置。请参阅有关它的 文档

请参阅此存储库中的示例 grocy_telegram_bot_example.yaml

运行

使用以下命令启动机器人

grocy-python-bot

Docker

要使用docker运行 grocy-telegram-bot,您可以使用来自DockerHub的 markusressel/grocy-telegram-bot 映像

sudo docker run -t \
    markusressel/grocy-telegram-bot:latest

您可以使用环境变量或从主机系统挂载配置文件到 /app/grocy_telegram_bot.yaml 来配置此映像。

贡献

GitHub是用于社交编码的:如果您想编写代码,我鼓励通过从此存储库的分支进行pull request来贡献。为错误和新功能创建GitHub票据并评论您感兴趣的。

许可

grocy-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 <https://gnu.ac.cn/licenses/>.

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源代码发行版

grocy-telegram-bot-1.0.0.tar.gz (31.5 kB 查看哈希值)

上传时间 源代码

构建发行版

grocy_telegram_bot-1.0.0-py3-none-any.whl (45.6 kB 查看哈希值)

上传时间 Python 3

支持