Spaces:
Running
Running
Update chatbot/plugins/join_request.py
Browse files
chatbot/plugins/join_request.py
CHANGED
@@ -92,7 +92,7 @@ async def refresh_captcha_callback(client: Client, cb: CallbackQuery):
|
|
92 |
]
|
93 |
)
|
94 |
await cb.edit_message_media(
|
95 |
-
media=InputMediaPhoto(
|
96 |
reply_markup=keyboard
|
97 |
)
|
98 |
os.remove(img_path)
|
@@ -112,7 +112,6 @@ async def handle_captcha_response(client: Client, message: Message):
|
|
112 |
user_id = message.from_user.id
|
113 |
user_response = message.text.strip().upper()
|
114 |
if user_id not in captcha_texts:
|
115 |
-
await message.reply("❗️ Please start the CAPTCHA verification first by join request again.")
|
116 |
return
|
117 |
correct_captcha = captcha_texts.get(user_id)
|
118 |
if user_response == correct_captcha:
|
|
|
92 |
]
|
93 |
)
|
94 |
await cb.edit_message_media(
|
95 |
+
media=InputMediaPhoto(img_path),
|
96 |
reply_markup=keyboard
|
97 |
)
|
98 |
os.remove(img_path)
|
|
|
112 |
user_id = message.from_user.id
|
113 |
user_response = message.text.strip().upper()
|
114 |
if user_id not in captcha_texts:
|
|
|
115 |
return
|
116 |
correct_captcha = captcha_texts.get(user_id)
|
117 |
if user_response == correct_captcha:
|