randydev commited on
Commit
67a8842
·
verified ·
1 Parent(s): ee2019a

Update chatbot/plugins/join_request.py

Browse files
Files changed (1) hide show
  1. chatbot/plugins/join_request.py +1 -1
chatbot/plugins/join_request.py CHANGED
@@ -243,7 +243,7 @@ async def join_request(client: Client, event: ChatJoinRequest):
243
  captcha_texts["chat_link"] = chat_link
244
  buttons = []
245
  for choice in choices:
246
- buttons.append([InlineKeyboardButton(choice, callback_data=f"verify_{user_id}_{choice}")])
247
  buttons.append([
248
  InlineKeyboardButton("🔄 Refresh CAPTCHA", callback_data="refresh_captcha"),
249
  InlineKeyboardButton("❌ Cancel", callback_data="cancel_captcha")
 
243
  captcha_texts["chat_link"] = chat_link
244
  buttons = []
245
  for choice in choices:
246
+ buttons.append([InlineKeyboardButton(choice, callback_data=f"verify_{event.from_user.id}_{choice}")])
247
  buttons.append([
248
  InlineKeyboardButton("🔄 Refresh CAPTCHA", callback_data="refresh_captcha"),
249
  InlineKeyboardButton("❌ Cancel", callback_data="cancel_captcha")