MongoDB Session Middleware for Telegraf
MongoDB powered session storage middlware for Telegraf.
Requirements
node >= 7.0
--harmony-async-await
If you want to contribute a transpiled distribution - pull requests welcome.
Installation
npm install telegraf-session-mongo --save
Example
const Telegraf = ;const MongoClient = ;const MongoSession = ; const app = processenvBOT_TOKEN; MongoClient;
Postscriptum
I hacked this together using telegraf-session-redis as inspiration. So it's lacking tests and a distribution compatible with Node < 7.0. Pull requests welcome.