Closed orenlab closed 5 months ago
The issue is that the middleware in my setup is not processing the incoming request from the bot as expected.
I have explicitly removed the bot's ID from the list of allowed users, but the lock is still not working:
2024-05-20 16:37:37 - pyTMbot - INFO - Request from: **********, user_id *********. Accepted. [auth.py | pre_process:34] 2024-05-20 16:37:37 - pyTMbot - INFO - Start handling session. User: ********, user_id: *********, lang: ru, is_bot: False [memory_handler.py | get_memory:59] 2024-05-20 16:37:39 - pyTMbot - INFO - Start handling session. User: ******_bot, user_id: ************, lang: None, is_bot: True [swap_handler.py | swap:24]
At the same time, if you exclude the user ID from the list of allowed IDs, the lock will work correctly. In other words, it is only for bots.
2024-05-20 16:44:15 - pyTMbot - ERROR - Request from: ************ user_id ***********. Ignored. Reason: user_id not allowed (see BotSettings class in app/settings/bot_settings.py) [auth.py | pre_process:42]
Fixed in #47
The issue is that the middleware in my setup is not processing the incoming request from the bot as expected.
I have explicitly removed the bot's ID from the list of allowed users, but the lock is still not working:
At the same time, if you exclude the user ID from the list of allowed IDs, the lock will work correctly. In other words, it is only for bots.