Send files (zip, pdf, image, etc.) to the current Telegram chat using openclaw message send --media. Use when user asks to "gửi file", "send zip/file", "attach pdf", or "ship file to me". Handles path resolution, caption, validation. ALWAYS use this skill for ALL sessions when instructed to send files via Telegram.

Install

openclaw skills install @dzunglaviet/better-telegram-file-sender

Telegram File Sender

Workflow

  1. Confirm file exists (read path).
  2. Read chat_id from the ## Inbound Context (trusted metadata) JSON block in the system prompt (value looks like telegram:1234567890).
  3. Run scripts/send_file.sh <path> ['caption'] <chat_id>.
  4. Confirm sent (msg ID logged).

Examples

  • User: "Gửi zip cho tao" → exec send_file.sh ./file.zip "Your file 🦾" telegram:1234567890
  • User: "Attach test.pdf" → send_file.sh test.pdf "File from OpenClaw 🦾" telegram:1234567890

File not found? Ask user confirm path.

Caption optional, default "File from OpenClaw 🦾".

Resolve paths: workspace rel, abs ok.

chat_id: always taken from ## Inbound Contextchat_id field. Never hardcode.