mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
fix: panic of getting group code error in forward message
This commit is contained in:
parent
093605cf01
commit
140192c76a
@ -836,7 +836,7 @@ func (bot *CQBot) uploadForwardElement(m gjson.Result, target int64, sourceType
|
||||
if len(bot.Client.GroupList) == 0 {
|
||||
groupID = 1
|
||||
} else {
|
||||
groupID = bot.Client.GroupList[1].Uin
|
||||
groupID = bot.Client.GroupList[0].Uin
|
||||
}
|
||||
}
|
||||
builder := bot.Client.NewForwardMessageBuilder(groupID)
|
||||
|
Loading…
x
Reference in New Issue
Block a user