0.2.3 • Published 8 years ago
botbuilder-wechat v0.2.3
Microsoft Bot Builder Wechat Integration
Connect your Bot to your Wechat Account!
Requirements
This bot requires a Wechat Service Account with Server Callback Messages enabled.
Get started
Step 1: Install using npm npm install botbuilder-wechat
Step 2: Initialize Wechat Bot
var wechatBotBuilder = require('botbuilder-wechat');
var bot = new wechatBotBuilder.WechatBot({
wechatAppId: 'wxa28b834343434',
wechatSecret: '96e1fd0e72ff4343434',
wechatToken: 'asdasd33'
});
Step 3: Integrate into your express like middleware
app.use('/wc', bot.getWechatCallbackHandler());
A fully working sample can be found in sample.js