Home / Docs / Introduction
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

Quick Installation

Bash
npm install zerogramjs

Basic 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