We use Airtable CMS to track the invitations for FED Telegram channel. If an invited user joined the channel we have to update the invitation status on Airtable.
This is a tiny python script to automaticaly check if some pending invites are joined in FED Telegram channel. If a pending invitation has joined the Telegram group we update the status to "Joined" on Airtable.
The script use a scheduler to exec the check every 5 minutes.
Create the .env
file in the directory root using .env.example
.
Copy inside the directory root the telegram session file.
docker build -t fed-telegram-invites .
docker run -d --env-file .env fed-telegram-invites:latest
Requirements:
- python3
- pip
- pipenv
pipenv install
pipenv run python3 main.py