Polygram (v0.9.0, active development) is a Telegram daemon designed for Claude Code that preserves the OpenClaw per-chat session model. It provides a migration path for OpenClaw users moving to Claude Code. Key features include multi-bot support, SQLite-based transcript and history storage, and a per-chat session model that maintains separate contexts for each Telegram chat. Built for Node.js >=22, it integrates directly with Claude Code to handle Telegram interactions without losing session state. Unlike generic Telegram bots, Polygram is purpose-built for AI-assisted chat workflows, ensuring continuity between conversations.
npm install polygramNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the Polygram daemon with a Telegram bot token and SQLite storage, then starts the daemon and handles graceful shutdown.
Use 'import' syntax and ensure 'type': 'module' in package.json, or use .mjs extension.
Always validate the token before calling start(). Example: if (!botToken) throw new Error('TELEGRAM_BOT_TOKEN required');Always provide a storage path: storage: { type: 'sqlite', path: '/your/path/db.sqlite' }Run 'which claude' to verify path, then set claudeCode to that full path.
Run npm install polygram (or yarn add polygram).
Switch to ES module import: import { Polygram } from 'polygram'Add "type": "module" to your package.json or rename file to .mjs.
No dependency data recorded yet.