Skip to content

Commit

Permalink
fix: 发送私聊消息对auto_escape的处理
Browse files Browse the repository at this point in the history
  • Loading branch information
EZForever authored Mar 5, 2024
1 parent 5bc4d80 commit 3632dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/evole/onebot/mirai/core/ApiMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public ActionData<?> sendGroupMessage(JsonObject params) {

public ActionData<?> sendPrivateMessage(JsonObject params) {
val targetQQId = params.get("user_id").getAsLong();
val raw = params.has("auto_escape") || params.get("auto_escape").getAsBoolean();
val raw = params.has("auto_escape") && params.get("auto_escape").getAsBoolean();
val messages = params.get("message");

Contact contact;
Expand Down

0 comments on commit 3632dc2

Please sign in to comment.