0.1.6 • Published 7 years ago

mithra v0.1.6

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

Telegraf Bot API Version NPM Version node bitHound Build Status js-standard-style

This is a fork of Telegraf with added express capabilities to WebHooks

Installation

$ npm install mithra --save

Quick start

Step-by-step instructions for building and deploying basic bot with 🤖 micro-bot (Telegraf high level wrapper).

Original Documentation

Telegraf developer docs

Example

const Mithra = require('mithra')

const app = new Mithra(process.env.BOT_TOKEN)

app.command('start', (ctx) => {
  console.log('start', ctx.from)
  ctx.reply('Welcome!')
})

app.hears('hi', (ctx) => ctx.reply('Hey there!'))

app.on('sticker', (ctx) => ctx.reply('👍'))

app.startPolling()

There's some cool examples.

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago