# 删除精华消息

用于移除子频道 channelId 下的精华消息 messageId

# 使用示例

token := token.BotToken("appid", "token")
api := botgo.NewOpenAPI(token).WithTimeout(3 * time.Second)
ctx := context.Background()

err := api.DeletePins(ctx, channelId, msgId)
if err != nil {
    log.Fatalln("调用 DeletePins 接口失败, err = ", err)
}
1
2
3
4
5
6
7
8

# 参数说明

字段名 必填 类型 描述
channelId string 子频道 ID
msgId string 消息 ID
手机QQ扫码
开发者社区
加入官方频道开发者社区