grammy.dev Open in urlscan Pro
2a05:d014:275:cb01::c8  Public Scan

URL: https://grammy.dev/
Submission: On October 05 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

Skip to content
grammY
SearchK
Main NavigationGuide
Learn

Guide

Overview
Introduction
Getting Started
Sending and Receiving Messages
Context
Bot API
Filter Queries and bot.on()
Commands
Reactions
Middleware
Error Handling
File Handling
Games
Long Polling vs. Webhooks

Advanced

Overview
Middleware Redux
Scaling Up I: Large Codebase
Scaling Up II: High Load
Scaling Up III: Reliability
Scaling Up IV: Flood Limits
Bot API Transformers
Telegram Business
Proxy Support
Deployment Checklist
Plugins

Introduction

About Plugins
How to Write a Plugin

Built-in

Sessions and Storing Data
Inline and Custom Keyboards
Media Groups
Inline Queries

Official

Conversations (conversations)
Interactive Menus (menu)
Stateless Question (stateless-question)
Concurrency (runner)
Hydration (hydrate)
Retry API Requests (auto-retry)
Flood Control (transformer-throttler)
Rate Limit Users (ratelimiter)
Files (files)
Internationalization (i18n)
Internationalization (fluent)
Router (router)
Emoji (emoji)
Parse Mode (parse-mode)
Chat Members (chat-members)

Third-party

Console Time
Useful Middleware
Autoquote
[Submit your PR!]
Examples

Examples

Awesome grammY
Example Bots Repository
Resources

grammY

About grammY
Community Chat (English)
Community Chat (Russian)
News
Twitter
FAQ
Comparison to Other Frameworks

Telegram

Introduction for Developers
Bots FAQ
Bot Features
Bot API Reference
Example Updates

Tools

telegram.tools
VS Code Extension
Hosting

Overview

Comparison

Tutorials

Virtual Private Server (VPS)
Deno Deploy
Supabase Edge Functions
Cloudflare Workers (Deno)
Cloudflare Workers (Node.js)
Fly
Firebase Functions
Vercel
Zeabur (Deno)
Zeabur (Node.js)
Heroku
API Reference

English

Español
Indonesia
Українська
简体中文
Русский

Telegram

Appearance


Telegram



GRAMMY

The Telegram Bot Framework.

… powered by obsession.

Get Started
Documentation



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.


QUICKSTART

Bots are written in TypeScript (or JavaScript) and run on various platforms,
including Node.js.

npm install grammy and paste the following code:

TypeScriptJavaScriptDeno
ts

import { Bot } from "grammy";

const bot = new Bot(""); // <-- put your bot token between the "" (https://t.me/BotFather)

// Reply to any message with "Hi there!".
bot.on("message", (ctx) => ctx.reply("Hi there!"));

bot.start();

1
2
3
4
5
6
7
8

js

const { Bot } = require("grammy");

const bot = new Bot(""); // <-- put your bot token between the "" (https://t.me/BotFather)

// Reply to any message with "Hi there!".
bot.on("message", (ctx) => ctx.reply("Hi there!"));

bot.start();

1
2
3
4
5
6
7
8

ts

import { Bot } from "https://deno.land/x/grammy@v1.30.0/mod.ts";

const bot = new Bot(""); // <-- put your bot token between the "" (https://t.me/BotFather)

// Reply to any message with "Hi there!".
bot.on("message", (ctx) => ctx.reply("Hi there!"));

bot.start();

1
2
3
4
5
6
7
8


Works! 🎉

--------------------------------------------------------------------------------

Thank you, NDA, for being a contributor to grammY.

© 2021-2024 · grammY supports Telegram Bot API 7.10 which was released on
September 6, 2024. (Last highlight: Purchased Media Updates and Star Giveaways)