删除精华消息

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

使用示例

  1. token := token.BotToken("appid", "token")
  2. api := botgo.NewOpenAPI(token).WithTimeout(3 * time.Second)
  3. ctx := context.Background()
  4. err := api.DeletePins(ctx, channelId, msgId)
  5. if err != nil {
  6. log.Fatalln("调用 DeletePins 接口失败, err = ", err)
  7. }

参数说明

字段名 必填 类型 描述
channelId string 子频道 ID
msgId string 消息 ID