mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-30 22:46:40 +00:00 
			
		
		
		
	🎉 init feishu adapter
This commit is contained in:
		| @@ -0,0 +1,31 @@ | ||||
| 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 | ||||
		Reference in New Issue
	
	Block a user