跳转到主要内容

在DeltaChat中订阅Telegram频道。

项目描述

https://img.shields.io/pypi/v/simplebot_tgchan.svg https://img.shields.io/pypi/pyversions/simplebot_tgchan.svg https://pepy.tech/badge/simplebot_tgchan https://img.shields.io/pypi/l/simplebot_tgchan.svg https://github.com/simplebot-org/simplebot_tgchan/actions/workflows/python-ci.yml/badge.svg https://img.shields.io/badge/code%20style-black-000000.svg

一个SimpleBot插件,允许从Delta Chat订阅Telegram频道。

安装

要安装,请运行

pip install simplebot-tgchan

配置

查看https://github.com/simplebot-org/simplebot了解如何使用电子邮件账户配置机器人。

在开始使用机器人之前,您需要获取自己的API ID和哈希,前往https://my.telegram.org/获取它们,然后配置机器人

simplebot -a bot@example.com db -s simplebot_tgchan/api_id "12345"
simplebot -a bot@example.com db -s simplebot_tgchan/api_hash "0123456789abcdef0123456789abcdef"

然后,您必须提供一个用于机器人使用的电话号码,以在Telegram中开始会话

simplebot -a bot@example.com login

在输入您在Telegram或通过短信收到的验证码后,启动机器人

simplebot -a bot@example.com serve

然后,您可以通过在Delta Chat中的机器人地址写入/sub命令来开始订阅Telegram频道。

项目详情


下载文件

下载适合您平台的应用程序。如果您不确定选择哪个,请了解更多关于安装软件包的信息。

源分发

simplebot_tgchan-0.1.0.tar.gz (17.1 kB 查看散列值)

上传时间 源代码

构建版本

simplebot_tgchan-0.1.0-py3-none-any.whl (15.3 kB 查看散列值)

上传时间 Python 3

由以下支持