1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-07-03 21:03:25 +00:00

Merge pull request #575 from sam01101/patch-1

Make send_group_forward_msg can use on get_msg
This commit is contained in:
Mrs4s
2021-01-19 01:31:00 +08:00
committed by GitHub

View File

@ -343,7 +343,7 @@ func (bot *CQBot) CQSendGroupForwardMessage(groupId int64, m gjson.Result) MSG {
if len(sendNodes) > 0 { if len(sendNodes) > 0 {
gm := bot.Client.SendGroupForwardMessage(groupId, &message.ForwardMessage{Nodes: sendNodes}) gm := bot.Client.SendGroupForwardMessage(groupId, &message.ForwardMessage{Nodes: sendNodes})
return OK(MSG{ return OK(MSG{
"message_id": ToGlobalId(groupId, gm.Id), "message_id": bot.InsertGroupMessage(gm),
}) })
} }
return Failed(100) return Failed(100)