V
V
Voprosium2021-08-04 12:00:52
Python
Voprosium, 2021-08-04 12:00:52

How to send a message in aiogram at a specific time?

Hello! I have a question: I have a registration in the bot, and I need to be reminded that the user is registered 1 day before his registration time.
With what library or in what way can this be done?
I found the aioschedule library on the Internet , but I'm not entirely sure that it suits me, there was also an idea to implement a reminder class in which a while loop will be implemented in which the check is constantly going on.
How to do it better?
Thanks for the answer!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PYtitan, 2021-08-04
@PYtitan

You can
import time
def message():
time.sleep(%) #And here
is the message

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question