Automatically send telegram channel posts as mastodon toot https://framagit.org/danialbehzadi/tgchannel2toot
Find a file
2024-04-07 16:41:09 +03:30
.gitignore Update to newer pyrogram. 2023-12-12 07:46:30 -05:00
config.py.temp Update to newer pyrogram. 2023-12-12 07:46:30 -05:00
LICENSE initial commit 2020-01-04 17:16:29 +03:30
README.md Update to newer pyrogram. 2023-12-12 07:46:30 -05:00
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 sure message has media. 2024-04-07 16:41:09 +03: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 config file:

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

Fill out config files.

Run

To run the bot do as following:

$ ./run.sh