mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +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 {
|
if len(bot.Client.GroupList) == 0 {
|
||||||
groupID = 1
|
groupID = 1
|
||||||
} else {
|
} else {
|
||||||
groupID = bot.Client.GroupList[1].Uin
|
groupID = bot.Client.GroupList[0].Uin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
builder := bot.Client.NewForwardMessageBuilder(groupID)
|
builder := bot.Client.NewForwardMessageBuilder(groupID)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user