telegram send files
Send files quickly via Telegram using the tsend CLI tool with optional captions, profiles, and simple token/chat ID configuration.
Latest: v2.1.0
tsend v2.1.0 Release Notes
New Features
- Multi-file support: Send multiple files in one command
bash tsend send file1.pdf file2.jpg file3.png tsend send *.pdf - Progress indicator: Shows
[1/3]style progress for batch uploads - Batch statistics: Displays total file count and combined size
- Smart caption handling: Caption is sent with the first file only
Examples
# Send multiple files
tsend send document.pdf photo.jpg notes.txt
# Wildcard support
tsend send ~/Downloads/*.zip --caption "Backup files"
# Mixed arguments
tsend send report.pdf chart.png data.csv
Notes
- Files are sent sequentially to avoid rate limits
- If one file fails, others continue uploading
- Exit code 1 only if all files fail
Telegram Sender (tsend)
Zero-config CLI tool. Install once, send forever.
Installation
Tip: Try using tsend command first. If command not found, then install.
Using uv (recommended)
cd <skill-path>/scripts
uv tool install -e .
Replace <skill-path> with the actual skill path.
After installation, tsend command is available globally.
From source (alternative)
If you don't have uv:
cd <skill-path>/scripts
pip install -e .
Just use it
tsend send document.pdf
tsend send photo.jpg --caption "Description"
tsend send image.png -c "Screenshot"
# Send multiple files
tsend send file1.pdf file2.jpg file3.png
tsend send *.pdf --caption "Documents" # caption only goes to first file
Using specific profile
tsend send file.pdf --profile mybot
tsend send photo.png -c "Description" -p picoclaw
That's it. No setup, no checks, no questions.
Only if it fails (once)
tsend config set --token "YOUR_BOT_TOKEN" --chat-id "YOUR_CHAT_ID"
Or specify a profile:
tsend config set --profile mybot --token "TOKEN" --chat-id "CHAT_ID"
tsend config default mybot # Set as default
The tool saves config to ~/.tsend/config.json.
Multiple Profiles
Manage multiple bots with profiles:
# List all profiles
tsend config list
# Show specific profile
tsend config show --profile mybot
# Send with specific profile
tsend send file.pdf --profile mybot
Environment Variable
Set default profile via environment:
export TSEND_PROFILE=mybot
tsend send file.pdf # Uses 'mybot' profile
Useful for different services (nanobot, picoclaw, etc.).
When something's wrong
"token invalid" → Fix with one command:
tsend config set --token NEW_TOKEN --chat-id NEW_ID
No reinstall, no config file hunting.
