Coder Social home page Coder Social logo

silencert's Introduction

SilencerT - A bot to automatic delete trivial messages on Telegram group.

Features

  • Remove trivial unwanted auto messages on Telegram group e.g. joining, leaving or title change.
  • Usage: add an account name @SilencerGramBOT to your group and make it be a group admin or run bot yourself as the "getting started" steps below.

Messages to be remove

  • USER left the group
  • USER joined the group
  • USER joined the group by invite link
  • USER Changed the group name to NEW_GROUP_NAME
  • Message that contain another group invite link e.g. "LET'S JOIN ANOTHER GROUP -> https://t.me/joinchat/ANOTHER_GROUP"

Requirements

  • Python 3.4 or higher.
  • pyrogram - Telegram MTProto API Client Library for Python

Getting Started

pip install -r requirements.txt
python3 bot.py

Log in your group admin account with the prompt (only do this once).

silencert's People

Contributors

artiya4u avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

silencert's Issues

Join/Left Notifications

Not an issue with your bot per se, but have you figured out any way to disable the notifications sent out when joining/leaving a group, without actually fully disabling notifications, so that notifications only go out for normal messages? Obviously the status message shows up and is instantly deleted by the bot, but the notifications still go out, and that clouds the actual message notfications.

Thanks!

admins should be able to post invite links

hi, i like your bot very much because of his simplicity.

I takes me some headscratches to realize that it now also remove invites.
in general this is a good Idea, but I would prefer to disallow for regular users only.
a group admin should be able to post invites.

for now I must use the workaround to remove the bot as Admin an re add him afterwards.

Remove Administrator added User

I have a tool to add many people to a group. Very usefull to create a new group.

But then, the group get flooded with
Me added User

Can the bot include a treatment for that ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.