🐛 Fix Exception that 'Question' object is not subscriptable

This commit is contained in:
洛水居室 2023-03-14 09:53:35 +08:00
parent 01727ca94b
commit 393c410821
No known key found for this signature in database
GPG Key ID: C9DE87DA724B88FC

View File

@ -324,7 +324,7 @@ class GroupCaptcha(Plugin):
[
InlineKeyboardButton(
answer.text,
callback_data=f"auth_challenge|{user.id}|{question['question_id']}|{answer['answer_id']}",
callback_data=f"auth_challenge|{user.id}|{question.question_id}|{answer.answer_id}",
)
]
for answer in question.answers