enable-telegram

v2026.09.24

Start Telegram monitoring. Auto-enables voice pipeline if ElevenLabs or OpenAI TTS keys are detected.

GitHub
安装命令
npx skhub add oimiragieo/enable-telegram
Markdown
SKILL.md

Enable Telegram

Step 1: Check if already running

Read .claude/context/runtime/channel-daemon.pid. If it exists and has content, verify the PID is alive using node -e "try { process.kill(PID, 0); console.log('ALIVE') } catch { console.log('DEAD') }". If ALIVE, tell the user the daemon is already running and show them status commands. Done — do NOT try to start again.

Step 2: Start the daemon

Spawn a developer agent:

subagent_type: developer
prompt: Run this command and report the output: node scripts/channels/telegram-ctl.cjs start

Step 3: Auto-detect voice pipeline

Read .env and check for ELEVENLABS_API_KEY or OPENAI_API_KEY. If either is set, tell the user:

"Voice pipeline auto-enabled — voice messages will be transcribed (Whisper) and responded to with audio (ElevenLabs/OpenAI TTS)."

If neither is set, just say:

"Text-only mode. Add ELEVENLABS_API_KEY or OPENAI_API_KEY to .env for voice message support."

Step 4: Confirm

Tell the user what's active:

  • Daemon status (running on port 3101)
  • Text messaging: active
  • Voice pipeline: active/inactive
  • Memory: loaded (N chats, N profiles)
  • Commands: type / in Telegram for the menu

Important

  • Do NOT use curl to check daemon health — it's blocked by security hooks
  • Use node -e with process.kill(pid, 0) or http.get for health checks
  • The PID file + kill(0) check is sufficient to confirm the daemon is alive
发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

未指定

源路径

.claude/skills/enable-telegram

默认分支

main

最新提交

64b580e

Tree SHA

42a1df4