newBot
Kotlin:
newBot(123, "") {
// this: BotConfiguration
fileBasedDeviceInfo()
}
Content copied to clipboard
Java:
newBot(123, "", configuration -> {
configuration.fileBasedDeviceInfo()
})
Content copied to clipboard
Parameters
passwordMd5
16 bytes
open fun newBot(qq: Long, passwordMd5: ByteArray, configuration: BotFactory.BotConfigurationLambda): Bot
Kotlin:
newBot(123, password) {
// this: BotConfiguration
fileBasedDeviceInfo()
}
Content copied to clipboard
Java:
newBot(123, password, configuration -> {
configuration.fileBasedDeviceInfo()
})
Content copied to clipboard
Parameters
passwordMd5
16 bytes
Parameters
passwordMd5
16 bytes
Since
2.15
abstract fun newBot(qq: Long, authorization: BotAuthorization, configuration: BotConfiguration): Bot
Since
2.15
open fun newBot(qq: Long, authorization: BotAuthorization, configuration: BotFactory.BotConfigurationLambda): Bot
Kotlin:
newBot(123, password) {
// this: BotConfiguration
fileBasedDeviceInfo()
}
Content copied to clipboard
Java:
newBot(123, password, configuration -> {
configuration.fileBasedDeviceInfo()
})
Content copied to clipboard
Since
2.15