Telegram group chats are authoritarian by default. This bot enforces group anarchy.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Karam Assany 61399fa84e
Initial commit
1 month ago
app Initial commit 1 month ago
LICENSE Initial commit 1 month ago
Procfile Initial commit 1 month ago
README.md Initial commit 1 month ago
composer.json Initial commit 1 month ago

README.md

Group Anarchy Enforcer

Telegram group chats are authoritarian by default; each group has a set of members, so-called “admins”, that enjoys unjust power over other members and the group in general. This bot enforces group anarchy by making sure (up to the technical limitation) all members in a group are automacitally admins and having the full permissions applicable.

Sample instance: @GroupAnarchy_bot

Consider running your own instance instead of using the sample one.

Deploying

Since the source tree is apparently Heroku-ready, I’ll only provide instructions for deploying on Heroku. You have to edit the source code a little bit to be able to use it on non-Heroku servers.

  1. Create a new bot on Telegram and a new app on Heroku
  2. Clone this repo and add your Heroku app git remote
  3. Set BOT_TOKEN config var to your Telegram bot token
  4. Set USER_NAME config var to your Telegram bot username
  5. Set APP_NAME config var to your Heroku app name
  6. Push the code
  7. Set a webhook by issuing https://APP_NAME.herokuapp.com.com/set_hook.php

Make sure to enable the bot to join groups and add the following command:

enforce - Enforce you or some member is an admin in this group

License

Licensed under the MIT (Expat) license.

Copyright (C) 2020 Karam Assany (karam.assany@tuta.io)