Skip to main content

Subscribe to Telegram channels in DeltaChat.

Project description

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

A SimpleBot plugin that allows to subscribe to Telegram channels from Delta Chat.

Install

To install run:

pip install simplebot-tgchan

Configure

See https://github.com/simplebot-org/simplebot to know how to configure the bot with an e-mail account.

Before you start using the bot, you need to get your own API ID and hash, go to https://my.telegram.org/ and get them then configure the bot:

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

Then you must provide a phone number for the bot to use, to start session in Telegram:

simplebot -a bot@example.com login

After entering the verification code you received in Telegram or via SMS, start the bot:

simplebot -a bot@example.com serve

Then you can start subscribing to Telegram channels with /sub command writting to the bot address in Delta Chat.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simplebot_tgchan-0.1.0.tar.gz (17.1 kB view hashes)

Uploaded Source

Built Distribution

simplebot_tgchan-0.1.0-py3-none-any.whl (15.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page