Agent skill
telegram
Send Telegram messages, files, and interact with Telegram bots via the telegram-send CLI tool.
Install this agent skill to your Project
npx add-skill https://github.com/olasunkanmi-SE/codebuddy/tree/main/skills/telegram
Metadata
Additional technical details for this skill
- auth
-
{ "type": "bot-token", "setupCommand": "telegram-send --configure" } - icon
- send
- config
-
[ { "name": "TELEGRAM_CONFIG", "type": "string", "label": "Config Path", "required": false, "placeholder": "~/.config/telegram-send.conf" } ] - version
- 1.0.0
- category
- communication
- displayName
- Telegram
- dependencies
-
{ "cli": "telegram-send", "install": { "linux": { "pip": "telegram-send" }, "darwin": { "pip": "telegram-send" }, "windows": { "pip": "telegram-send" } }, "checkCommand": "telegram-send --version" }
SKILL.md
telegram-send
Use telegram-send to send messages, files, and media to Telegram chats.
This tool requires initial configuration with a Telegram bot token.
Setup
Before using, configure telegram-send with your bot token:
telegram-send --configure
This will prompt you to:
- Create a bot via @BotFather on Telegram
- Enter the bot token
- Send
/startto your bot to enable messaging
For group chats, use --configure-group instead:
telegram-send --configure-group
Common Commands
Send Text Message
telegram-send "Hello from CodeBuddy!"
Send with Formatting
# Markdown formatting
telegram-send --format markdown "**Bold** and _italic_ text"
# HTML formatting
telegram-send --format html "<b>Bold</b> and <i>italic</i> text"
Send Files
# Send a document
telegram-send --file /path/to/document.pdf
# Send with caption
telegram-send --file /path/to/document.pdf --caption "Here's the report"
Send Images
# Send image
telegram-send --image /path/to/image.png
# Send image with caption
telegram-send --image /path/to/screenshot.png --caption "Screenshot attached"
Send to Specific Config (Multiple Bots/Chats)
# Use a specific config file
telegram-send --config /path/to/custom.conf "Message to specific chat"
Send Code Blocks
# Send pre-formatted code
telegram-send --format markdown "\`\`\`python
def hello():
print('Hello, World!')
\`\`\`"
Silent Messages (No Notification)
telegram-send --silent "This won't trigger a notification"
Send Location
telegram-send --location 37.7749 -122.4194
Configuration Files
Default config location: ~/.config/telegram-send.conf
You can have multiple configs for different bots/chats:
~/.config/telegram-send.conf- default~/.config/telegram-send-group.conf- for group chats- Custom paths with
--config
Security Notes
- Bot tokens are stored in the config file - ensure proper file permissions
- Run
chmod 600 ~/.config/telegram-send.confto secure credentials - Never commit config files to version control
- Use separate bots for different purposes (personal, work, etc.)
Error Handling
If you get "Unauthorized" errors:
- Verify your bot token with @BotFather
- Ensure you've sent
/startto the bot - Re-run
telegram-send --configure
Limitations
- Can only send to users/groups that have started the bot
- Rate limits apply (avoid spamming)
- File size limits: 50MB for documents, 10MB for photos
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
Send emails using mailsend-go CLI
aws
Manage AWS resources via the aws CLI.
redis
Manage Redis databases via the redis-cli tool.
datadog
Query metrics, manage monitors, post events, and interact with Datadog via the dogshell CLI.
linear
Manage Linear issues via the linear-cli (unofficial or custom wrapper).
gitlab
Manage GitLab issues and merge requests via the glab CLI.
Didn't find tool you were looking for?