Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
if is a statement, not a function. The obvious solution that comes to mind first is to put it in a loop. But perhaps your bot has its own event loop, so you need to use the recheck library API.
Dark options.
Up to the "Strategy" pattern,
everything depends on your code, which is not here
Throw this function into a separate thread and let it be executed there every minute
Put the function in which you have if in a separate thread if the data is not needed for users. If the data is for users, then you can just start processing, commands, text, photos, etc. You can run it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question