All Projects → MasterGroosha → telegram-report-bot

MasterGroosha / telegram-report-bot

Licence: MIT license
A simple bot to handle reports from users in your chat

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to telegram-report-bot

my-id-bot
Telegram bot to get ID of some chats (including your own ID)
Stars: ✭ 49 (-15.52%)
Mutual labels:  aiogram, aiogram3
v13-Discord-Bot
This is my V13 Discord Bot, it has around 95 commands, 17 events, and stores all kinds of data in an SQL database for ease of access. Not to mention a unique style and friendly help menu interface. Used by over 25 people in popular company based servers, this will bring you a professional look that tops your competition.
Stars: ✭ 38 (-34.48%)
Mutual labels:  moderation
Remixbot
A multifunctional Discord bot in development that allows you to easily control your discord server.
Stars: ✭ 39 (-32.76%)
Mutual labels:  moderation
Calypsobot
A fully customizable bot built with discord.js
Stars: ✭ 131 (+125.86%)
Mutual labels:  moderation
Washyourmouthoutwithsoap
A list of bad words in many languages.
Stars: ✭ 40 (-31.03%)
Mutual labels:  moderation
Selfbot.py
selfbot.py - A python discord selfbot thats easy to install - Written using discord.py
Stars: ✭ 191 (+229.31%)
Mutual labels:  moderation
Fs0c13ty Bot
🤖 A discord bot made to help you in moderation.
Stars: ✭ 24 (-58.62%)
Mutual labels:  moderation
futaba
Discord bot for the Programming server
Stars: ✭ 22 (-62.07%)
Mutual labels:  moderation
DraconianJSBot
With its robust performance, intuitive design, and vast array of functionalities, the Draconian Bot is the ultimate solution for all your needs.
Stars: ✭ 113 (+94.83%)
Mutual labels:  moderation
Discord Bot
A discord bot that can play music, moderate, log events and more
Stars: ✭ 127 (+118.97%)
Mutual labels:  moderation
Yuudachi
Discord moderation bot
Stars: ✭ 123 (+112.07%)
Mutual labels:  moderation
Automod Bot
Fun moderation economy bot discord.js
Stars: ✭ 41 (-29.31%)
Mutual labels:  moderation
Tsuyo
🤖 A light-weight and easy-to-use modular Discord bot built with DiscordJS.
Stars: ✭ 136 (+134.48%)
Mutual labels:  moderation
Akismet Api
Nodejs bindings to the Akismet (https://akismet.com) spam detection service
Stars: ✭ 40 (-31.03%)
Mutual labels:  moderation
hidethisbot
An inline Telegram bot to keep your private messages hidden from prying eyes.
Stars: ✭ 44 (-24.14%)
Mutual labels:  aiogram
Discord Bot
🤖 Our BIG help in things about moderation and many more useful stuff on our Discord server.
Stars: ✭ 30 (-48.28%)
Mutual labels:  moderation
Skyra
All-in-one multipurpose Discord Bot designed to carry out most of your server's needs with great performance and stability.
Stars: ✭ 92 (+58.62%)
Mutual labels:  moderation
Red Discordbot
A multi-function Discord bot
Stars: ✭ 2,855 (+4822.41%)
Mutual labels:  moderation
discord-anti-spam
A simple discord anti spam node.js module to prevent spam on your discord server
Stars: ✭ 151 (+160.34%)
Mutual labels:  moderation
Lagertha
A UI/UX redesign of the popular Twitch-bot PhantomBot
Stars: ✭ 10 (-82.76%)
Mutual labels:  moderation

Report bot for Telegram

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!

Screenshot

Left - main group. Right - group for admins only. If you don't see this image, please check GitHub repo

Features

  • /report command to gather reports from users;
  • Reports can be sent to a dedicated chat or to dialogues with admins;
  • /ro command to set user "read-only" and /nomedia to allow text messages only;
  • [optional] Automatically remove "user joined" service messages;
  • [optional] Automatically ban channels (since December 2021 users can write on behalf of their channels);
  • If text message starts with @admin, admins are notified;
  • A simple interface for admins to choose one of actions on reported message;
  • English and Russian languages are built-in.

Requirements

  • Python 3.9 and above;
  • Tested on Linux, should work on Windows, no platform-specific code is used;
  • Systemd (you can use it to enable autostart and autorestart) or Docker.

Installation

  1. Go to @BotFather, create a new bot, write down its token, add it to your existing group and make bot an admin. You also need to give it "Delete messages" permission.
  2. Create a separate group where report messages will be sent and add all group admins there. Remember: anyone who is in that group may perform actions like "Delete", "Ban" and so on, so be careful.
  3. Use some bot like @my_id_bot to get IDs of these two groups;
  4. Clone this repo and cd into it;
  5. Copy 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!
  6. Replace default values with your own;
  7. Now choose installation method: systemd or Docker
systemd
  1. Create a venv (virtual environment): python3.9 -m venv venv (or any other Python 3.7+ version);
  2. source venv/bin/activate && pip install -r requirements.txt;
  3. Rename reportbot.service.example to reportbot.service and move it to /etc/systemd/system;
  4. Open that file and change values for WorkingDirectory, ExecStart and EnvironmentFile providing the correct path values;
  5. Start your bot and enable its autostart: sudo systemctl enable reportbot.service --now;
    6.Check your bot's status and logs: systemctl status reportbot.service.
Docker
  1. Build and run your container: docker-compose up -d.

Alternatively, check docker-compose.yml file from this repo.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].