Update App.kt

This commit is contained in:
InsanusMokrassar authored and GitHub committed 2022-06-17 03:26:56 +06:00
1 parent ea4a906e9a
commit 699b58f952
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@ suspend fun main(args: Array<String>) {
// create json to decode config
val json = Json { ignoreUnknownKeys = true }
// decode config
val config: Config = json.decodeFromString(Config.serializer(), File(args.first).readText())
val config: Config = json.decodeFromString(Config.serializer(), File(args.first()).readText())
// that is your bot
val bot = telegramBot(config.token)