Bridge Telegram groups with DeltaChat groups.
Project description
A SimpleBot plugin that allows to bridge Telegram and Delta Chat groups.
For channel subscriptions use: https://github.com/simplebot-org/simplebot_tgchan
Installation
To install run:
pip install simplebot-tggroups
Configuration
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, you also need a bot token, got to [@BotFather](https://t.me/botfather) on Telegram and create a bot, then to set API ID, API hash and bot token, execute:
simplebot -a bot@example.com telegram
After configuration you can start the bot:
simplebot -a bot@example.com serve
Then you can start bridging Telegram and Delta Chat groups, send /help to the bot in Delta Chat for more info.
To bridge a Telegram group to a Delta Chat group: 1. Add the bot in Telegram to your group. 2. Send /id command in the Telegram group, copy the ID returned by the bot. 3. Add the bot in Delta Chat to your group. 4. Send /bridge 1234 where 1234 is the group ID obtained in the Telegram group. 5. Then all messages sent in both groups will be relayed to the other side.
Tweaking Default Configuration
You can tweak the maximum size (in bytes) of attachments the bot will bridge:
simplebot -a bot@example.com telegram --max-size 5242880
By default the bot will download attachments of up to 5MB.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for simplebot_tggroups-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0bbaf63d40cda02dc6991d4ce710e9a391036266784b96a1a0a6d28736dff43 |
|
MD5 | c13890224343fb87e53e55a003c8f25b |
|
BLAKE2b-256 | d7d578cc7d937de7a4e3571e01dba31607ae5483d9d5698d05438bc2acfe72b5 |