grammY is a framework for creating Telegram bots. It can be used from TypeScript and JavaScript and runs on both Deno and Node.js.

grammY by example is a collection of annotated examples to help beginners get started with grammY, know about its various features and plugins available for it. If you're looking for a well-explained and complete guide, see the documentation.

Bots can be written in either JavaScript or TypeScript. All code in these examples is written in TypeScript, but all the examples also work in JavaScript.

As mentioned, grammY is powerful enough to run on Deno, Node and browser. All these example are written for the Deno runtime. But by changing the imports here and there, these can easily run on Node.js as well.

If you provide one, you can run the examples directly from your browser! You can get one by chatting with the Father of all Telegram bots, the BotFather on Telegram.

Source | License | Based on Deno by Example