Spaces:
Running
Running
Update chatbot/plugins/join_request.py
Browse files
chatbot/plugins/join_request.py
CHANGED
@@ -175,7 +175,10 @@ async def refresh_captcha_callback(client: Client, cb: CallbackQuery):
|
|
175 |
]
|
176 |
)
|
177 |
await cb.edit_message_media(
|
178 |
-
media=InputMediaPhoto(
|
|
|
|
|
|
|
179 |
reply_markup=keyboard
|
180 |
)
|
181 |
os.remove(img_path)
|
@@ -201,9 +204,11 @@ async def verify_captcha_multiple_choice_callback(client: Client, cb: CallbackQu
|
|
201 |
logger.info(f"User {user_id} selected CAPTCHA: {user_choice} (Expected: {correct_captcha})")
|
202 |
if user_choice == correct_captcha:
|
203 |
hacker_image = thanks_hacker_by_randydev()
|
204 |
-
await cb.answer("✅ CAPTCHA verification successful!", show_alert=True)
|
205 |
await cb.edit_message_media(
|
206 |
-
media=InputMediaPhoto(
|
|
|
|
|
|
|
207 |
reply_markup=create_button_join_group(captcha_texts.get("chat_username"))
|
208 |
)
|
209 |
logger.info(f"User {user_id} successfully verified CAPTCHA.")
|
|
|
175 |
]
|
176 |
)
|
177 |
await cb.edit_message_media(
|
178 |
+
media=InputMediaPhoto(
|
179 |
+
img_path,
|
180 |
+
caption=f"❗️ **Verify that you are human!**\n\n❔ Please select the correct CAPTCHA text shown in the image below.",
|
181 |
+
),
|
182 |
reply_markup=keyboard
|
183 |
)
|
184 |
os.remove(img_path)
|
|
|
204 |
logger.info(f"User {user_id} selected CAPTCHA: {user_choice} (Expected: {correct_captcha})")
|
205 |
if user_choice == correct_captcha:
|
206 |
hacker_image = thanks_hacker_by_randydev()
|
|
|
207 |
await cb.edit_message_media(
|
208 |
+
media=InputMediaPhoto(
|
209 |
+
hacker_image,
|
210 |
+
caption="✅ CAPTCHA verification successful!"
|
211 |
+
),
|
212 |
reply_markup=create_button_join_group(captcha_texts.get("chat_username"))
|
213 |
)
|
214 |
logger.info(f"User {user_id} successfully verified CAPTCHA.")
|