Spaces:
Running
Running
Update chatbot/plugins/join_request.py
Browse files
chatbot/plugins/join_request.py
CHANGED
@@ -353,10 +353,12 @@ async def refresh_captcha_callback(client: Client, cb: CallbackQuery):
|
|
353 |
logger.info(f"Old CAPTCHA for user {user_id} has been removed.")
|
354 |
captcha_text, img_path, choices, correct_answer = generate_captcha(user_id, mode)
|
355 |
captcha_texts[user_id] = {
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
|
|
|
|
360 |
}
|
361 |
logger.info(f"Generated new {mode} CAPTCHA for user {user_id}: {captcha_text}")
|
362 |
buttons = [
|
|
|
353 |
logger.info(f"Old CAPTCHA for user {user_id} has been removed.")
|
354 |
captcha_text, img_path, choices, correct_answer = generate_captcha(user_id, mode)
|
355 |
captcha_texts[user_id] = {
|
356 |
+
"captcha_text": captcha_text,
|
357 |
+
"correct_answer": correct_answer,
|
358 |
+
"chat_id": captcha_texts[user_id]["chat_id"],
|
359 |
+
"chat_link": captcha_texts[user_id]["chat_link"],
|
360 |
+
"first_name": captcha_texts[user_id]["first_name"]
|
361 |
+
|
362 |
}
|
363 |
logger.info(f"Generated new {mode} CAPTCHA for user {user_id}: {captcha_text}")
|
364 |
buttons = [
|