||8 months ago|
|app||8 months ago|
|LICENSE||8 months ago|
|Procfile||8 months ago|
|README.md||8 months ago|
|composer.json||8 months ago|
|startup.sh||8 months ago|
Group Anarchy Enforcer
Telegram group chats are authoritarian by default; each group has a particular set of members, so-called "admins", that enjoys unjust power over the rest of members. This bot enforces anarchy in your group by making sure (up to the technical limitation) all members are automacitally admins and having the full permissions applicable.
The bot is currently written in PHP and does not depend on external packages. It simply uses the Telegram Bot HTTP API, which is limited for a task like this. Thus, migration to MTProto is planned.
I host a sample instance for @GroupAnarchy_bot, the instance fully complies to this source tree.
Consider running your own instance instead of using the sample one.
Since the codebase is apparently Heroku-ready, I'll only provide instructions for deploying on Heroku. You have to modify the source code a little bit to be able to use it outside the Heroku platform.
- Register a new bot on Telegram and a new app on Heroku
- Clone this repo and add your Heroku app's git remote
BOT_TOKENconfig var to your Telegram bot token
USER_NAMEconfig var to your Telegram bot username
APP_NAMEconfig var to your Heroku app name
- Push the code to Heroku
Don't forget to set the webhook by calling:
Make sure to enable the bot to join groups and add the following command:
enforce - Enforce that you (or another member) is an admin in this group
Licensed under the MIT (Expat) license.
Copyright (C) 2020, 2021 Karam Assany (email@example.com)