1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

feat: send_forward_msg api will be returned forward id

This commit is contained in:
Mrs4s 2022-09-08 22:20:43 +08:00
parent 21df6c6d6d
commit bae00b557e
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -981,6 +981,7 @@ func (bot *CQBot) CQSendGroupForwardMessage(groupID int64, m gjson.Result) globa
log.Infof("发送群 %v(%v) 的合并转发消息: %v (%v)", groupID, groupID, limitedString(m.String()), mid) log.Infof("发送群 %v(%v) 的合并转发消息: %v (%v)", groupID, groupID, limitedString(m.String()), mid)
return OK(global.MSG{ return OK(global.MSG{
"message_id": mid, "message_id": mid,
"forward_id": fe.ResId,
}) })
} }
@ -1003,7 +1004,10 @@ func (bot *CQBot) CQSendPrivateForwardMessage(userID int64, m gjson.Result) glob
return Failed(100, "SEND_MSG_API_ERROR", "请参考 go-cqhttp 端输出") return Failed(100, "SEND_MSG_API_ERROR", "请参考 go-cqhttp 端输出")
} }
log.Infof("发送好友 %v(%v) 的合并转发消息: %v (%v)", userID, userID, limitedString(m.String()), mid) log.Infof("发送好友 %v(%v) 的合并转发消息: %v (%v)", userID, userID, limitedString(m.String()), mid)
return OK(global.MSG{"message_id": mid}) return OK(global.MSG{
"message_id": mid,
"forward_id": fe.ResId,
})
} }
// CQSendPrivateMessage 发送私聊消息 // CQSendPrivateMessage 发送私聊消息