Files
batch-bot/.env.example
bilal a18ad30961 Initial commit: Batch Bot - Telegram Comment Bot
0.0.1
Features:
- Multi-account support via session files
- AI comments generation via Ollama (local LLM)
- Telegram bot for moderation (approve/reject/regenerate)
- Docker support (controller + worker)
- Auto-join public groups
- Comment regeneration on group re-add
- Statistics tracking

Tech stack:
- Python 3.11
- Telethon 1.34 (Telegram user client)
- Aiogram 3.4 (Telegram bot framework)
- SQLite (Database)
- Docker & Docker Compose
- Ollama (Local LLM)
2026-02-24 04:40:07 +03:00

30 lines
1.0 KiB
Plaintext
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 Bot Token (для контроллера - создайте через @BotFather)
BOT_TOKEN=your_bot_token_here
# Telegram API credentials (для воркеров - аккаунты пользователей)
TELEGRAM_API_ID=your_api_id
TELEGRAM_API_HASH=your_api_hash
# Log group ID where controller sends moderation messages (с -100)
LOG_GROUP_ID=-100your_log_group_id
# Admin IDs (Telegram user IDs who can moderate, через запятую)
ADMIN_IDS=your_user_id
# Groups are added via bot command: /add_group ID
# No need to specify TARGET_GROUP_ID in .env
# Ollama configuration (внешний сервис)
# Linux (Docker bridge): http://172.17.0.1:11434
# Или через host.docker.internal: http://host.docker.internal:11434
OLLAMA_URL=http://172.17.0.1:11434
OLLAMA_MODEL=qwen3:30b-a3b
PROMPT_FILE=prompt.txt
# Scan configuration
INITIAL_SCAN_LIMIT=20
# Comment settings (задержка в секундах для естественности)
COMMENT_DELAY_MIN=1
COMMENT_DELAY_MAX=5