Bot for sales of dumplings
In this article, we'll create a simple Telegram bot for accepting payments in TON.
🦄 What it looks like
At the end of the tutorial, you will write a beautiful bot that will be able to accept payments for your product directly in TON.
The bot will look like this:
📖 What you'll learn
You'll learn how to:
- Create a Telegram bot in NodeJS using grammY
- Work with public TON Center API
Why do we use grammY? Because grammY is a modern, young, high-level framework for comfortable & fast development of telegram bots on JS/TS/Deno, in addition to this grammY has great documentation and an active community that can always help you.
✍️ What you need to get started
Install NodeJS if you haven't yet.
Also you need these libraries:
- grammy
- ton
- dotenv
You can install them with one command in the terminal.
- npm
- Yarn
- pnpm
npm install ton dotenv grammy @grammyjs/conversations
yarn add ton dotenv grammy @grammyjs/conversations
pnpm add ton dotenv grammy @grammyjs/conversations