Dmitriy
Results
2
comments of
Dmitriy
I'm using a single file but creating multiple store instances to limit the scope of individual classes. Faced with the fact that deleted data was returned when trying to write...
In my case it was `const stream = fs.createReadStream(filename)` It was enough to close the stream after sending and the error disappeared `bot.sendPhoto(msg.chat.id, stream).finally(() => stream.close())`