agentsclimarketplace

Telegram

Skill shane9coy/Telegram-Bot-Easy/.kilocode/skills/telegram

Control the always-listening Telegram daemon, send messages, manage the task/goal bot, and configure scheduled alerts.From its SKILL.md

Install
npx -y skills add shane9coy/Telegram-Bot-Easy --skill telegram

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.4 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

Telegram Skill

Auto-activate for Telegram message sending, daemon control, or bot configuration.

Setup Instructions (For CLI Agents)

When helping the user set up the Telegram bot, follow these steps:

Step 1: Install Dependencies

pip install -r requirements.txt

Step 2: Create Environment File

Copy the template and help the user fill in credentials:

cp .env.example .env

Required credentials (user must obtain):

CredentialHow to Get
TELEGRAM_BOT_TOKENMessage @BotFather on Telegram, use /newbot
TELEGRAM_BOT_USER_IDMessage @userinfobot on Telegram
TELEGRAM_API_IDGo to https://my.telegram.org → API Development Tools
TELEGRAM_API_HASHGo to https://my.telegram.org → API Development Tools

Step 3: Create Logs Directory

mkdir -p logs

Step 4: Start the Bot

python telegram_listener.py --daemon

Step 5: Verify Setup

python telegram_listener.py --status

Daemon Control

WhatCommand
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

Send Messages

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

Architecture

Two-tier — daemon is standalone Python, cannot call Claude MCP directly:

TierMechanismCommands
DirectPure Python + API callstasks, goals, weather, status
QueueWrite to /tmp/telegram_agent_queue.jsoncomplex queries

Key Files

  • Script: telegram_listener.py + telegram_helpers.py
  • PID: /tmp/telegram_listener.pid
  • State: /tmp/telegram_listener_state.json
  • Logs: logs/telegram_listener.log
  • Queue: /tmp/telegram_agent_queue.json
  • Template: templates/helper_template.py

Config (user_profile.json → telegram)

{ "chat_id": null, "notifications_enabled": true, "morning_brief": true,
  "task_reminders": true, "goal_checkin_time": "20:00", "always_listening": true }

Building New Integrations

Use the telegram-builder skill for detailed guidance on adding new commands and services.

Quick Pattern

  1. 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"
    
  2. Import in telegram_listener.py:

    from telegram_helpers import get_my_service
    
  3. 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)
    

Template Reference

See templates/helper_template.py for a complete integration example.


Built-in Bot Commands

The user can send these commands directly to their bot:

Tasks & Goals

CommandAction
/tasksToday's tasks
add task: ...Add a task
done: ... / done 1Complete a task
/goalsActive goals
add goal: ...Add a goal
/progressToday's stats + streak

System

CommandAction
/helpFull command menu
/statusListener + system health
/weatherCurrent weather
sleep / goodnightEnter sleep mode
wake / good morningExit sleep mode

Scheduled Alerts

Configured in user_profile.jsontelegram:

TimeAlertConfig Key
8:00 AMMorning brief (weather, tasks, goals)morning_brief: true
8:00 PM (default)Evening check-in (completed, pending, streak)goal_checkin_time: "20:00"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,512. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.