Closed Piotrovskyi closed 4 years ago
I want to be able to run bot.launch() after mongo connection initialization
TelegrafMongoSession.setup(bot, process.env.DB_URL).then(() => { bot.launch(); })
Lack of such opportunity lead to errors like TypeError: Cannot read property 'middleware' of undefined This especially happens to me with Google Cloud Functions
TypeError: Cannot read property 'middleware' of undefined
I want to be able to run bot.launch() after mongo connection initialization
TelegrafMongoSession.setup(bot, process.env.DB_URL).then(() => { bot.launch(); })
Lack of such opportunity lead to errors like
TypeError: Cannot read property 'middleware' of undefined
This especially happens to me with Google Cloud Functions