diff --git a/TelegramBotAPI-extensions-utils/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/extensions/utils/updates/retrieving/LongPolling.kt b/TelegramBotAPI-extensions-utils/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/extensions/utils/updates/retrieving/LongPolling.kt index 6fbd655048..2e77fef119 100644 --- a/TelegramBotAPI-extensions-utils/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/extensions/utils/updates/retrieving/LongPolling.kt +++ b/TelegramBotAPI-extensions-utils/src/commonMain/kotlin/com/github/insanusmokrassar/TelegramBotAPI/extensions/utils/updates/retrieving/LongPolling.kt @@ -114,7 +114,7 @@ fun RequestsExecutor.startGettingOfUpdatesByLongPolling( pollAnswerCallback: UpdateReceiver? = null, timeoutSeconds: Seconds = 30, exceptionsHandler: ExceptionHandler? = null, - scope: CoroutineScope = GlobalScope + scope: CoroutineScope = CoroutineScope(Dispatchers.Default) ): Job { return startGettingOfUpdatesByLongPolling( SimpleUpdatesFilter(