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
To convert Delta Chat voice messages to mp3 before sending them to the Telegram side, pydub is used, you might need to install ffmpeg in your system, check: https://github.com/jiaaro/pydub#dependencies, for example to install it in an apt-based system:
sudo apt install ffmpeg
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 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:
Add the bot in Telegram to your group.
Send /id command in the Telegram group, copy the ID returned by the bot.
Add the bot in Delta Chat to your group.
Send /bridge 1234 where 1234 is the group ID obtained in the Telegram group.
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
File details
Details for the file simplebot_tggroups-0.3.0.tar.gz
.
File metadata
- Download URL: simplebot_tggroups-0.3.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88c1671bdd3a92bbdbaf01c903de875f668d33cbdfea2faea8d87d3cb12a92d7 |
|
MD5 | 343954548035665b3ce6640cc81ee00f |
|
BLAKE2b-256 | 90aa88d1b42440fc41396ef33aba50003581dba5aa6a342db205bfb513c843f4 |
File details
Details for the file simplebot_tggroups-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: simplebot_tggroups-0.3.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd8c83ecc205742eddd7e21dde97e188b48dc7e20adae0041bee571e8f647de5 |
|
MD5 | 9ef58f40f65e505def19503b6fa49cd5 |
|
BLAKE2b-256 | ae9aef98a170695d6be1aa8b0629d4c47608011788b0cc4d4e221ee57a477bf1 |