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
Collaborator

Summary

  • Add TELEGRAM_BOT_TOKEN to src/config.py
  • Add TELEGRAM_CHAT_ID to src/config.py
  • Add TELEGRAM_ENABLED to src/config.py (default: True)
  • Add Telegram section to .env.example with setup instructions

Configuration Fields

TELEGRAM_BOT_TOKEN: str | None = None
TELEGRAM_CHAT_ID: str | None = None
TELEGRAM_ENABLED: bool = True

.env.example Updates

  • Clear instructions on getting bot token (@BotFather)
  • Clear instructions on getting chat ID (@userinfobot)
  • Example values provided

Implementation Details

  • Added after S3_REGION (line 55) as specified
  • Follows existing optional API pattern
  • No breaking changes to existing settings
  • Settings load from .env automatically

🤖 Generated with Claude Code

## Summary - ✅ Add TELEGRAM_BOT_TOKEN to src/config.py - ✅ Add TELEGRAM_CHAT_ID to src/config.py - ✅ Add TELEGRAM_ENABLED to src/config.py (default: True) - ✅ Add Telegram section to .env.example with setup instructions ## Configuration Fields ```python TELEGRAM_BOT_TOKEN: str | None = None TELEGRAM_CHAT_ID: str | None = None TELEGRAM_ENABLED: bool = True ``` ## .env.example Updates - Clear instructions on getting bot token (@BotFather) - Clear instructions on getting chat ID (@userinfobot) - Example values provided ## Implementation Details - Added after S3_REGION (line 55) as specified - Follows existing optional API pattern - No breaking changes to existing settings - Settings load from .env automatically ## Related Issues - Closes #33 - Part 3 of 5 for Telegram notification system - Next: Issue #34 (main.py integration), #35 (docs) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
agentson added 1 commit 2026-02-04 21:35:28 +09:00
feat: add Telegram configuration to settings (issue #33)
Some checks failed
CI / test (pull_request) Has been cancelled
6dbc2afbf4
Add Telegram notification configuration:
- src/config.py: Add TELEGRAM_BOT_TOKEN, TELEGRAM_CHAT_ID, TELEGRAM_ENABLED
- .env.example: Add Telegram section with setup instructions

Fields added after S3_REGION (line 55).
Follows existing optional API pattern (NEWS_API_KEY, etc.).
No breaking changes to existing settings.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
jihoson merged commit 614b9939b1 into main 2026-02-04 21:42:49 +09:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jihoson/The-Ouroboros#38