mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2024-11-25 03:28:50 +00:00
11 lines
297 B
Kotlin
11 lines
297 B
Kotlin
|
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)
|
||
|
}
|
||
|
}
|
||
|
}
|