删除子频道公告

删除子频道公告。

使用示例

sync

  1. import qqbot
  2. token = qqbot.Token({appid}, {token})
  3. def demo():
  4. announce_api = qqbot.AnnounceAPI(token, False)
  5. is_success = announce_api.delete_channel_announce(channel_id, message_id)

async

  1. import qqbot
  2. token = qqbot.Token({appid}, {token})
  3. async def demo():
  4. announce_api = qqbot.AsyncAnnounceAPI(token, False)
  5. is_success = await announce_api.delete_channel_announce(channel_id, message_id)

参数说明

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

返回说明

成功返回空对象。

返回示例

data

  1. True