randydev commited on
Commit
864a0ae
·
verified ·
1 Parent(s): 52ec611

Update chatbot/plugins/join_request.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/join_request.py +1 -2
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(open(img_path, "rb")),
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: