https://github.com/ergolyam/mention_bot
This Telegram bot can mention all chat members or only administrators.
https://github.com/ergolyam/mention_bot
Last synced: 2 months ago
JSON representation
This Telegram bot can mention all chat members or only administrators.
- Host: GitHub
- URL: https://github.com/ergolyam/mention_bot
- Owner: ergolyam
- Created: 2025-02-05T23:52:55.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-08-02T18:21:16.000Z (2 months ago)
- Last Synced: 2025-08-02T20:00:36.997Z (2 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# 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`.```shell
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:
```bash
TG_TOKEN="your_telegram_bot_token" .venv/bin/python main.py
```- Other working env's:
```env
LOG_LEVEL="INFO"
TG_ID="your_telegram_api_id"
TG_HASH="your_telegram_api_hash"
TG_TOKEN="your_telegram_bot_token"
```#### Container
- Pull container:
```bash
podman pull ghcr.io/ergolyam/mention_bot:latest
```- Run bot:
```bash
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.