An open API service indexing awesome lists of open source software.

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.

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.