A simple bot to handle reports from users in your chat
This repository contains source code of a small yet rather powerful bot for Telegram, which handles reports from users and passes them to admins.
Uses aiogram framework.
The main goal is to build a bot with no external database needed. Thus, it may lack some features, but hey, it's open source!
/report
command to gather reports from users;/ro
command to set user "read-only" and /nomedia
to allow text messages only;@admin
, admins are notified;cd
into it;env_dist
to .env
(with dot). Warning: files starting with dot may be hidden in Linux,
so don't worry if you stop seeing this file, it's still here!python3.9 -m venv venv
(or any other Python 3.7+ version);source venv/bin/activate && pip install -r requirements.txt
;reportbot.service.example
to reportbot.service
and move it to /etc/systemd/system
;WorkingDirectory
, ExecStart
and EnvironmentFile
providing the correct
path values;sudo systemctl enable reportbot.service --now
;systemctl status reportbot.service
.docker-compose up -d
.Alternatively, check docker-compose.yml file from this repo.