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
+18
View File
@@ -0,0 +1,18 @@
from abc import ABC
from aiogram.handlers import BaseHandler
from aiogram.types import InlineQuery, User
class InlineQueryHandler(BaseHandler[InlineQuery], ABC):
"""
Base class for inline query handlers
"""
@property
def from_user(self) -> User:
return self.event.from_user
@property
def query(self) -> str:
return self.event.query