tgboter

0.1.12Β β€’Β PublicΒ β€’Β Published

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.

Bot API Version js-standard-style

Features

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()

🌐 Source : Telegraf

Package Sidebar

Install

npm i tgboter

Weekly Downloads

10

Version

0.1.12

License

MIT

Unpacked Size

106 kB

Total Files

48

Last publish

Collaborators

  • iifiras