Add configuration and update documentation for Telegram commands #69

Closed
opened 2026-02-05 15:37:39 +09:00 by agentson · 0 comments
Collaborator

목표

Telegram 명령어 기능에 대한 설정 추가 및 문서 업데이트

세부사항

  • config.py에 명령어 관련 설정 추가
  • src/notifications/README.md 업데이트
  • 사용 예제 및 명령어 목록 추가

구현 내용

1. config.py 설정 추가

# Telegram Commands
TELEGRAM_COMMANDS_ENABLED: bool = True
TELEGRAM_POLLING_INTERVAL: float = 1.0  # seconds

2. src/notifications/README.md 업데이트

추가할 섹션:

  • Bidirectional Commands: 양방향 명령 기능 소개
  • Available Commands: 전체 명령어 목록 및 설명
  • Usage Examples: 명령어 사용 예제
  • Security: Chat ID 검증 및 보안 기능

명령어 목록:

    • Welcome message
    • Show available commands
    • Trading status (mode, markets, P&L)
    • Current holdings
    • Pause trading
    • Resume trading

3. 사용 예제

# Telegram에서 봇과 대화 시작
/start

# 현재 거래 상태 확인
/status

# 보유 종목 확인
/positions

# 거래 일시 중지
/stop

# 거래 재개
/resume

체크리스트

  • config.py에 TELEGRAM_COMMANDS_ENABLED 추가
  • config.py에 TELEGRAM_POLLING_INTERVAL 추가
  • src/notifications/README.md 업데이트
  • 명령어 목록 및 설명 추가
  • 사용 예제 추가
  • 보안 관련 내용 추가

의존성

  • Depends on #67 (status commands)

관련 이슈

Part of Telegram bidirectional command feature implementation

## 목표 Telegram 명령어 기능에 대한 설정 추가 및 문서 업데이트 ## 세부사항 - config.py에 명령어 관련 설정 추가 - src/notifications/README.md 업데이트 - 사용 예제 및 명령어 목록 추가 ## 구현 내용 ### 1. config.py 설정 추가 ```python # Telegram Commands TELEGRAM_COMMANDS_ENABLED: bool = True TELEGRAM_POLLING_INTERVAL: float = 1.0 # seconds ``` ### 2. src/notifications/README.md 업데이트 추가할 섹션: - **Bidirectional Commands**: 양방향 명령 기능 소개 - **Available Commands**: 전체 명령어 목록 및 설명 - **Usage Examples**: 명령어 사용 예제 - **Security**: Chat ID 검증 및 보안 기능 명령어 목록: - - Welcome message - - Show available commands - - Trading status (mode, markets, P&L) - - Current holdings - - Pause trading - - Resume trading ### 3. 사용 예제 ``` # Telegram에서 봇과 대화 시작 /start # 현재 거래 상태 확인 /status # 보유 종목 확인 /positions # 거래 일시 중지 /stop # 거래 재개 /resume ``` ## 체크리스트 - [ ] config.py에 TELEGRAM_COMMANDS_ENABLED 추가 - [ ] config.py에 TELEGRAM_POLLING_INTERVAL 추가 - [ ] src/notifications/README.md 업데이트 - [ ] 명령어 목록 및 설명 추가 - [ ] 사용 예제 추가 - [ ] 보안 관련 내용 추가 ## 의존성 - Depends on #67 (status commands) ## 관련 이슈 Part of Telegram bidirectional command feature implementation
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jihoson/The-Ouroboros#69