1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

add group_id for get_forward_msg (#1510)

This commit is contained in:
synodriver 2022-05-27 17:10:23 +08:00 committed by GitHub
parent d313effb79
commit c275806c62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -1574,6 +1574,7 @@ func (bot *CQBot) CQGetForwardMessage(resID string) global.MSG {
}, },
"time": n.Time, "time": n.Time,
"content": content, "content": content,
"group_id": n.GroupId,
} }
} }
return r return r
@ -1973,6 +1974,15 @@ func (bot *CQBot) CQGetModelShow(model string) global.MSG {
}) })
} }
// CQSendGroupSign 群打卡
//
// https://club.vip.qq.com/onlinestatus/set
// @route(send_group_sign)
func (bot *CQBot) CQSendGroupSign(groupID int64) global.MSG {
bot.Client.SendGroupSign(groupID)
return OK(nil)
}
// CQSetModelShow 设置在线机型 // CQSetModelShow 设置在线机型
// //
// https://club.vip.qq.com/onlinestatus/set // https://club.vip.qq.com/onlinestatus/set

View File

@ -210,6 +210,9 @@ func (c *Caller) call(action string, p Getter) global.MSG {
p1 := p.Get("message") p1 := p.Get("message")
p2 := p.Get("auto_escape").Bool() p2 := p.Get("auto_escape").Bool()
return c.bot.CQSendGroupMessage(p0, p1, p2) return c.bot.CQSendGroupMessage(p0, p1, p2)
case "send_group_sign":
p0 := p.Get("group_id").Int()
return c.bot.CQSendGroupSign(p0)
case "send_guild_channel_msg": case "send_guild_channel_msg":
p0 := p.Get("guild_id").Uint() p0 := p.Get("guild_id").Uint()
p1 := p.Get("channel_id").Uint() p1 := p.Get("channel_id").Uint()