feat: add Telegram configuration to settings (issue #33) #38

Merged
jihoson merged 1 commits from feature/issue-33-telegram-config into main 2026-02-04 21:42:49 +09:00
2 changed files with 12 additions and 0 deletions

View File

@@ -26,3 +26,10 @@ MODE=paper
# NEWS_API_KEY=your_news_api_key_here
# NEWS_API_PROVIDER=alphavantage
# MARKET_DATA_API_KEY=your_market_data_key_here
# Telegram Notifications (optional)
# Get bot token from @BotFather on Telegram
# Get chat ID from @userinfobot or your chat
# TELEGRAM_BOT_TOKEN=1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
# TELEGRAM_CHAT_ID=123456789
# TELEGRAM_ENABLED=true

View File

@@ -54,6 +54,11 @@ class Settings(BaseSettings):
S3_BUCKET_NAME: str | None = None
S3_REGION: str = "us-east-1"
# Telegram Notifications (optional)
TELEGRAM_BOT_TOKEN: str | None = None
TELEGRAM_CHAT_ID: str | None = None
TELEGRAM_ENABLED: bool = True
model_config = {"env_file": ".env", "env_file_encoding": "utf-8"}
@property