Skip to main content

sapphire-telegram

Telegram bot framework — handlers, commands, notification routing, agent dispatch

소스 정보

저장소
arigatoexpress/Sapphire
최근 소스 활동
2026년 7월 29일 15:50
감지된 SKILL.md 언어
영어
스타
1
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
17 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
sapphire-telegram
description
Telegram bot framework — handlers, commands, notification routing, agent dispatch
type
library
runtime
python
deploy_target
rari1
dependencies
["sapphire-core"]
entry_point
src/sapphire_telegram/bot.py
test_command
pytest tests/
# sapphire.telegram Shared Telegram bot framework used by control-plane and lighter services. Handles bot lifecycle, command routing, and outbound notifications. ## Key Modules - `bot.py` — Bot init, webhook/polling mode switch, startup validator - `handlers.py` — Command handlers: /status, /pnl, /deploy, /task, /alert ## Usage ```python from sapphire_telegram.bot import SapphireBot bot = SapphireBot(token=os.getenv("TELEGRAM_BOT_TOKEN")) bot.run_polling() ``` ## Notification Routing Outbound notifications are tagged before send: - `priority:p0` → immediate push, bypass quiet hours - `type:trading` → trading channel - `agent:kimi` → Kimi status channel ## Deploy Notes - Runs on rari1 as part of control-plane service - Bot token in Secret Manager: `sapphire-telegram-bot-token` - Webhook URL (Cloud Run): `https://pm.sapphirealpha.xyz/telegram/webhook`
GitHub에서 보기