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)
This commit is contained in:
29
.env.example
Normal file
29
.env.example
Normal file
@@ -0,0 +1,29 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user