mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI-examples.git
synced 2026-09-13 11:34:13 +00:00
update readmes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import dev.inmo.micro_utils.common.MPPFile
|
||||
import java.io.File
|
||||
|
||||
/** JVM picker backed by [File], returning a file root directly or descending through random directory children. */
|
||||
actual fun pickFile(currentRoot: MPPFile): File? {
|
||||
if (currentRoot.isFile) {
|
||||
return currentRoot
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import dev.inmo.micro_utils.common.MPPFile
|
||||
|
||||
/** JVM entry point; [args] contains the bot token followed by an optional picker root. */
|
||||
suspend fun main(args: Array<String>) {
|
||||
doRandomFileSenderBot(args.first(), MPPFile(args.getOrNull(1) ?: ""))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user