/force-subscribe-telegram-bot

A Telegram bot to force members to join a specific channel before sending messages in a group.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Introduction

A Telegram Bot to force users to join a specific channel before sending messages in a group.

Todo

  • Add multiple channels support

Deploy

Deploy

Installing Prerequisite

  • On Ubuntu 18.04 or later
sudo apt-get install git python3 python3-pip libpq-dev

Installation

  • Clone this repo
git clone https://github.com/viperadnan-git/force-subscribe-telegram-bot
  • Change directory
cd force-subscribe-telegram-bot
  • Install requirements
pip3 install -r requirements.txt

Configuration

Add APP_ID, API_HASH, BOT_TOKEN in Config.py or in Environment Variables.

Deploying

  • Run bot.py
python3 bot.py

Thanks to