Files
TelegramBotAPI-examples/RandomFileSenderBot/src/nativeMain/kotlin/RandomFileSenderBot.kt
2026-08-21 15:51:06 +06:00

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())
}
}