![grammY](/web/20220704152136im_/https://grammy.dev/Y.png)
grammY
The Telegram Bot Framework.
Easy to Use
grammY makes creating Telegram bots so simple you already know how to do it.
Flexible
grammY is open and can be extended by plugins to make it fit exactly your needs.
Scalable
grammY has you covered when your bot gets popular and the traffic increases.
… think of the whY.
Quickstart
Bots are written in Type
npm install grammy
and paste the following code:
import { Bot } from "grammy";
const bot = new Bot(""); // <-- put your bot token here (https://t.me/BotFather)
// Reply to any message with "Hi there!".
bot.on("message", (ctx) => ctx.reply("Hi there!"));
bot.start();
const { Bot } = require("grammy");
const bot = new Bot(""); // <-- put your bot token here (https://t.me/BotFather)
// Reply to any message with "Hi there!".
bot.on("message", (ctx) => ctx.reply("Hi there!"));
bot.start();
import { Bot } from "https://deno.land/x/[email protected]/mod.ts";
const bot = new Bot(""); // <-- put your bot token here (https://t.me/BotFather)
// Reply to any message with "Hi there!".
bot.on("message", (ctx) => ctx.reply("Hi there!"));
bot.start();
Works! 🎉
grammY supports the Telegram Bot API 6.1 which was released on June 20, 2022. (Last highlight: Telegram Premium)