Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/viperadnan-git/force-subscribe-telegram-bot
A Telegram bot to force members to join a specific channel before sending messages in a group.
https://github.com/viperadnan-git/force-subscribe-telegram-bot
bot promotion pyrogram telegram telegram-bot
Last synced: about 2 months ago
JSON representation
A Telegram bot to force members to join a specific channel before sending messages in a group.
- Host: GitHub
- URL: https://github.com/viperadnan-git/force-subscribe-telegram-bot
- Owner: viperadnan-git
- License: gpl-3.0
- Created: 2020-06-19T15:03:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T14:50:20.000Z (about 3 years ago)
- Last Synced: 2024-08-09T13:13:25.003Z (5 months ago)
- Topics: bot, promotion, pyrogram, telegram, telegram-bot
- Language: Python
- Homepage: https://t.me/forcesubscribebot
- Size: 33.2 KB
- Stars: 191
- Watchers: 9
- Forks: 344
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
### Installing Prerequisite
- On Ubuntu 18.04 or later
```sh
sudo apt-get install git python3 python3-pip libpq-dev
```### Installation
- Clone this repo
```sh
git clone https://github.com/viperadnan-git/force-subscribe-telegram-bot
```
- Change directory
```sh
cd force-subscribe-telegram-bot
```
- Install requirements
```sh
pip3 install -r requirements.txt
```### Configuration
Add [APP_ID](https://my.telegram.org/apps), [API_HASH](https://my.telegram.org/apps), [BOT_TOKEN](https://t.me/botfather) in [Config.py](Config.py) or in Environment Variables.### Deploying
- Run bot.py
```sh
python3 bot.py
```## Thanks to
- [PyroGram](https://PyroGram.org)
- [Hasibul Kabir](https://GitHub.com/hasibulkabir) and [Spechide](https://GitHub.com/spechide) for helping.