Telegram bot framework.
Bots are special Telegram accounts designed to handle messages automatically. Users can interact with bots by sending them command messages in private or group chats. These accounts serve as an interface for code running somewhere on your server.
- Full Telegram Bot API 4.4 support
- Telegram Payment Platform
- HTML5 Games
- Inline mode
- Incredibly fast
- now/Firebase/Glitch/Heroku/AWS Ξ»/Whatever ready
-
http/https/fastify/Connect.js/express.js
compatible webhooks - Easy to extend
$ npm i tgboter --save
const TGBoter = require('tgboter')
const bot = new TGBoter(process.env.BOT_TOKEN)
bot.start((ctx) => ctx.reply('welcome in the bot'))
bot.hears('hello', (ctx) => ctx.reply('hello here'))
bot.launch()