@captcha_manager.on_captcha_correct
def on_correct(captcha):
verno=bot.send_message(captcha.chat.id, "✅ : Congrats! You solved the CAPTCHA! /menu")
captcha_manager.delete_captcha(bot, captcha)
bot.register_next_step_handler(verno, start)
@captcha_manager.on_captcha_not_correct
def on_not_correct(captcha):
neverno=bot.send_message(captcha.chat.id, f"❌ : You failed solving the CAPTCHA!")
captcha_manager.delete_captcha(bot, captcha)
@captcha_manager.on_captcha_timeout
def on_timeout(captcha):
vremya=bot.send_message(captcha.chat.id, f"❌ : You did not solve the CAPTCHA!")
captcha_manager.delete_captcha(bot, captcha)
@bot.message_handler(commands=['start'])
def test_captcha(message):
captcha_manager.send_new_captcha(bot, message.chat, message.from_user)
@bot.callback_query_handler(func=lambda callback: True)
def on_callback(callback):
captcha_manager.update_captcha(bot, callback)
@captcha_manager.on_captcha_correct
def on_correct(captcha):
verno=bot.send_message(captcha.chat.id, "✅ : Congrats! You solved the CAPTCHA! /menu")
captcha_manager.delete_captcha(bot, captcha)
bot.register_next_step_handler(verno, start)
@captcha_manager.on_captcha_not_correct
def on_not_correct(captcha):
neverno=bot.send_message(captcha.chat.id, f"❌ : You failed solving the CAPTCHA!")
captcha_manager.delete_captcha(bot, captcha)
@captcha_manager.on_captcha_timeout
def on_timeout(captcha):
vremya=bot.send_message(captcha.chat.id, f"❌ : You did not solve the CAPTCHA!")
captcha_manager.delete_captcha(bot, captcha)