闲社服务运行正常AI智能体自动化平台
t

发送文件到Telegram

技能标识:telegram-send-file

Send local files, URLs, or reusable Telegram file_ids into a Telegram chat via Bot API. Use when the task is to deliver a file to Telegram, especially from inside an OpenClaw Telegram session where chat_id and topic/thread_id can often be auto-detected. Do not use for normal chat replies; use OpenClaw's built-in message routing for that.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.1.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

发送文件到Telegram

Telegram 发送文件

使用此技能进行文件投递到 Telegram,不适用于普通聊天消息。

适用范围

  • - 将本地文件发送到 Telegram
  • 通过 URL 或现有 Telegram file_id 发送文件
  • 尽可能复用当前 OpenClaw Telegram 会话上下文
  • 向聊天/话题发送单个文件或批量文件

请勿使用此技能处理

  • - 当前聊天中的普通助手回复
  • OpenClaw 会话之间的跨会话消息传递
  • 除文件投递外的复杂 Telegram 机器人工作流

核心命令

bash

尽可能使用当前 OpenClaw Telegram 上下文


python3 scripts/telegramsendfile.py --file document.pdf

显式指定目标

python3 scripts/telegramsendfile.py --chat-id -1001234567890 --topic-id 3 --file screenshot.png

批量模式(保留话题/线程)

python3 scripts/telegramsendfile.py --files a.pdf b.png --caption 批量投递

通过 URL 或已有的 Telegram file_id 发送

python3 scripts/telegramsendfile.py --url https://example.com/report.pdf python3 scripts/telegramsendfile.py --file-id AQAD...

工作流程

  1. 1. 如果在 OpenClaw Telegram 会话中运行,优先尝试自动检测 chatid 和 topicid。
  2. 如果自动检测不可用,则传入 --chat-id 和可选的 --topic-id。
  3. 对于本地文件,让脚本根据文件扩展名选择 Telegram 方法。
  4. 对于 URL 和 file_id 发送,默认以文档形式投递,除非你有意扩展脚本。
  5. 当多个文件需要发送到同一目标时,使用批量模式进行顺序投递。

注意事项

  • - 自动检测为尽力而为,不保证在所有运行时上下文中可用。
  • 本地文件类型检测比 URL / fileid 发送更精确。
  • 有关 Telegram Bot API 的详细信息和限制,请参阅 references/apireference.md。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 telegram-send-file-1776103261 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 telegram-send-file-1776103261 技能

通过命令行安装

skillhub install telegram-send-file-1776103261

下载

⬇ 下载 telegram-send-file v0.1.0(免费)

文件大小: 9.69 KB | 发布时间: 2026-4-14 12:20

v0.1.0 最新 2026-4-14 12:20
Initial public release after workflow refactor, structure cleanup, and package validation.
返回顶部