Charca / bootbot

Facebook Messenger Bot Framework for Node.js
MIT License
970 stars 252 forks source link

i18n and sessions #198

Open d3vvcom opened 3 years ago

d3vvcom commented 3 years ago

Hello, how connect i18n and session? BootBot class doesn't support middleware(.use())? Thanks for the help

qxb3 commented 1 year ago

I may be too far late but you can just take the express instance using bot.app and do it like this:

const bot = new BootBot({
  ...
}) 

bot.app.use(...)