kozalosev / textUtilsBot

A simple bot for Telegram, that has some useful handlers of inline queries to make text conversions.
https://t.me/textUtilsBot
MIT License
5 stars 1 forks source link

Collect statistics #11

Open kozalosev opened 4 years ago

kozalosev commented 4 years ago

I want to know how many users are getting help by the bot. And where are they from.

Besides, collecting user IDs I would be able to send informational messages. I promise that this functionality won't be used for selling users' personal data or sending any advertisement messages.

kozalosev commented 4 years ago

There are some important questions to think of before starting the work:

I think I need two tables/documents:

The relational model fits well but what about object mapping? Currently, the bot uses SQLite, but if I'm going to use this functionality for another bot it would be better to use a standalone database like PostgreSQL, wouldn't it?

I wish to take a break for some time and consider these things more carefully. So, this feature and #12 will be implemented in the next milestone.