Files
qbot/api/forward_group_single_msg.go

24 lines
948 B
Go

package api
func ForwardGroupSingleMsg(c Client, groupID uint64, messageID string) (uint64, error) {
params := map[string]any{
"group_id": groupID,
"message_id": messageID,
}
_, err := c.SendParams("forward_group_single_msg", params)
if err != nil {
return 0, err
}
// The return type isn't specified in the prompt link clearly, but usually it's empty or message_id
// NapCat docs say: return message_id (int32) usually?
// Let's assume standard response structure or just return nil error if void.
// Checking link: https://napcat.apifox.cn/226867165e0 (Wait, this is send_group_msg)
// User link: https://napcat.apifox.cn/43942125f0 -> forward_group_single_msg
// It likely returns void or standard response.
// Let's assume it returns void or we just check error.
// But wait, user code usually expects some ID?
// Let's look at existing send_group_msg.
// If it returns nothing useful, we can return 0.
return 0, nil
}