Closed arealibusadrealiora closed 3 weeks ago
So, the problem is that after select_language, the main_menu function then calls start again. And it only happens on the first run. Can't see why yet.
It happens only on the very-very first run for the user -- e.g. for the new user. For example, if you will stop the bot.py, delete the database, then start the bot.py again -- you won't see this issue, it will work correctly: recognizing that the user doesn't have any saved settings and will ask the user for their preferred language only once.
To reproduce the issue, you can do the following:
After /start command, the user is asked for their preferred language. But for some reason, they're getting asked twice. Most likely the problem is with /start command processing.