mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
add group_id for get_forward_msg (#1510)
This commit is contained in:
parent
d313effb79
commit
c275806c62
14
coolq/api.go
14
coolq/api.go
@ -1572,8 +1572,9 @@ func (bot *CQBot) CQGetForwardMessage(resID string) global.MSG {
|
||||
"user_id": n.SenderId,
|
||||
"nickname": n.SenderName,
|
||||
},
|
||||
"time": n.Time,
|
||||
"content": content,
|
||||
"time": n.Time,
|
||||
"content": content,
|
||||
"group_id": n.GroupId,
|
||||
}
|
||||
}
|
||||
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 设置在线机型
|
||||
//
|
||||
// https://club.vip.qq.com/onlinestatus/set
|
||||
|
@ -210,6 +210,9 @@ func (c *Caller) call(action string, p Getter) global.MSG {
|
||||
p1 := p.Get("message")
|
||||
p2 := p.Get("auto_escape").Bool()
|
||||
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":
|
||||
p0 := p.Get("guild_id").Uint()
|
||||
p1 := p.Get("channel_id").Uint()
|
||||
|
Loading…
x
Reference in New Issue
Block a user