Giter Club home page Giter Club logo

inno-chat-cleaner's Introduction

inno-chat-cleaner

Python aiogram Dokku Docker

Simplest bot for removing join/left notifications in Telegram chats. Built with Python and aiogram, this bot can automatically delete messages about users joining or leaving a group. It also requests admin privileges upon being added to a group to perform message deletion.

Features

  • Automatically deletes join/leave messages in groups.
  • Requests admin privileges upon being added to a group for message management.
  • Error handling for message deletion failures.
  • Logging for monitoring and troubleshooting.

Prerequisites

  • Python 3.9 or newer
  • Docker and Docker Compose (for Docker deployment)
  • A Dokku server (for Dokku deployment)

Setup and Deployment

Using Docker Compose

  1. Clone this repository:

git clone https://github.com/IgorDuino/inno-chat-cleaner.git cd inno-chat-cleaner

  1. Create a .env file in the root directory with your Telegram bot token:
TELEGRAM_API_TOKEN=your_telegram_bot_token
  1. Build and run the container:

docker-compose up --build

Deploying with Dokku

  1. On your Dokku server, create a new app:

dokku apps:create inno-chat-cleaner

  1. Set the environment variable for your Telegram bot token:

dokku config:set inno-chat-cleaner TELEGRAM_API_TOKEN=your_telegram_bot_token

  1. Add the Dokku remote to your local repository:

git remote add dokku [email protected]:inno-chat-cleaner

  1. Push your app to Dokku:

git push dokku master

Usage

Once deployed, the bot will start monitoring for join/leave messages and delete them automatically. It will also request admin privileges upon being added to a group to ensure it has the necessary permissions to manage messages.

inno-chat-cleaner's People

Contributors

igorduino avatar

Watchers

 avatar

Forkers

one-zero-eight

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.