跳到正文
所有工具

telegram_watch_messages

Telegram · macOS · Windows

效果: 读取. 状态: 受限可用.

“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。

macOS

用途

请 Local MCP 在所选 Telegram 聊天有新消息到达时通知此会话,这样你就不必反复调用 telegram_read_messages。set 需要 `account` 和 `chats`。Local MCP 每 300 秒检查一次(delivery "poll"),因此通知可能在消息到达约 5 分钟后才出现。每条通知都是发给此会话的 notifications/claude/channel 消息,包含 platform、account、chat、count、max_id 和 event_id,绝不包含文本:请用 telegram_read_messages 读取聊天。通知可能重复:忽略你已见过的 event_id。监视立即开始;请先读取一次聊天以补上进度。它随此会话结束而结束。只有经认证可显示这些通知的 AI 客户端版本才能设置;其他客户端会得到 delivery "unsupported",且不会设置任何内容。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构 — macOS
{
  "properties": {
    "account": {
      "description": "Which linked Telegram account to use: its label or id from telegram_list_accounts. Leave it out to use the default account.",
      "type": "string"
    },
    "action": {
      "description": "set: watch these chats for this session; clear: stop; status: what is watched and when it was last checked.",
      "enum": [
        "set",
        "clear",
        "status"
      ],
      "type": "string"
    },
    "chats": {
      "description": "For set: 1 to 20 chat ids from telegram_list_chats of that account (user:… or, with include_groups, chat:…).",
      "items": {
        "type": "string"
      },
      "maxItems": 20,
      "minItems": 1,
      "type": "array"
    },
    "include_groups": {
      "description": "Allow basic groups (chat:…). Channels are not supported.",
      "type": "boolean"
    }
  },
  "required": [
    "action"
  ],
  "type": "object"
}

文档示例

telegram_watch_messages 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "account": "Demo Telegram",
  "action": "set",
  "chats": [
    "user:5550100123"
  ]
}

Windows

用途

请 Local MCP 在所选 Telegram 聊天有新消息到达时通知此会话,这样你就不必反复调用 telegram_read_messages。set 需要 `account` 和 `chats`。Local MCP 每 300 秒检查一次(delivery "poll"),因此通知可能在消息到达约 5 分钟后才出现。每条通知都是发给此会话的 notifications/claude/channel 消息,包含 platform、account、chat、count、max_id 和 event_id,绝不包含文本:请用 telegram_read_messages 读取聊天。通知可能重复:忽略你已见过的 event_id。监视立即开始;请先读取一次聊天以补上进度。它随此会话结束而结束。只有经认证可显示这些通知的 AI 客户端版本才能设置;其他客户端会得到 delivery "unsupported",且不会设置任何内容。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构 — Windows
{
  "properties": {
    "account": {
      "description": "For set: which linked Telegram account to watch, its label or id from telegram_list_accounts. Required: never the default.",
      "type": "string"
    },
    "action": {
      "description": "set: watch these chats for this session; clear: stop; status: what is watched and when it was last checked.",
      "enum": [
        "set",
        "clear",
        "status"
      ],
      "type": "string"
    },
    "chats": {
      "description": "For set: 1 to 20 chat ids from telegram_list_chats of that account (user:… or, with include_groups, chat:…).",
      "items": {
        "type": "string"
      },
      "maxItems": 20,
      "minItems": 1,
      "type": "array"
    },
    "include_groups": {
      "description": "Allow basic groups (chat:…). Channels are not supported.",
      "type": "boolean"
    }
  },
  "required": [
    "action"
  ],
  "type": "object"
}

文档示例

telegram_watch_messages 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "account": "Demo Telegram",
  "action": "set",
  "chats": [
    "user:5550100123"
  ]
}