From 14235e7bd4b58e13e22bee7738865576700c0481 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sun, 8 Sep 2024 23:38:19 +0600 Subject: [PATCH] update GiveawaysBot --- GiveawaysBot/src/main/kotlin/GiveawaysBot.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GiveawaysBot/src/main/kotlin/GiveawaysBot.kt b/GiveawaysBot/src/main/kotlin/GiveawaysBot.kt index ec2928a..e00fe9e 100644 --- a/GiveawaysBot/src/main/kotlin/GiveawaysBot.kt +++ b/GiveawaysBot/src/main/kotlin/GiveawaysBot.kt @@ -29,7 +29,7 @@ suspend fun main(vararg args: String) { ) } - telegramBotWithBehaviourAndLongPolling(botToken, CoroutineScope(Dispatchers.IO), testServer = isTestServer) { + telegramBotWithBehaviourAndLongPolling(botToken, testServer = isTestServer) { // start here!! val me = getMe() println(me) @@ -50,8 +50,8 @@ suspend fun main(vararg args: String) { println(it) } - allUpdatesFlow.subscribeSafelyWithoutExceptions(this) { - println(it) - } +// allUpdatesFlow.subscribeSafelyWithoutExceptions(this) { +// println(it) +// } }.second.join() }