Answer the question
In order to leave comments, you need to log in
How to implement hunger in telegram bot python (telebot, sqlite3, time)?
Please help, I want to make it so that when a user registers in the telegram bot and clicks on the status of his pet, then from now on, for example, every 10 minutes there will be - 1xp.
Answer the question
In order to leave comments, you need to log in
You are using an async function, outside of an async function.
Either use aiogram (As I know the asynchronous library for telegram)
Or remove async and await asyncio.sleep(5) replace with time.sleep(5)
def minus_heal(message):
while True:
time.sleep(5)
...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question