TelegramBotAPI-examples/KeyboardsBot/jvm_launcher/src/main/kotlin/KeyboardsBotJvm.kt

11 lines
297 B
Kotlin
Raw Normal View History

import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
suspend fun main(args: Array<String>) {
withContext(Dispatchers.IO) { // IO for inheriting of it in side of activateKeyboardsBot
activateKeyboardsBot(args.first()) {
println(it)
}
}
}