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

@tuttiai/telegram

v0.1.0

Published

Tutti voice — read, post and moderate Telegram messages from agents; shared bot client for @tuttiai/inbox

Readme

@tuttiai/telegram

Telegram voice for Tutti — gives agents a bot token they can use to read, post and moderate messages on Telegram.

The voice ships four outbound tools (post_message, edit_message, delete_message, send_photo) all marked destructive: true, so HITL-enabled runtimes gate them behind human approval before anything is sent.

The same package also exports TelegramClientWrapper — a token-keyed, reference-counted bot wrapper that @tuttiai/inbox reuses for its inbound Telegram adapter. Telegram's getUpdates polling does not allow two simultaneous sessions per bot token, so sharing the underlying bot is mandatory for the voice + inbox combination.

Install

tutti-ai add telegram
# or
npm install @tuttiai/telegram

Bot setup

  1. Open @BotFather in Telegram and send /newbot. Pick a display name and a username; it must end in bot (e.g. my_tutti_bot). BotFather replies with the bot token.
  2. Set the env var:
    TELEGRAM_BOT_TOKEN=123456789:AA…your-token…
  3. (Inbox use only.) If the bot needs to read non-mention messages in groups, send /setprivacy to BotFather, choose your bot, and select Disable.
  4. Add the bot to a chat or channel you want it to post in. For channels, the bot must be made an administrator with Post messages rights.

Score example

import { TelegramVoice } from "@tuttiai/telegram";
import { defineScore } from "@tuttiai/core";

export default defineScore({
  agents: {
    support: {
      name: "support",
      system_prompt: "You are a Telegram support agent. Use the telegram voice to reply.",
      voices: [new TelegramVoice()],
      permissions: ["network"],
    },
  },
  // ...
});

Tools

| Tool | Description | |---|---| | post_message | Send a text message to a chat or channel. Up to 4096 chars. | | edit_message | Edit a message the bot previously sent (< 48h old). | | delete_message | Delete a message. The bot can always delete its own; deleting others requires admin rights. | | send_photo | Send a photo by URL or file_id. Optional caption (1024 chars). |

All four tools accept either a numeric chat_id (e.g. 12345, -1001234567890 for supergroups) or a @channel_username string.

Lifecycle

The bot is created lazily on the first tool call. For outbound-only use, no polling loop is started — the Telegram REST API works without one. When @tuttiai/inbox adds a Telegram adapter against the same token, the wrapper installs a single shared getUpdates poll that fan-outs to both the voice and the inbox handler.

Call voice.teardown() (or TuttiRuntime.teardown()) on shutdown to release the wrapper's reference. The bot is only stopped when the last holder releases.