A simple bot to auto forwarding messages from telegram channel to mastodon.
- Support multi message types
- Text
- Photo
- Audio
- Video
- Media Group
-
Go to
https://<YOUR MASTODON SITE>/settings/applications
, clickNew Application
, fill inApplication name
and clickSubmit
button. Save theClient key
,Client secret
andYour access token
field. -
Go to https://botfather.t.me , create a new bot and save the token.
-
Give the bot admin permission of your channel.
-
git clone https://github.com/WorldObservationLog/Telegram-Mastodon-Forward cd Telegram-Mastodon-Forward python3 -m venv venv # For *nix source venv/bin/activate # For Windows venv/Scripts/activate.bat pip install -r requirements.txt cp config.example.toml config.toml # Then edit the config.toml python main.py