Fix PollBot._on_poll_button_press

This commit is contained in:
AlberLC
2023-08-18 06:32:05 +02:00
parent 20592332a2
commit 9813064674

View File

@@ -185,7 +185,7 @@ class PollBot(MultiBot, ABC):
poll_data = message.data['poll']
if not poll_data['is_active']:
if not poll_data['is_active'] or not message.buttons_info.pressed_button or not message.buttons_info.presser_user:
return
presser_id = message.buttons_info.presser_user.id