← 返回
未分类 Key 中文

Telegram .md File Uploader

Uploads and sends .md files from your OpenClaw workspace to a specific Telegram chat using the Telegram Bot API. Use when you need to share workspace files (...
将OpenClaw工作区中的.md文件上传并发送到指定的Telegram聊天,使用Telegram Bot API。当你需要分享工作区文件时使用。
courtneejay courtneejay 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 需要
★ 0
Stars
📥 458
下载
💾 0
安装
1
版本
#latest

概述

Telegram MD Uploader

This skill enables you to send markdown files directly from your workspace to a Telegram chat.

Prerequisites

  1. Telegram Bot Token: You need a bot token from @BotFather.
  2. Chat ID: You need the Chat ID for the recipient (the bot must be a member of the chat).

Setup & Usage

1. Configure Environment Variables

To keep your credentials secure, set your tokens in your shell environment (e.g., add to .bashrc or .zshrc):

export TELEGRAM_BOT_TOKEN='your_token_here'
export TELEGRAM_CHAT_ID='your_chat_id_here'

2. Usage

Run the script directly from your terminal:

python3 scripts/upload.py <file_path.md>

How It Works

This skill utilizes the Telegram Bot API sendDocument method. It takes the file path, validates that it is a .md file, wraps it in a POST request with multipart/form-data, and sends it to your specified chat.

Troubleshooting

  • Error: TELEGRAM_BOT_TOKEN... must be set: Verify your environment variables are exported.
  • Error: File not found: Double-check the file path.
  • Error: Not a valid .md file: Ensure the file ends with the .md extension.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-02 02:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 331,235
dev-programming

Docker Essentials

arnarsson
核心 Docker 命令和工作流程,包括容器管理、镜像操作和调试。
★ 38 📥 32,700
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,256