mirror of
https://github.com/ergolyam/mention_bot.git
synced 2025-12-05 20:18:11 +00:00
This Telegram bot can mention all chat members or only administrators.
| .github/workflows | ||
| config | ||
| core | ||
| db | ||
| func | ||
| .gitignore | ||
| dockerfile | ||
| main.py | ||
| pyrightconfig.json | ||
| readme.md | ||
| requirements.txt | ||
mention_bot
This Telegram bot can mention all chat members or only administrators.
Initial Setup
- Clone the repository: Clone this repository using
git clone. - Create Virtual Env: Create a Python Virtual Env
venvto download the required dependencies and libraries. - Download Dependencies: Download the required dependencies into the Virtual Env
venvusingpip.
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.