From 699b58f9520b89f655bc38efea307a8bf1123f2e Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 17 Jun 2022 03:26:56 +0600 Subject: [PATCH] Update App.kt --- src/main/kotlin/telegram_bot/App.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/telegram_bot/App.kt b/src/main/kotlin/telegram_bot/App.kt index e42bef4..85e98f1 100644 --- a/src/main/kotlin/telegram_bot/App.kt +++ b/src/main/kotlin/telegram_bot/App.kt @@ -16,7 +16,7 @@ suspend fun main(args: Array) { // 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)