npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@robinpath/telegram

v0.3.0

Published

Telegram Bot API client for sending messages, photos, documents, locations, polls, stickers, and managing chats

Downloads

154

Readme

@robinpath/telegram

Telegram Bot API client for sending messages, photos, documents, locations, polls, stickers, and managing chats

Category Functions Auth License

Why use this module?

The telegram module lets you:

  • Get info about the bot (id, first_name, username)
  • Send a text message to a chat
  • Send a photo from a local file to a chat
  • Send a document/file from a local path to a chat
  • Send a GPS location to a chat

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

robinpath add @robinpath/telegram

Quick Start

1. Set up credentials

telegram.setToken "default" "123456:ABC-DEF..."

2. Get info about the bot (id, first_name, username)

telegram.getMe "default"

Available Functions

| 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 |

Examples

Get info about the bot (id, first_name, username)

telegram.getMe "default"

Send a text message to a chat

telegram.send "default" "-100123456" "Hello from RobinPath!"

Send a photo from a local file to a chat

telegram.sendPhoto "default" "-100123456" "/tmp/photo.jpg" {"caption": "Look at this!"}

Integration with RobinPath

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"
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT