Files
bottohelp/config.py
T

42 lines
1.6 KiB
Python
Raw Permalink 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.
# Конфигурация бота
# КОПИРУЙТЕ ЭТОТ ФАЙЛ В config_local.py И ЗАПОЛНИТЕ СВОИМИ ДАННЫМИ
# НЕ ЗАГРУЖАЙТЕ config_local.py НА GITHUB!
# Токен Telegram бота (получить у @BotFather)
BOT_TOKEN = "ВАШ_ТОКЕН_ЗДЕСЬ"
# Ключ API OpenWeatherMap для получения погоды
OPENWEATHER_API_KEY = "ВАШ_API_КЛЮЧ_ЗДЕСЬ"
# Ключ API NewsAPI для получения новостей
NEWS_API_KEY = "ВАШ_API_КЛЮЧ_ЗДЕСЬ"
# Конфигурация базы данных PostgreSQL
DB_CONFIG = {
"host": "localhost",
"database": "telegram_bot",
"user": "your_username",
"password": "your_password",
"port": 5432
}
# Администраторы чата (список ID пользователей)
ADMIN_IDS = [123456789, 987654321] # Замените на реальные ID администраторов
# Настройки планировщика
SCHEDULER_CONFIG = {
"time_zone": "Europe/Moscow", # Часовой пояс
"check_interval": 60, # Интервал проверки в секундах
}
# Настройки логирования
LOG_CONFIG = {
"level": "INFO",
"file": "bot.log",
"max_size": 10*1024*1024, # 10 MB
"backup_count": 5,
"format": "json", # JSON format for structured logging
"sentry_dsn": "YOUR_SENTRY_DSN_HERE", # Sentry DSN for error tracking
"enable_sentry": False, # Enable Sentry integration
"prometheus_port": 8000 # Port for Prometheus metrics
}