init new bot

This commit is contained in:
ada-dmitry
2024-08-26 20:22:16 +03:00
parent 8208bd226e
commit 564398d0dd
1675 changed files with 164420 additions and 115 deletions
+19
View File
@@ -0,0 +1,19 @@
from abc import ABC
from typing import List
from aiogram.handlers import BaseHandler
from aiogram.types import Poll, PollOption
class PollHandler(BaseHandler[Poll], ABC):
"""
Base class for poll handlers
"""
@property
def question(self) -> str:
return self.event.question
@property
def options(self) -> List[PollOption]:
return self.event.options