Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

telegram-botTelegram 机器人

Agent Skill

telegram-bot 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

21,441

周安装

859

GitHub Stars

89

下载量

6,941
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:telegram-bot(Telegram 机器人)
来源仓库:https://github.com/claude-office-skills/skills
仓库路径:skills/telegram-bot
安装命令:
npx skills add https://github.com/claude-office-skills/skills --skill telegram-bot
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/claude-office-skills/skills --skill telegram-bot

简介

telegram-bot 提供 Telegram 机器人构建支持,涵盖消息处理、通知推送与群组自动化。

  • 适用于客服助手、团队通知、AI 对话等基于 Telegram 的交互场景。
  • 支持 BotFather 配置流程指导与工作流模板集成,降低开发门槛。
  • 需自行申请 API Token 并管理服务器端点,注意消息安全与频率限制。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Telegram Bot

Build Telegram bots for chatbots, notifications, AI assistants, and group automation. Based on n8n's Telegram workflow templates.

Overview

This skill covers:

  • Bot setup and configuration
  • Message handling patterns
  • AI-powered assistants
  • Notification workflows
  • Group automation

Bot Setup

Creating a Bot

setup_steps:
  1. create_bot:
      - open: @BotFather on Telegram
      - command: /newbot
      - provide: bot_name
      - provide: bot_username (must end in 'bot')
      - receive: API_token

  2. configure_bot:
      - command: /setdescription
      - command: /setabouttext
      - command: /setuserpic
      - command: /setcommands

  3. get_chat_id:
      - start: conversation with bot
      - call: https://api.telegram.org/bot{TOKEN}/getUpdates
      - extract: chat.id from response

Bot Commands

commands:
  - command: /start
    description: "Start the bot"

  - command: /help
    description: "Show available commands"

  - command: /status
    description: "Check system status"

  - command: /subscribe
    description: "Subscribe to notifications"

  - command: /unsubscribe
    description: "Unsubscribe from notifications"

Message Handlers

Basic Message Handler

workflow: "Telegram Message Handler"
trigger: telegram_message

handlers:
  text_message:
    action: |
      1. Parse message text
      2. Determine intent
      3. Process request
      4. Send response

  command:
    pattern: "^/"
    action: route_to_command_handler

  photo:
    action: |
      1. Download photo
      2. Process with vision AI
      3. Respond with analysis

  document:
    action: |
      1. Download document
      2. Extract content
      3. Process and respond

  voice:
    action: |
      1. Download audio
      2. Transcribe with Whisper
      3. Process text
      4. Respond (text or voice)

  location:
    action: |
      1. Extract coordinates
      2. Lookup local info
      3. Respond with relevant data

n8n Workflow

workflow: "Telegram Bot n8n"

nodes:
  - name: "Telegram Trigger"
    type: "n8n-nodes-base.telegramTrigger"
    parameters:
      updates: ["message", "callback_query"]

  - name: "Route Message Type"
    type: "n8n-nodes-base.switch"
    parameters:
      rules:
        - output: 0
          condition: "{{ $json.message.text.startsWith('/') }}"
        - output: 1
          condition: "{{ $json.message.photo }}"
        - output: 2
          condition: "{{ $json.message.voice }}"
        - output: 3
          fallback: true

  - name: "Process with AI"
    type: "n8n-nodes-base.openAi"
    parameters:
      model: "gpt-4"
      messages:
        - role: "system"
          content: "You are a helpful Telegram assistant."
        - role: "user"
          content: "{{ $json.message.text }}"

  - name: "Send Response"
    type: "n8n-nodes-base.telegram"
    parameters:
      chatId: "{{ $json.message.chat.id }}"
      text: "{{ $json.response }}"

AI-Powered Bot

GPT-4 Integration

ai_bot:
  name: "AI Assistant Bot"

  system_prompt: |
    You are a helpful AI assistant on Telegram.

    Guidelines:
    - Be concise (Telegram has message limits)
    - Use emojis appropriately
    - Format with markdown when helpful
    - Ask clarifying questions if needed

  features:
    - conversational_memory: true
    - context_window: last_10_messages
    - tools: [web_search, calculator, weather]

  message_formatting:
    max_length: 4096
    split_long_messages: true
    use_markdown: true

Multi-Modal Bot

multimodal_bot:
  handlers:
    text:
      model: gpt-4
      action: chat_completion

    image:
      model: gpt-4-vision
      action: analyze_and_respond

    voice:
      transcribe: whisper
      process: gpt-4
      respond: text_or_voice

    document:
      extract: based_on_type
      summarize: gpt-4
      respond: text

Notification System

Alert Bot

workflow: "System Alert Bot"

triggers:
  - source: monitoring_system
    event: alert
  - source: ci_cd
    event: build_status
  - source: ecommerce
    event: new_order

notification_templates:
  alert:
    format: |
      🚨 *Alert: {severity}*

      *Service:* {service}
      *Message:* {message}
      *Time:* {timestamp}

      [View Dashboard]({dashboard_link})

  build:
    format: |
      {status_emoji} *Build {status}*

      *Project:* {project}
      *Branch:* {branch}
      *Commit:* `{commit_short}`

      {details}

  order:
    format: |
      🛒 *New Order!*

      *Order:* #{order_id}
      *Customer:* {customer}
      *Total:* ${total}
      *Items:* {item_count}

routing:
  by_severity:
    critical: [admin_group, on_call_user]
    warning: [team_group]
    info: [logging_channel]

Scheduled Notifications

scheduled_notifications:
  daily_digest:
    schedule: "9am daily"
    template: |
      📊 *Daily Summary - {date}*

      📈 Sales: ${sales} ({change})
      👥 New users: {new_users}
      🎫 Open tickets: {tickets}

      Have a great day! ☀️

  weekly_report:
    schedule: "Monday 9am"
    template: weekly_metrics_report

  reminder:
    trigger: custom_event
    template: |
      ⏰ *Reminder*

      {reminder_text}

      Scheduled by: {creator}

Group Automation

Welcome Bot

group_bot:
  on_member_join:
    action: |
      1. Check if new member
      2. Send welcome message
      3. Share rules
      4. Suggest introduction

    template: |
      👋 Welcome to {group_name}, {user_name}!

      Please:
      1. Read the /rules
      2. Introduce yourself
      3. Ask questions anytime!

      Enjoy your stay! 🎉

  on_member_leave:
    action: optional_goodbye

  moderation:
    - spam_detection: auto_delete + warn
    - link_filtering: whitelist_only
    - flood_control: rate_limit

Poll & Survey Bot

poll_bot:
  commands:
    /poll:
      format: "/poll Question | Option1 | Option2 | ..."
      action: create_poll

    /survey:
      action: start_multi_question_survey

    /results:
      action: show_aggregated_results

  features:
    - anonymous_voting: optional
    - multiple_choice: optional
    - scheduled_close: optional
    - export_results: to_sheets

Inline Features

Inline Keyboard

inline_keyboard:
  example:
    text: "Choose an option:"
    keyboard:
      - row:
          - text: "Option 1"
            callback_data: "opt_1"
          - text: "Option 2"
            callback_data: "opt_2"
      - row:
          - text: "Cancel"
            callback_data: "cancel"

  callback_handler:
    opt_1:
      action: process_option_1
      response: "You selected Option 1"

    opt_2:
      action: process_option_2
      response: "You selected Option 2"

    cancel:
      action: cancel_operation
      response: "Operation cancelled"

Inline Query

inline_mode:
  trigger: "@botname query"

  results:
    - type: article
      title: "{query} result"
      description: "Click to send"
      message_text: "Result for: {query}"

    - type: photo
      photo_url: "{search_result_image}"

    - type: gif
      gif_url: "{gif_url}"

Output Example

Request: "Create a Telegram notification bot for server alerts"

Output:

# Server Alert Telegram Bot

## Setup

1. Create bot with @BotFather
2. Get token: `123456:ABC-DEF...`
3. Get chat ID for alerts channel

## n8n Workflow

nodes: 1. Webhook (receives alerts) 2. Format Message 3. Telegram Send


## Alert Templates

**Critical Alert:**

🚨 CRITICAL ALERT

Server: production-web-01 Status: DOWN Time: 2026-01-30 14:32:05 UTC

Details:

  • CPU: 98%
  • Memory: 95%
  • Disk: 89%

[View Grafana] [Acknowledge]


**Recovery:**

✅ RECOVERED

Server: production-web-01 Downtime: 5 minutes Status: All systems normal

Incident resolved automatically.


## Implementation

// Send alert function async function sendAlert(severity, message, details) { const emoji = { critical: '🚨', warning: '⚠️', info: 'ℹ️', success: '✅' };

const text = ${emoji[severity]} *${severity.toUpperCase()}*\n\n${message}\n\n${details};

await telegram.sendMessage({ chat_id: ALERT_CHANNEL_ID, text: text, parse_mode: 'Markdown' }); }


## Features

- Severity-based routing
- Inline action buttons
- Acknowledgment tracking
- Escalation rules

*Telegram Bot Skill - Part of Claude Office Skills*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.42%
按下载量换算2,528

Claude

29.79%
按下载量换算2,068

Cursor

16.41%
按下载量换算1,139

Gemini CLI

8.25%
按下载量换算573

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills