Skip to content

Commit bae00b5

Browse files
committed
feat: send_forward_msg api will be returned forward id
1 parent 21df6c6 commit bae00b5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

coolq/api.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,7 @@ func (bot *CQBot) CQSendGroupForwardMessage(groupID int64, m gjson.Result) globa
981981
log.Infof("发送群 %v(%v) 的合并转发消息: %v (%v)", groupID, groupID, limitedString(m.String()), mid)
982982
return OK(global.MSG{
983983
"message_id": mid,
984+
"forward_id": fe.ResId,
984985
})
985986
}
986987

@@ -1003,7 +1004,10 @@ func (bot *CQBot) CQSendPrivateForwardMessage(userID int64, m gjson.Result) glob
10031004
return Failed(100, "SEND_MSG_API_ERROR", "请参考 go-cqhttp 端输出")
10041005
}
10051006
log.Infof("发送好友 %v(%v) 的合并转发消息: %v (%v)", userID, userID, limitedString(m.String()), mid)
1006-
return OK(global.MSG{"message_id": mid})
1007+
return OK(global.MSG{
1008+
"message_id": mid,
1009+
"forward_id": fe.ResId,
1010+
})
10071011
}
10081012

10091013
// CQSendPrivateMessage 发送私聊消息

0 commit comments

Comments
 (0)