From 28c60a94f3bf2998f07bc7089d5266d510835613 Mon Sep 17 00:00:00 2001 From: huker667 Date: Thu, 9 Jul 2026 16:23:48 +0300 Subject: add multipoll support --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 ) -- cgit v1.3.1