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

@odience-network/paperclip-plugin-telegram-enhanced

v0.3.1

Published

Enhanced bidirectional Telegram integration for Paperclip: push notifications, bot commands, escalation, multi-agent sessions (native + ACP), media pipeline, custom workflow commands, and proactive suggestion watches. Maintained by Odience Network; enhanc

Downloads

346

Readme

Telegram Bot for Paperclip — Notifications, Approvals & Multi-Agent Chat Ops

npm License: MIT

Run your Paperclip AI agents from Telegram. Get instant notifications, approve requests with one tap, chat with multiple agents in a thread, send voice notes that turn into tasks, and build your own slash commands — all without leaving your chat app.

Enhanced fork maintained by Odience Network, derived from mvanhorn/paperclip-plugin-telegram (MIT) and extended with extra features and upstream fork fixes. Published as @odience-network/paperclip-plugin-telegram-enhanced.

Telegram + Paperclip in one bidirectional bridge. This plugin turns a Telegram bot into a command center for your AI agents: push notifications flow out to your chats, and commands, replies, approvals, and media flow back in to Paperclip.

Paperclip agents  ⇄  Telegram bot  ⇄  You
   notifications   →   📲 chats     →  tap to approve, reply, chat
   issues & tools  ←   💬 commands  ←  /status, voice notes, @mentions

Table of contents


Features

| | Feature | What you get | |---|---|---| | 🔔 | Notifications | Issue created/done/blocked, board @-mentions, approvals, agent errors, and run lifecycle — formatted in MarkdownV2 with a plain-text fallback. | | ✅ | One-tap approvals | Inline Approve / Reject buttons on every approval. Act without leaving Telegram. | | 💬 | Bot commands | /status, /issues, /agents, /approve, /connect, /topics, /acp, /commands, and more. | | ↩️ | Reply routing | Reply to any notification and it becomes an issue comment or escalation reply. | | 🧵 | Multi-agent threads | Up to 5 agents per thread with @mention routing, handoff, and discuss loops. | | 🆘 | Human-in-the-loop escalation | Agents escalate when stuck; you get context, a suggested reply, and action buttons. | | 🎙️ | Media-to-task pipeline | Voice, audio, video, photos, and documents routed to agents — with Whisper transcription. | | 🗂️ | Forum topic routing | Map Telegram forum topics to Paperclip projects so updates land in the right place. | | 📊 | Daily digest | Once, twice, or three times a day: completions, active agents, and open work. | | ⚙️ | Custom workflow commands | Import multi-step workflows as your own /slash commands. | | 🤖 | Proactive suggestions | Agents register watches (e.g. overdue invoice) that fire suggestions when conditions hit. |

➡️ Full feature reference: see the documentation below.


Quick start (5 minutes)

1. Create a Telegram bot

Message @BotFather, run /newbot, and copy the bot token.

2. Find your chat ID

Send any message to your new bot, then run:

curl "https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates"

Copy the chat.id from the response.

3. Install the plugin

npm install @odience-network/paperclip-plugin-telegram-enhanced

Or register it with a running Paperclip instance:

curl -X POST http://127.0.0.1:3100/api/plugins/install \
  -H "Content-Type: application/json" \
  -d '{"packageName":"@odience-network/paperclip-plugin-telegram-enhanced"}'

4. Store your bot token as a Paperclip secret

Create a company secret for the token and copy its UUID — you'll reference it instead of pasting the raw token.

curl -X POST http://127.0.0.1:3100/api/companies/{companyId}/secrets \
  -H "Content-Type: application/json" \
  -d '{"name":"telegram-bot-token","value":"<your-bot-token>","provider":"local_encrypted"}'

5. Configure the plugin

Set telegramBotTokenRef to the secret UUID and defaultChatId to your chat ID. Save, and you'll start receiving notifications.

📘 Need the detailed walkthrough? Read the Getting Started guide — it covers the settings UI, board access for approvals, and security allowlists.


Documentation

| Guide | What's inside | |-------|---------------| | Getting Started | Step-by-step setup, secrets, board access, and security allowlists. | | Configuration Reference | Every config setting, default, and what it does. | | Notifications & Routing | Notification types, per-type chats, forum topics, and digests. | | Bot Commands | Full command reference with examples. | | Agent Tools | Escalation, multi-agent threads, handoff/discuss, and watches. | | Workflow Commands | Build and run your own multi-step /slash commands. | | Troubleshooting | Common issues, compatibility notes, and fixes. |


Configuration at a glance

Only one setting is required to get started:

| Setting | Required | Description | |---------|----------|-------------| | telegramBotTokenRef | ✅ Yes | Secret UUID for your bot token. | | defaultChatId | No | Fallback chat for notifications. | | digestMode | No | off, daily, bidaily, or tridaily. | | enableCommands | No | Enable bot commands (default: true). | | enableInbound | No | Route Telegram replies back to Paperclip (default: true). |

See the full configuration reference for all 30+ settings, including per-type chat routing, escalation timeouts, media intake, and proactive-suggestion limits.


Agent tools

Your Paperclip agents can call these tools to drive Telegram interactions:

| Tool | Description | |------|-------------| | escalate_to_human | Escalate a conversation to a human when confidence is low. | | handoff_to_agent | Hand off work to another agent in the thread. | | discuss_with_agent | Start a back-and-forth conversation with another agent. | | register_watch | Register a proactive watch that monitors entities and sends suggestions. | | send_to_telegram | Send text or a Markdown document to a chat, with optional project-key file routing. |

Details and parameters are in the Agent Tools guide.


Compatibility note (paperclipai master)

Running paperclipai master after #5429 (2026-05-09)? The new Secrets Manager temporarily disables plugin secret-ref UUIDs while a company-scoped plugin_config follow-up lands. Activation fails with Plugin secret references are disabled until company-scoped plugin config lands, and POST /api/plugins/:id/config returns HTTP 422 for configs containing secret-ref UUIDs (e.g. telegramBotTokenRef). This is intentional fail-closed mitigation (PAP-2394). Until the follow-up ships, pin to the last paperclipai release before #5429.

See Troubleshooting for the full background and workaround.


Why this plugin

Built on the Paperclip plugin SDK and the domain event bridge (PR #909), this plugin goes well beyond push-only notifications:

| Capability | Push-only (PR #407) | This plugin | |------------|:--:|:--| | Push notifications | ✅ | ✅ | | Receive messages | ❌ | ✅ | | Bot commands | ❌ | /status, /issues, /agents, /approve, /topics, /acp, /commands | | Inline buttons | ❌ | Approve/reject on approvals, escalations, handoffs | | Reply routing | ❌ | Replies become issue comments | | Forum topic routing | ❌ | Topic = project | | Daily digest | ❌ | ✅ | | HITL escalation | ❌ | Dedicated channel with suggested replies + timeout | | Multi-agent threads | ❌ | Up to 5 agents, @mention routing, handoff, discuss | | Media pipeline | ❌ | Voice transcription, Brief Agent intake | | Custom commands | ❌ | Importable multi-step workflows | | Proactive suggestions | ❌ | Watch conditions with built-in templates | | Packaging | Monorepo example | Standalone npm package |

It's the plugin Paperclip users asked for the day the plugin system shipped — "let me know when it's done" — and a whole lot more.


Contributing

Issues and pull requests are welcome at github.com/odience-network/paperclip-plugin-telegram-enhanced. This is an enhanced fork of mvanhorn/paperclip-plugin-telegram; upstream improvements are integrated with attribution.

pnpm install      # install dependencies
pnpm typecheck    # type-check
pnpm test         # tests across notifications, approvals, escalation, media, and commands
pnpm build        # compile

Releases

Publishing to npm is release-gated, not push-gated. The Publish to npm workflow runs only when a GitHub Release is published (or via manual workflow_dispatch), and no-ops unless the NPM_TOKEN secret is configured. To cut a release:

  1. Bump version in package.json (and PLUGIN_VERSION in src/constants.ts).
  2. Merge to main.
  3. Publish a GitHub Release tagged vX.Y.Z.

The workflow skips automatically if the version is already on npm.


Credits

  • @MatB57 — escalation channel concept, the "Chat OS" vision for bidirectional agent command centers, and the HITL suggested-reply flow.
  • @leeknowsai — worker bootstrap patterns adapted from the Discord plugin.
  • Inspired by OpenClaw's Telegram integration (grammY, bidirectional messaging, inline buttons), adapted for the Paperclip plugin SDK.

License

MIT