T
T
tesla33IO2020-12-06 14:05:09
Python
tesla33IO, 2020-12-06 14:05:09

How to make time check in telegram bot in python?

And so, there is a bot, it collects data through questionnaires. How to make it so that if the user started filling out the questionnaire, but did not finish it, then 3 hours after the start he received a message - "Is everything ok? You did not completely fill out the questionnaire "

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Amoralny, 2020-12-06
@tesla33IO

Hm. Alternatively, you can take asyncio tasks and implement them through them.
In my bot, this is how auto-messages are implemented.

https://docs.python.org/3/library/asyncio-task.htm...
https://docs.python.org/3/library/asyncio-task.htm... Submit
a form, create a Task object , who sleeps for 3 hours, after which he checks the questionnaire

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question