cancel

abstract suspend fun cancel(reason: Throwable? = null): Boolean

终止当前BOT。

Return

当且仅当此BOT未关闭且关闭成功才会得到true。