refactor: 将多个方法修改为静态方法以提高代码可读性和一致性
This commit is contained in:
@@ -113,7 +113,8 @@ class Conversation:
|
||||
return True
|
||||
return False
|
||||
|
||||
def _convert_to_message(self, msg_dict: Dict[str, Any]) -> Message:
|
||||
@staticmethod
|
||||
def _convert_to_message(msg_dict: Dict[str, Any]) -> Message:
|
||||
"""将消息字典转换为Message对象"""
|
||||
try:
|
||||
chat_info = msg_dict.get("chat_info", {})
|
||||
|
||||
Reference in New Issue
Block a user