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:
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,
|
"user_id": n.SenderId,
|
||||||
"nickname": n.SenderName,
|
"nickname": n.SenderName,
|
||||||
},
|
},
|
||||||
"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
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user