AgentSkillsCN

File Sender

文件发送器

SKILL.md

file-sender

Description

Manage Telegram file transfers (Send & Receive) with logging. Policies:

  • Send: No copy needed, logs to logs/telegram_files.log.
  • Receive: Saves to ~/Downloads/Telegram_Received, auto-renames duplicates (_1, _2), logs entry.
  • Rename: Renames files and logs the new absolute path for easy tracking.

Commands

  • send: ./send.sh <file_path> <chat_id> <bot_token>

    • description: Send a local file to Telegram.
    • usage: openclaw file-sender send --file "/path/to/file"
  • receive: ./receive.sh <source_path>

    • description: Process an incoming file (move, rename, log).
    • usage: openclaw file-sender receive --file "/tmp/downloaded_file.pdf"
  • rename: ./rename.sh <old_path> <new_name>

    • description: Rename a file and log the change with full path.
    • usage: openclaw file-sender rename --old_path "..." --new_name "new.pdf"

Installation

  • Just link this directory to your skills.