Telegram File Sender
Workflow
- Confirm file exists (read path).
- Read
chat_idfrom the## Inbound Context (trusted metadata)JSON block in the system prompt (value looks liketelegram:1234567890). - Run
scripts/send_file.sh <path> ['caption'] <chat_id>. - 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 Context → chat_id field. Never hardcode.
