nonebot2/packages/nonebot-adapter-feishu/nonebot/adapters/feishu/event.py
2021-07-01 07:59:50 +08:00

32 lines
688 B
Python

from pydantic import BaseModel
from nonebot.adapters import Event as BaseEvent
from .message import Message
class Event(BaseEvent):
def get_type(self) -> str:
raise NotImplementedError
def get_event_name(self) -> str:
raise NotImplementedError
def get_event_description(self) -> str:
return str(self.dict())
def get_message(self) -> Message:
raise NotImplementedError
def get_plaintext(self) -> str:
raise NotImplementedError
def get_user_id(self) -> str:
raise NotImplementedError
def get_session_id(self) -> str:
raise NotImplementedError
def is_tome(self) -> bool:
return False