Skip to main content


The Telegram Bot Framework.
Very Popular
Go to Latest
import * as grammy from "";


This is the single most important class of grammY. It represents your bot.

This error is thrown when middleware throws. It simply wraps the original error (accessible via the error property), but also provides access to the respective context object that was processed while the error occurred.


Options to pass to the bot when creating it.

Options that can be specified when running the bot via simple long polling.

Type Aliases

Error handler that can be installed on a bot to catch error thrown by middleware.