delete

open suspend override fun delete(vararg options: DeleteOption)(source)

由群聊或单聊消息发送得到的具体回执可以撤回对应的机器人消息。

未保留目标消息上下文的回执不支持撤回。 当回执不支持撤回时,可以传入 StandardDeleteOption.IGNORE_ON_UNSUPPORTED 将本次调用作为空操作处理。

如果 options 不包含 StandardDeleteOption.IGNORE_ON_UNSUPPORTED 则会抛出 UnsupportedOperationException 异常。

Parameters

options

控制不支持撤回或撤回失败时行为的选项。