Skip to content

Commit 140192c

Browse files
committed
fix: panic of getting group code error in forward message
1 parent 093605c commit 140192c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coolq/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ func (bot *CQBot) uploadForwardElement(m gjson.Result, target int64, sourceType
836836
if len(bot.Client.GroupList) == 0 {
837837
groupID = 1
838838
} else {
839-
groupID = bot.Client.GroupList[1].Uin
839+
groupID = bot.Client.GroupList[0].Uin
840840
}
841841
}
842842
builder := bot.Client.NewForwardMessageBuilder(groupID)

0 commit comments

Comments
 (0)