diff --git a/main.py b/main.py index 14c1ba2..e54c349 100644 --- a/main.py +++ b/main.py @@ -343,7 +343,7 @@ async def guest_middleware(handler, event, data): correct_option = options[0] correct_option_id = None is_anon = True - allow_multiple_answers = False + allows_multiple_answers = False if event.guest_message: mid = user_id @@ -359,10 +359,10 @@ async def guest_middleware(handler, event, data): correct_option_id = options.index(correct_option) elif poll_type == "poll": poll_type = "regular" - allow_multiple_answers = False + allows_multiple_answers = False elif poll_type == "multipoll": poll_type = "regular" - allow_multiple_answers = True + allows_multiple_answers = True else: poll_type = "regular" @@ -374,6 +374,7 @@ async def guest_middleware(handler, event, data): options=options, is_anonymous=is_anon, poll_type=poll_type, + allows_multiple_answers=allows_multiple_answers, correct_option_id=correct_option_id, user_id=mid )