A SimpleBot plugin that allows to bridge Telegram and Delta Chat groups.
For channel subscriptions use: https://github.com/simplebot-org/simplebot_tgchan
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
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
where1234
is the group ID obtained in the Telegram group. - Then all messages sent in both groups will be relayed to the other side.
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.