Answer the question
In order to leave comments, you need to log in
Telebot what to do?
a=random.randint(1,10)
b=random.randint(1,10)
c=a+b
sent=bot.send_message(message.chat.id, f'{a}+{b}')
bot.register_next_step_handler(sent, hello)
def hello(message):
message_to_save = message.text
global a, b, c
if message.text==c:
bot.send_message(message.chat.id, 'Верно')
else:
bot.send_message(message.chat.id, 'Неверный ответ')
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