Skip to content

Commit ec83269

Browse files
Update app/onebot/onebot.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 33b7e93 commit ec83269

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

app/onebot/onebot.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,7 @@ async def send_message(
321321
message: Union[str, List[Dict[str, Any]]],
322322
auto_escape: bool = False
323323
) -> Dict[str, Any]:
324-
"""发送消息"""
325-
if not self._validate_message_type(onebot_type):
326-
return {
327-
"status": "error",
328-
"retcode": -1,
329-
"message": f"不支持的消息类型: {onebot_type}"
330-
}
324+
raise ValueError(f"不支持的消息类型: {onebot_type}")
331325

332326
request = {
333327
"action": "send_msg",

0 commit comments

Comments
 (0)