Recent

Author Topic: Bot moderator for large groups  (Read 8045 times)

Renat.Su

  • Sr. Member
  • ****
  • Posts: 267
    • Renat.Su
Bot moderator for large groups
« on: October 08, 2024, 03:27:53 pm »
The bot helps quickly and silently ban spammers.

Group members notify administrators of spam messages themselves using the /spam command. The command should be sent in response to a spam message. All administrators receive a copy of the inspected message with the ability to check whether the member has correctly pointed to the spam message. If it is indeed a spam message, the member's rating is increased. At a certain number of points, spam messages are automatically deleted without the administrators' approval. If the inspected message is incorrectly identified as a spam, the member's rating is downgraded. In order for the bot to receive a list of administrators in a group or in case of deleting or adding a new one, it is necessary to send the /update command from any of the current administrators. Due to the fact that these commands are instantly deleted by the bot itself in the group, reports and updates occur unnoticed by users

#Architecture

The software implements the telegram bot as a web server in webhook mode

#Dependencies

    fp-telegram (Telegram bots API wrapper)
    brook-telegram (Plugin for BrookFoFreePascal)
    BrookForFreePascal & BrookFramework (HTTP server)
    dOPF (ORM)

Open source https://github.com/Al-Muhandis/AdminHelper

The bot runs on the Linux server as a web server daemon, but you can run your own instance
« Last Edit: October 08, 2024, 03:31:52 pm by Renat.Su »

Renat.Su

  • Sr. Member
  • ****
  • Posts: 267
    • Renat.Su
Re: Bot moderator for large groups
« Reply #1 on: December 12, 2024, 09:09:31 pm »
To the telegram bot (Username @Moderator_Helper_Robot) added Spam filter with Naive Bayes classifier and emoji counter:
The filter can be trained and used to automatically notify administrators (and in the case of high spam probability can be automatically to ban) about suspicious messages.
The bot based on this code shows itself to be excellent in filtering out spam in active telegram groups (@freepascal_en @Delphi_Lazarus)

Renat.Su

  • Sr. Member
  • ****
  • Posts: 267
    • Renat.Su
Re: Bot moderator for large groups
« Reply #2 on: March 27, 2026, 09:28:54 am »
Improved the anti-spam bot @Moderator_Helper_Robot
Who wants to try to run their own instance of the service on their own machine/database/bot made a deb (https://github.com/Al-Muhandis/AdminHelper/releases/tag/v0.1.2-beta ) package for installation on Ubuntu/Debian, etc., at the same time implemented a script (https://github.com/Al-Muhandis/AdminHelper/blob/main/build-deb.sh ) for building of this package.

Joanna

  • Hero Member
  • *****
  • Posts: 1452
Re: Bot moderator for large groups
« Reply #3 on: March 28, 2026, 12:27:47 am »
Bots do not make good moderators, there are better ways of moderating large groups.

Renat.Su

  • Sr. Member
  • ****
  • Posts: 267
    • Renat.Su
Re: Bot moderator for large groups
« Reply #4 on: March 28, 2026, 03:01:01 am »
Bots do not make good moderators, there are better ways of moderating large groups.
I wrote this for a reason: the bot successfully moderates telegram groups, deleting 95% automatically and the rest based on reports from the group's users.

C0m3b4ck

  • New Member
  • *
  • Posts: 30
  • Open-source programs for Windows 95-11 and Linux
    • Github
Re: Bot moderator for large groups
« Reply #5 on: March 28, 2026, 12:51:29 pm »
Is there a way for a human to verify before the bot executes anything? Adding such a feature would be very useful, as not many communities would feel safe having an uncontrolled bot running rampant. For example, someone could mass report another user's messages and get them wrongfully taken down because "many reports = credible".

The project seems to still be in beta phase so please consider such features!  :D

Github profile - https://github.com/C0m3b4ck | YouTube Channel - https://youtube.com/@PrinterFixer
Current Pascal project - https://github.com/C0m3b4ck/BookwormPascal - library book management app

Still making sure I support Win95 for its users out there...

Renat.Su

  • Sr. Member
  • ****
  • Posts: 267
    • Renat.Su
Re: Bot moderator for large groups
« Reply #6 on: March 28, 2026, 04:38:23 pm »
Is there a way for a human to verify before the bot executes anything? Adding such a feature would be very useful, as not many communities would feel safe having an uncontrolled bot running rampant. For example, someone could mass report another user's messages and get them wrongfully taken down because "many reports = credible".

The project seems to still be in beta phase so please consider such features!  :D


Telegram moderator bot is not in beta testing, in beta testing is the automatic installation deb package, but the anti-spam bot itself has many years of successful experience in combating spam in many telegram groups. At least 30,000 spam bots have been banned. The algorithm has a complex evaluation system based on the Bayes filter and many other factors that assess the likelihood of spam. In addition, as the bot has a sophisticated user rating system that evaluates the accuracy of user reports. If there are any errors, whether intentional or not, the user's rating will be reset to zero or even negative. I can say that there have been attempts at abuse, but the algorithm has protection against them. In cases of extremely rare errors, there is a system for rolling back bans.

Renat.Su

  • Sr. Member
  • ****
  • Posts: 267
    • Renat.Su
Re: Bot moderator for large groups
« Reply #7 on: March 28, 2026, 04:51:13 pm »
One of the main differences from other anti-spam bots is that it does not flood the main chat with questions. If the group admin needs to make a decision on questionable messages or users, the bot sends these reports directly to the moderators, if they wish to do so. Users have different levels of trust in the bot, which determines how much the bot considers their opinions in reports or automatic bans of spammers. Additionally, the bot has an automatic bot detection system that is constantly being trained and used only when there is almost complete certainty.

jamie

  • Hero Member
  • *****
  • Posts: 7757
Re: Bot moderator for large groups
« Reply #8 on: March 28, 2026, 07:44:29 pm »
NO.
Please stop the pain!

Jamie
The only true wisdom is knowing you know nothing

C0m3b4ck

  • New Member
  • *
  • Posts: 30
  • Open-source programs for Windows 95-11 and Linux
    • Github
Re: Bot moderator for large groups
« Reply #9 on: March 29, 2026, 07:13:57 am »
Quote
In cases of extremely rare errors, there is a system for rolling back bans.

That is what I meant - even if there is an error, you can roll it back. Sorry for the confusion with the beta stuff.  :D
Github profile - https://github.com/C0m3b4ck | YouTube Channel - https://youtube.com/@PrinterFixer
Current Pascal project - https://github.com/C0m3b4ck/BookwormPascal - library book management app

Still making sure I support Win95 for its users out there...

Renat.Su

  • Sr. Member
  • ****
  • Posts: 267
    • Renat.Su
Re: Bot moderator for large groups
« Reply #10 on: March 29, 2026, 02:29:53 pm »
Quote
In cases of extremely rare errors, there is a system for rolling back bans.

That is what I meant - even if there is an error, you can roll it back. Sorry for the confusion with the beta stuff.  :D
No problem, I'm always happy to receive feedback and suggestions.

Renat.Su

  • Sr. Member
  • ****
  • Posts: 267
    • Renat.Su
Re: Bot moderator for large groups
« Reply #11 on: March 29, 2026, 02:32:20 pm »
NO.
Please stop the pain!
I don't understand if it's some kind of sarcasm or a joke.

jamie

  • Hero Member
  • *****
  • Posts: 7757
Re: Bot moderator for large groups
« Reply #12 on: March 29, 2026, 04:28:11 pm »
NO.
Please stop the pain!
I don't understand if it's some kind of sarcasm or a joke.

I hope you didn't spend a lot of time on that idea, I think it would have been better served like solving world hunger!

Jamie
The only true wisdom is knowing you know nothing

Joanna

  • Hero Member
  • *****
  • Posts: 1452
Re: Bot moderator for large groups
« Reply #13 on: March 29, 2026, 04:44:03 pm »
Not that I want to discourage anyone from developing fpc apps but I think this is all just looking for a way to use bots. It’s actually kind of insulting to the people in a group that  the owner can’t be bothered to moderate it and wants to take it easy by using a bot. The best course of action would probably be to find a better group asap.

 This is Really is not a good idea being the the majority of social media and chat stuff is useless entities that are never going  talk or contribute anything useful.

This problem has already been solved by requiring that new members talk to a moderator before being allowed to talk to the group.
« Last Edit: March 29, 2026, 04:54:33 pm by Joanna »

Renat.Su

  • Sr. Member
  • ****
  • Posts: 267
    • Renat.Su
Re: Bot moderator for large groups
« Reply #14 on: March 29, 2026, 08:54:03 pm »
NO.
Please stop the pain!
I don't understand if it's some kind of sarcasm or a joke.

I hope you didn't spend a lot of time on that idea, I think it would have been better served like solving world hunger!

Jamie
The software is not so complicated that it takes a lot of time to use it, and I use it effectively in my Telegram groups (some of which I moderate myself). There was a lot of spam, but it has been almost completely eliminated.  Thus, there is a benefit to the bot, and I have been told about its benefits

But... As for the issue of hunger, it is indeed a pressing problem. It is worth using your time more effectively, and I would advise you not to waste it on empty trolling.

 

TinyPortal © 2005-2018