This Telegram bot can mention all chat members or only administrators.
Find a file
2025-09-08 22:37:37 +03:00
.github/workflows [+] docker build 2025-02-06 02:56:37 +03:00
config [r] eng comments 2025-05-31 04:13:09 +03:00
core [-] clear code 2025-09-08 22:37:37 +03:00
db [+] init db 2025-02-08 18:49:27 +03:00
func [u] log for filters 2025-02-08 19:13:21 +03:00
.gitignore [-] ignore db file 2025-02-08 18:50:58 +03:00
dockerfile [u] add db path env 2025-02-08 18:51:10 +03:00
main.py [u] run db 2025-02-08 18:49:42 +03:00
pyrightconfig.json [+] init project 2025-02-06 02:54:17 +03:00
readme.md [r] rename 2025-08-02 21:21:14 +03:00
requirements.txt [+] add tortoise 2025-02-08 18:48:44 +03:00

mention_bot

This Telegram bot can mention all chat members or only administrators.

Initial Setup

  1. Clone the repository: Clone this repository using git clone.
  2. Create Virtual Env: Create a Python Virtual Env venv to download the required dependencies and libraries.
  3. Download Dependencies: Download the required dependencies into the Virtual Env venv using pip.
git clone https://github.com/ergolyam/mention_bot.git
cd mention_bot
python3 -m venv .venv
.venv/bin/python -m pip install -r requirements.txt 

Deploy

  • Run the bot:

    TG_TOKEN="your_telegram_bot_token" .venv/bin/python main.py
    
  • Other working env's:

    LOG_LEVEL="INFO"
    TG_ID="your_telegram_api_id"
    TG_HASH="your_telegram_api_hash"
    TG_TOKEN="your_telegram_bot_token"
    

Container

  • Pull container:

    podman pull ghcr.io/ergolyam/mention_bot:latest
    
  • Run bot:

    mkdir -p $HOME/database/ && \
    podman run -d \
    --name mention_bot \
    -v $HOME/database:/app/database:z \
    -e TG_TOKEN="your_telegram_bot_token" \
    ghcr.io/ergolyam/mention_bot:latest
    

Usage

  • @all - Mention all from chat.

  • @admins - Mention only administrators from chat.