ワンクリックで
telegram
Control the always-listening Telegram daemon, send messages, manage the task/goal bot, and configure scheduled alerts.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Control the always-listening Telegram daemon, send messages, manage the task/goal bot, and configure scheduled alerts.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | telegram |
| triggers | send telegram, telegram message, telegram listener, start daemon, stop daemon, telegram notification, push notification, telegram bot, @YourBot, telegram alert |
| description | Control the always-listening Telegram daemon, send messages, manage the task/goal bot, and configure scheduled alerts. |
Auto-activate for Telegram message sending, daemon control, or bot configuration.
When helping the user set up the Telegram bot, follow these steps:
pip install -r requirements.txt
Copy the template and help the user fill in credentials:
cp .env.example .env
Required credentials (user must obtain):
| Credential | How to Get |
|---|---|
TELEGRAM_BOT_TOKEN | Message @BotFather on Telegram, use /newbot |
TELEGRAM_BOT_USER_ID | Message @userinfobot on Telegram |
TELEGRAM_API_ID | Go to https://my.telegram.org → API Development Tools |
TELEGRAM_API_HASH | Go to https://my.telegram.org → API Development Tools |
mkdir -p logs
python telegram_listener.py --daemon
python telegram_listener.py --status
| What | Command |
|---|---|
| Start listener | /telegram start |
| Stop listener | /telegram stop |
| Status + PID | /telegram status |
| Sleep (alerts only) | /telegram sleep |
| Wake (full response) | /telegram wake |
| View logs | /telegram logs |
Command 'telegram' (see below for command content) send "Your message here"
Command 'telegram' (see below for command content) brief # Send morning briefing now
Command 'telegram' (see below for command content) alert "msg" # System alert notification
Two-tier — daemon is standalone Python, cannot call Claude MCP directly:
| Tier | Mechanism | Commands |
|---|---|---|
| Direct | Pure Python + API calls | tasks, goals, weather, status |
| Queue | Write to /tmp/telegram_agent_queue.json | complex queries |
telegram_listener.py + telegram_helpers.py/tmp/telegram_listener.pid/tmp/telegram_listener_state.jsonlogs/telegram_listener.log/tmp/telegram_agent_queue.jsontemplates/helper_template.py{ "chat_id": null, "notifications_enabled": true, "morning_brief": true,
"task_reminders": true, "goal_checkin_time": "20:00", "always_listening": true }
Use the telegram-builder skill for detailed guidance on adding new commands and services.
Add helper function in telegram_helpers.py:
def get_my_service(query=None):
"""Fetch data from your API."""
# Your implementation
return "**My Service**\nResult here"
Import in telegram_listener.py:
from telegram_helpers import get_my_service
Add command handler in route_command():
if lower.startswith("/myservice"):
query = text.split(maxsplit=1)[1] if len(text.split()) > 1 else None
return get_my_service(query)
See templates/helper_template.py for a complete integration example.
The user can send these commands directly to their bot:
| Command | Action |
|---|---|
/tasks | Today's tasks |
add task: ... | Add a task |
done: ... / done 1 | Complete a task |
/goals | Active goals |
add goal: ... | Add a goal |
/progress | Today's stats + streak |
| Command | Action |
|---|---|
/help | Full command menu |
/status | Listener + system health |
/weather | Current weather |
sleep / goodnight | Enter sleep mode |
wake / good morning | Exit sleep mode |
Configured in user_profile.json → telegram:
| Time | Alert | Config Key |
|---|---|---|
| 8:00 AM | Morning brief (weather, tasks, goals) | morning_brief: true |
| 8:00 PM (default) | Evening check-in (completed, pending, streak) | goal_checkin_time: "20:00" |