Simplify the moderation and management of Telegram groups
This repository has been archived on 2024-07-28. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
hok7z ef8b5080e3 Add aiogram-loop patch 2023-01-02 22:21:59 +02:00
config Code refactoring 2022-12-01 12:54:32 +02:00
filters Code refactoring 2022-12-01 12:54:32 +02:00
handlers Translate bot messages 2022-12-25 16:17:05 +02:00
keyboards Some fix database and etc 2022-11-06 10:48:10 +02:00
states First commit 2022-08-07 11:45:35 +03:00
txt First commit 2022-08-07 11:45:35 +03:00
utils Code refactoring 2022-12-01 12:54:32 +02:00
.env.dist Remove not need environment variable 2022-11-28 11:44:03 +02:00
.gitignore Modify .gitignore 2022-12-25 16:21:42 +02:00
LICENSE Create LICENSE 2022-08-07 09:18:32 +00:00
README.md Add aiogram-loop patch 2023-01-02 22:21:59 +02:00
aiogram-loop.patch Add aiogram-loop patch 2023-01-02 22:21:59 +02:00
app.py Code refactoring 2022-12-01 12:54:32 +02:00
database.py Code refactoring 2022-12-01 12:54:32 +02:00
load.py Some fix database and etc 2022-11-06 10:48:10 +02:00
poetry.lock Bump certifi from 2022.6.15 to 2022.12.7 2022-12-11 14:17:45 +00:00
pyproject.toml telethon -> pyrogram 2022-08-13 15:25:52 +03:00
requirements.txt Add requirements.txt 2022-11-25 23:09:10 +02:00

README.md

About

This bot is designed to simplify the moderation and management of Telegram groups.

Features

  • Admin commands
  • Member roles
  • Report users
  • Silent commands
  • User complaints
  • Save admin actions in database

Installation

  • Required:python3.x, poetry/pip
  • Clone this repo
  • Telegram API Service on port 5326
  • Move the .env.dist text template to .env and configure him
  • First start use !reload for parsing members and permissions
  • Optional: Patch Aiogram if you need a scheduled update user data databases(shoud using)

Configuration .env

environment variables description
bot_token telegram bot token
telegram_bot_api_server telegram bot api server
db_url connection info to database
api_id and api_hash telegram application data
group_id group id
second_group_id seconds group for admins

TODO

  • Docker
  • Systemd unit
  • Write antithrotling midlware middleware(anti flood system)
  • Site for group moderator(in development)

Support

Every investition helps in maintaining this project and making it better.