Skip to content

Instantly share code, notes, and snippets.

@Kennyl
Kennyl / wit-telegram-bot.js
Created January 31, 2017 12:03 — forked from dotcypress/wit-telegram-bot.js
How to build Telegram bot with Wit.ai Bot Engine
// npm install telegraf telegraf-wit
var Telegraf = require('telegraf')
var TelegrafWit = require('telegraf-wit')
var app = new Telegraf(process.env.BOT_TOKEN)
var wit = new TelegrafWit(process.env.WIT_TOKEN)
app.use(Telegraf.memorySession())
//-----------------------------------------------//
// I2C / SPI LCD BACKPACK LIBRARY FOR SPARK CORE //
//===============================================//
// Copy this into a new application at: //
// https://www.spark.io/build and go nuts! //
// !! Pinouts on line 427 below !! //
//-----------------------------------------------//
// Technobly / BDub - Jan 16th 2014 //
//===============================================//