Skip to content

Commit

Permalink
feat: send_forward_msg api will be returned forward id
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrs4s committed Sep 8, 2022
1 parent 21df6c6 commit bae00b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion coolq/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
return OK(global.MSG{
"message_id": mid,
"forward_id": fe.ResId,
})
}

Expand All @@ -1003,7 +1004,10 @@ func (bot *CQBot) CQSendPrivateForwardMessage(userID int64, m gjson.Result) glob
return Failed(100, "SEND_MSG_API_ERROR", "请参考 go-cqhttp 端输出")
}
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 发送私聊消息
Expand Down

0 comments on commit bae00b5

Please sign in to comment.