feat: 添加 SendForward 函数以支持消息转发,并更新 GenSendPkg 函数以处理转发逻辑
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package help
|
||||
|
||||
import (
|
||||
"git.lxtend.com/qqbot/action"
|
||||
"git.lxtend.com/qqbot/constants"
|
||||
"git.lxtend.com/qqbot/handler"
|
||||
"git.lxtend.com/qqbot/message"
|
||||
@@ -35,9 +36,10 @@ func help(msg model.Message) *model.Reply {
|
||||
nodeMsg.Data.UserID = "123456789"
|
||||
nodeMsg.Data.Nickname = "test"
|
||||
nodeMsg.Data.Content = []any{&textMsg}
|
||||
return &model.Reply{
|
||||
action.ActionManager.SendForward(&model.Reply{
|
||||
ReplyMsg: []any{&nodeMsg},
|
||||
ReferOriginMsg: false,
|
||||
FromMsg: msg,
|
||||
}
|
||||
})
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user