Forums

Not sending message if the user is inactive with Webhook

Hello I have provided a Telegram bot that takes an exam from users. I have set this bot on Webhook. The duration of the exam in the bot is defined as one hour, and if the user does not answer the questions within one hour after the start of the test, a message includes aware of end of the exam will be send to user. This bot runs well in VScode. However, when running on Webhook, the user may not complete the test, but the bot will give the user a message about the completion of the exam after more than one hour (for example, eight hours or four hours or two hours). Does anyone know what is the cause and how to fix it?

Could you please provide some details on how you are running your bot on PythonAnywhere and any logs that you might have?