|Karam Assany 87adac885f Fixed dates in copyright notices||4 months ago|
|app||4 months ago|
|LICENSE||4 months ago|
|Procfile||4 months ago|
|README.md||4 months ago|
|composer.json||4 months ago|
|startup.sh||4 months ago|
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.
BOT_TOKENconfig var to your Telegram bot token
USER_NAMEconfig var to your Telegram bot username
APP_NAMEconfig var to your Heroku app name
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 (firstname.lastname@example.org)