bootbot
bootbot copied to clipboard
Requests POST / 404 Not Found
Hi! I'm using bootbot and Ngrok (for https). When I send message to my page - Ngrok receiving request, but bootbot doesn't work Here is my demo code : `'use strict'; const BootBot = require('bootbot'); let config = require('./config.json');
console.log('config -> ', config)
const bot = new BootBot({ accessToken: config.accessToken, verifyToken: config.verifyToken, appSecret: config.appSecret });
bot.on('message', (payload, chat) => {
const text = payload.message.text;
console.log(The user said: ${text}
);
});
bot.hear(['hello', 'hi', /hey( there)?/i], (payload, chat) => { console.log('The user said "hello", "hi", "hey", or "hey there"'); });
bot.start();`
I'm using node v8.11.3 , faceBook api calls v3.2, and I have check tokens and app secrets twice
Here is screeshot from Ngrok https://drive.google.com/file/d/1I8IKKGheSLAQPflxGTUkhuO7cs3l5svW/view?usp=sharing