Skip to content

Python script to check members of FED telegram channel and update invites on Airtable

Notifications You must be signed in to change notification settings

simmetrialab/fed-telegram-invites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram invites services

Introduction

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.

Getting started

Clone the repository

Create the env file

Create the .env file in the directory root using .env.example.

Add the telegram session file

Copy inside the directory root the telegram session file.

Build the docker image

docker build -t fed-telegram-invites .

Run the docker image

docker run -d --env-file .env  fed-telegram-invites:latest

Development

Requirements:

  • python3
  • pip
  • pipenv

Install dependecies

pipenv install

Run script

pipenv run python3 main.py

About

Python script to check members of FED telegram channel and update invites on Airtable

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published