MongoPersistence icon indicating copy to clipboard operation
MongoPersistence copied to clipboard

Suggestion

Open mattewid opened this issue 2 years ago • 2 comments

Hello,

First I want to congratulate you for this project, because it is something very useful;

The suggestion I have is that in the MongoPersistence class you give the option to directly pass the mongodb collection. Without having to pass the connection uri, db name etc...

On a telegram bot that already uses a database connection, Creating a new connection through MongoPersistence might be unnecessary for some people.

But of course, it's good to leave both options integrated. The one that already is and the option to pass only the data collections.

That's all, I hope this makes sense to you :)

mattewid avatar Apr 16 '23 00:04 mattewid

Thank you very much for the suggestion, it is a nice idea and I think I will implement it.

Do you have any ideas on how to implement it or any suggestions that would help me do so?

For now I can't do it because I'm busy at university with deadlines, but as soon as I have time I'll read more suggestions here and implement this functionality

LucaSforza avatar Apr 17 '23 09:04 LucaSforza

I would love to build. I'll see if I can take some time and help you with that. 🙂

mattewid avatar Apr 17 '23 11:04 mattewid