mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-10-23 04:30:24 +00:00
10 lines
321 B
Kotlin
10 lines
321 B
Kotlin
import kotlinx.coroutines.runBlocking
|
|
import okio.Path.Companion.toPath
|
|
|
|
/** Kotlin/Native entry point; [args] contains the bot token followed by an optional picker root. */
|
|
fun main(args: Array<String>) {
|
|
runBlocking {
|
|
doRandomFileSenderBot(args.first(), args.getOrNull(1) ?.toPath() ?: "".toPath())
|
|
}
|
|
}
|