Answer the question
In order to leave comments, you need to log in
How to make timer in python with validation(pytelegrambotapi)?
I have a method that handles buttons:
@bot.message_handler(content_types=['text'])
def buttons(message):
if message.chat.type == 'private':
if message.text == 'Задание 1':
<..Запуск таймера, 30 секунд..>
<..Результат..>
elif message.text == 'Задание 2':
<..Запуск таймера, 60 секунд..>
<..Результат..>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question