if message.text == "a1":
bot.send_message(message.from_user.id, constant.answer_hi)
log(message, constant.answer_hi)
elif message.text == "a2":
bot.send_message(message.from_user.id, constant.answer_bye)
time.sleep(30) # засыпаем на две секунды
bot.send_message(message.from_user.id, '30 секунд прошли ')
log(message, constant.answer_bye)
else:
bot.send_message(message.from_user.id, "Привет, %s! " % message.from_user.first_name)
log(message, constant.answer_default)