On this page
Introduction
ZerogramJS is a modern and elegant framework for creating Telegram bots with Node.js. Provides an intuitive and expressive API to handle commands, callbacks, middlewares and advanced downloads.
Version
ZerogramJS 2.1 - Compatible with Node.js 18+
Features
- API Simple - Clear and expressive syntax
- Modular - Well-organized architecture
- Downloads - Progress, batch and cancellation
- Markdown - Rich text formatting support
- FFmpeg - Thumbnails and video analysis
- Middleware - Express-style system
- Sessions - Automatic persistence
- Robust - Error handling and retries
Quick Installation
Bash
npm install zerogramjsBasic Example
JavaScript
const Zerogram = require('zerogramjs'); const bot = new Zerogram(API_ID, API_HASH, 'bot:TOKEN'); await bot.init(); bot.command('start', async (ctx) => { await ctx.reply('Hello!'); });
Next Steps
- Installation - How to install and configure
- Quick Start - First application
- API Reference - Complete reference