Automatically send telegram channel posts as mastodon toot https://framagit.org/danialbehzadi/tgchannel2toot
Find a file
2021-06-01 05:03:52 +04:30
.gitignore add media 2020-01-05 13:04:04 +03:30
config.ini.temp initial commit 2020-01-04 17:16:29 +03:30
config.py.temp handle long posts 2021-06-01 04:20:14 +04:30
LICENSE initial commit 2020-01-04 17:16:29 +03:30
README.md update to latest pyrogram api 2021-03-09 20:09:33 +03:30
requirements.txt initial commit 2020-01-04 17:16:29 +03:30
run.sh let the script run from everywhere 2021-05-29 20:37:27 +04:30
tgchannel2toot.py make things easier to develop in future 2021-06-01 05:03:52 +04:30

This is a project to automatically send messages in a Telegram channel as a Mastodon toot.

Install

To make it work, do the following:

$ git clone https://gitlab.com/danialbehzadi/tgchannel2toot.git
$ cd tgchannel2toot
$ python3 -m venv .env
$ source .env/bin/activate
(.env)$ pip3 install -r requirements.txt

Config

Make a copy of each config file:

(.env)$ cp config.ini.temp config.ini
(.env)$ cp config.py.temp config.py

Fill out config files.

Run

To run the bot do as following:

$ ./run.sh