
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
@robinpath/telegram
Advanced tools
Telegram Bot API client for sending messages, photos, documents, locations, polls, stickers, and managing chats
Telegram Bot API client for sending messages, photos, documents, locations, polls, stickers, and managing chats
The telegram module lets you:
All functions are callable directly from RobinPath scripts with a simple, consistent API.
robinpath add @robinpath/telegram
1. Set up credentials
telegram.setToken "default" "123456:ABC-DEF..."
2. Get info about the bot (id, first_name, username)
telegram.getMe "default"
| Function | Description |
|---|---|
telegram.setToken | Store a Telegram bot token for subsequent API calls |
telegram.getMe | Get info about the bot (id, first_name, username) |
telegram.send | Send a text message to a chat |
telegram.sendPhoto | Send a photo from a local file to a chat |
telegram.sendDocument | Send a document/file from a local path to a chat |
telegram.sendLocation | Send a GPS location to a chat |
telegram.sendPoll | Send a poll to a chat |
telegram.editMessage | Edit the text of an existing message |
telegram.deleteMessage | Delete a message from a chat |
telegram.getUpdates | Receive incoming updates via long polling |
telegram.sendSticker | Send a sticker by file_id to a chat |
telegram.getChat | Get up-to-date information about a chat |
telegram.getMe "default"
telegram.send "default" "-100123456" "Hello from RobinPath!"
telegram.sendPhoto "default" "-100123456" "/tmp/photo.jpg" {"caption": "Look at this!"}
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/telegram";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
telegram.setToken "default" "123456:ABC-DEF..."
telegram.getMe "default"
`);
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
@robinpath/slack — Slack module for complementary functionality@robinpath/discord — Discord module for complementary functionality@robinpath/teams — Teams module for complementary functionality@robinpath/whatsapp — WhatsApp module for complementary functionality@robinpath/json — JSON module for complementary functionalityMIT
FAQs
Telegram Bot API client for sending messages, photos, documents, locations, polls, stickers, and managing chats
The npm package @robinpath/telegram receives a total of 7 weekly downloads. As such, @robinpath/telegram popularity was classified as not popular.
We found that @robinpath/telegram demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.