Add send_message method to TelegramClient #59

Closed
opened 2026-02-05 13:38:00 +09:00 by agentson · 0 comments
Collaborator

목표

TelegramClient에 범용 send_message(text: str) 메서드 추가

세부사항

  • 기존 _send_notification 메서드의 공통 로직을 재사용하는 send_message 메서드 구현
  • 알림 메서드와 명령어 응답에서 모두 사용 가능한 인터페이스 제공
  • parse_mode 파라미터 지원 (HTML 기본값)
  • 성공/실패 여부를 bool로 반환

체크리스트

  • send_message(text: str, parse_mode: str = "HTML") -> bool 메서드 구현
  • _send_notification이 send_message를 호출하도록 리팩토링
  • 테스트 추가
  • 커버리지 80% 이상 유지

관련 이슈

Part of Telegram bidirectional command feature implementation

## 목표 TelegramClient에 범용 send_message(text: str) 메서드 추가 ## 세부사항 - 기존 _send_notification 메서드의 공통 로직을 재사용하는 send_message 메서드 구현 - 알림 메서드와 명령어 응답에서 모두 사용 가능한 인터페이스 제공 - parse_mode 파라미터 지원 (HTML 기본값) - 성공/실패 여부를 bool로 반환 ## 체크리스트 - [ ] send_message(text: str, parse_mode: str = "HTML") -> bool 메서드 구현 - [ ] _send_notification이 send_message를 호출하도록 리팩토링 - [ ] 테스트 추가 - [ ] 커버리지 80% 이상 유지 ## 관련 이슈 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#59