interface BotFactory
构造 Bot 的工厂.
在协议模块中有各自的实现.
mirai-core-timpc
: TIMPC
mirai-core-qqandroid
: QQAndroid
Bot |
abstract fun Bot(context: Context, qq: Long, password: String, configuration: BotConfiguration = BotConfiguration.Default): Bot abstract fun Bot(context: Context, qq: Long, passwordMd5: ByteArray, configuration: BotConfiguration = BotConfiguration.Default): Bot |
Bot |
fun BotFactory.Bot(context: Context, qq: Long, password: String, configuration: BotConfiguration.() -> Unit): Bot fun BotFactory.Bot(context: Context, qq: Long, password: ByteArray, configuration: BotConfiguration.() -> Unit): Bot |