tgboter
v0.1.12
Published
π Telegram Bot Framework
Downloads
17
Maintainers
Readme
tgboter.js
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.
Features
- 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
Installation
$ npm i tgboter --save
Examples
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()