Update App.kt

This commit is contained in:
InsanusMokrassar 2022-06-17 03:26:56 +06:00 committed by GitHub
parent ea4a906e9a
commit 699b58f952
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ suspend fun main(args: Array<String>) {
// create json to decode config // create json to decode config
val json = Json { ignoreUnknownKeys = true } val json = Json { ignoreUnknownKeys = true }
// decode config // 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 // that is your bot
val bot = telegramBot(config.token) val bot = telegramBot(config.token)