You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a telegram bot that works great but I need to connect sessions saved locally. I connect middleware first. And my project stops working and I don't see any errors in the console
The text was updated successfully, but these errors were encountered:
Please, provide more technical info about your environment - versions of nodejs, npm, OS, contents of package.json, etc.
Also, it would be great if you could create a repository and upload your code to it, which I could download and test on my own to try to catch your bug.
I have the same problem, I added the exact path to the file and the server stopped crashing.
this.instance
.use(
new LocalSession({
database: '../../session_db.json',
storage: LocalSession.storageFileAsync,
}),
)
.middleware();
Usage:
bot.use((new LocalSession({ database: 'sessions.json' })).middleware())
I have a telegram bot that works great but I need to connect sessions saved locally. I connect middleware first. And my project stops working and I don't see any errors in the console
The text was updated successfully, but these errors were encountered: