mirai
2.16.0
common
mirai-core-api
/
net.mamoe.mirai.auth
/
BotAuthorization
Bot
Authorization
interface
BotAuthorization
Bot 的登录鉴权方式
Since
2.15
See also
BotFactory.
newBot
Members
Types
Companion
Link copied to clipboard
object
Companion
Functions
authorize
Link copied to clipboard
abstract
suspend
fun
authorize
(
session
:
BotAuthSession
,
info
:
BotAuthInfo
)
:
BotAuthResult
此方法控制 Bot 如何进行登录.
calculate
Secrets
Key
Link copied to clipboard
open
fun
calculateSecretsKey
(
bot
:
BotAuthInfo
)
:
ByteArray
计算
cache/account.secrets
的加密秘钥