telegram-antispam-bot/README.md
Artemii Peretiachenko 89c472708b Initial release: Telegram anti-spam bot
Includes join verification button, discuss-comment cleanup for non-members, and SQLite persistence.

Made-with: Cursor
2026-04-10 16:28:22 +02:00

27 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Telegram антиспам-бот (кнопка-проверка)
## Быстрый старт (локально)
1) Создайте `.env` рядом с `.env.example` и заполните `BOT_TOKEN` (новый токен из @BotFather).
2) Установите зависимости (если ещё не установлены):
```bash
python3 -m venv .venv
./.venv/bin/pip install -r requirements.txt
```
3) Запуск:
```bash
./.venv/bin/python -m bot
```
## Важные нюансы
- Бот проверяет **только тех пользователей, которых он успел поймать на событии входа в чат** (`new_chat_members`) пока был онлайн. Это сделано, чтобы при добавлении бота в большой чат он не трогал уже существующих участников.
## Перенос на VPS/Render
- Весь конфиг — через переменные окружения (см. `.env.example`).
- База — SQLite (`DB_PATH`), один файл.