telegraf
Modern Telegram Bot Framework
Last updated a month ago by dotcypress .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install telegraf 
SYNC missed versions from official npm registry.

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

Introduction

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

Installation

$ npm install telegraf

or using yarn:

$ yarn add telegraf

Documentation

Telegraf developer docs

Examples

const { Telegraf } = require('telegraf')

const bot = new Telegraf(process.env.BOT_TOKEN)
bot.start((ctx) => ctx.reply('Welcome!'))
bot.help((ctx) => ctx.reply('Send me a sticker'))
bot.on('sticker', (ctx) => ctx.reply('????'))
bot.hears('hi', (ctx) => ctx.reply('Hey there'))
bot.launch()
const { Telegraf } = require('telegraf')

const bot = new Telegraf(process.env.BOT_TOKEN)
bot.command('oldschool', (ctx) => ctx.reply('Hello'))
bot.command('modern', ({ reply }) => reply('Yo'))
bot.command('hipster', Telegraf.reply('λ'))
bot.launch()

There's some cool examples too.

Current Tags

  • 3.34.0-beta.2                                ...           beta (6 months ago)
  • 3.38.0                                ...           latest (a month ago)
  • 3.10.0                                ...           next (3 years ago)

166 Versions

  • 3.38.0                                ...           a month ago
  • 3.37.0                                ...           2 months ago
  • 3.36.0                                ...           4 months ago
  • 3.35.0                                ...           5 months ago
  • 3.34.1                                ...           6 months ago
  • 3.34.0                                ...           6 months ago
  • 3.34.0-beta.2                                ...           6 months ago
  • 3.34.0-beta.1                                ...           6 months ago
  • 3.34.0-beta.0                                ...           6 months ago
  • 3.33.3                                ...           7 months ago
  • 3.33.2                                ...           7 months ago
  • 3.33.1                                ...           7 months ago
  • 3.33.0                                ...           8 months ago
  • 3.32.0                                ...           10 months ago
  • 3.30.1                                ...           a year ago
  • 3.30.0                                ...           a year ago
  • 3.29.0                                ...           a year ago
  • 3.28.0                                ...           a year ago
  • 3.27.1                                ...           a year ago
  • 3.27.0                                ...           a year ago
  • 3.26.0                                ...           a year ago
  • 3.25.5                                ...           a year ago
  • 3.25.4                                ...           a year ago
  • 3.25.3                                ...           a year ago
  • 3.25.2                                ...           a year ago
  • 3.25.1                                ...           a year ago
  • 3.25.0                                ...           2 years ago
  • 3.24.1                                ...           2 years ago
  • 3.24.0                                ...           2 years ago
  • 3.23.1                                ...           2 years ago
  • 3.23.0                                ...           2 years ago
  • 3.22.2                                ...           2 years ago
  • 3.22.1                                ...           2 years ago
  • 3.22.0                                ...           2 years ago
  • 3.21.2                                ...           2 years ago
  • 3.21.1                                ...           2 years ago
  • 3.21.0                                ...           2 years ago
  • 3.20.0                                ...           2 years ago
  • 3.19.0                                ...           2 years ago
  • 3.18.0                                ...           2 years ago
  • 3.17.8                                ...           2 years ago
  • 3.17.7                                ...           2 years ago
  • 3.17.6                                ...           2 years ago
  • 3.17.5                                ...           2 years ago
  • 3.17.4                                ...           2 years ago
  • 3.17.3                                ...           2 years ago
  • 3.17.2                                ...           2 years ago
  • 3.17.1                                ...           2 years ago
  • 3.17.0                                ...           3 years ago
  • 3.16.4                                ...           3 years ago
  • 3.16.0                                ...           3 years ago
  • 3.16.3                                ...           3 years ago
  • 3.15.3                                ...           3 years ago
  • 3.15.2                                ...           3 years ago
  • 3.15.1                                ...           3 years ago
  • 3.15.0                                ...           3 years ago
  • 3.14.3                                ...           3 years ago
  • 3.14.1                                ...           3 years ago
  • 3.14.0                                ...           3 years ago
  • 3.13.0                                ...           3 years ago
  • 3.12.1                                ...           3 years ago
  • 3.12.0                                ...           3 years ago
  • 3.11.1                                ...           3 years ago
  • 3.10.1                                ...           3 years ago
  • 3.10.0                                ...           3 years ago
  • 3.9.0                                ...           3 years ago
  • 3.8.2                                ...           3 years ago
  • 3.8.1                                ...           3 years ago
  • 3.8.0                                ...           3 years ago
  • 3.7.4                                ...           3 years ago
  • 3.7.3                                ...           3 years ago
  • 3.7.2                                ...           3 years ago
  • 3.7.1                                ...           3 years ago
  • 3.7.0                                ...           3 years ago
  • 3.6.10                                ...           3 years ago
  • 3.6.9                                ...           3 years ago
  • 3.6.8                                ...           3 years ago
  • 3.6.7                                ...           3 years ago
  • 3.6.6                                ...           3 years ago
  • 3.6.5                                ...           3 years ago
  • 3.6.4                                ...           3 years ago
  • 3.6.3                                ...           3 years ago
  • 3.6.2                                ...           3 years ago
  • 3.6.1                                ...           3 years ago
  • 3.6.0                                ...           3 years ago
  • 3.5.2                                ...           4 years ago
  • 3.5.1                                ...           4 years ago
  • 3.5.0                                ...           4 years ago
  • 3.4.0                                ...           4 years ago
  • 3.3.1                                ...           4 years ago
  • 3.3.0                                ...           4 years ago
  • 3.2.3                                ...           4 years ago
  • 3.2.2                                ...           4 years ago
  • 3.2.1                                ...           4 years ago
  • 3.2.0                                ...           4 years ago
  • 3.1.0                                ...           4 years ago
  • 3.0.2                                ...           4 years ago
  • 3.0.1                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.9.2                                ...           4 years ago
  • 2.9.1                                ...           4 years ago
  • 2.9.0                                ...           4 years ago
  • 2.8.1                                ...           4 years ago
  • 2.8.0                                ...           4 years ago
  • 2.7.3                                ...           4 years ago
  • 2.7.2                                ...           4 years ago
  • 2.7.1                                ...           4 years ago
  • 2.7.0                                ...           4 years ago
  • 2.6.5                                ...           4 years ago
  • 2.6.4                                ...           4 years ago
  • 2.6.3                                ...           4 years ago
  • 2.6.2                                ...           4 years ago
  • 2.6.1                                ...           4 years ago
  • 2.6.0                                ...           4 years ago
  • 2.5.2                                ...           4 years ago
  • 2.5.1                                ...           4 years ago
  • 2.5.0                                ...           4 years ago
  • 2.4.3                                ...           4 years ago
  • 2.4.2                                ...           4 years ago
  • 2.4.1                                ...           4 years ago
  • 2.4.0                                ...           4 years ago
  • 2.3.3                                ...           4 years ago
  • 2.3.2                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.2                                ...           4 years ago
  • 2.2.1                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.1                                ...           4 years ago
  • 2.1.0                                ...           4 years ago
  • 2.0.3                                ...           4 years ago
  • 2.0.2                                ...           4 years ago
  • 2.0.1                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 2.0.0-alpha.0                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 0.9.7                                ...           4 years ago
  • 0.9.6                                ...           4 years ago
  • 0.9.5                                ...           4 years ago
  • 0.9.4                                ...           4 years ago
  • 0.9.3                                ...           4 years ago
  • 0.9.2                                ...           4 years ago
  • 0.9.1                                ...           4 years ago
  • 0.9.0                                ...           4 years ago
  • 0.8.0                                ...           4 years ago
  • 0.7.0                                ...           4 years ago
  • 0.6.3                                ...           4 years ago
  • 0.6.2                                ...           4 years ago
  • 0.6.1                                ...           4 years ago
  • 0.6.0                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.4                                ...           4 years ago
  • 0.4.3                                ...           4 years ago
  • 0.4.2                                ...           4 years ago
  • 0.4.1                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.2                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
  • 0.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 138
This Month 138
Last Day 138
Last Week 556
Last Month 2,372
Dependencies (6)
Dev Dependencies (12)
Dependents (112)

Copyright 2014 - 2017 © taobao.org |