1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00

fix scope of one of startGettingOfUpdatesByLongPolling

This commit is contained in:
InsanusMokrassar 2020-08-13 13:45:25 +06:00
parent 4f984d1dbc
commit ce9f7f35dc

View File

@ -114,7 +114,7 @@ fun RequestsExecutor.startGettingOfUpdatesByLongPolling(
pollAnswerCallback: UpdateReceiver<PollAnswerUpdate>? = null, pollAnswerCallback: UpdateReceiver<PollAnswerUpdate>? = null,
timeoutSeconds: Seconds = 30, timeoutSeconds: Seconds = 30,
exceptionsHandler: ExceptionHandler<Unit>? = null, exceptionsHandler: ExceptionHandler<Unit>? = null,
scope: CoroutineScope = GlobalScope scope: CoroutineScope = CoroutineScope(Dispatchers.Default)
): Job { ): Job {
return startGettingOfUpdatesByLongPolling( return startGettingOfUpdatesByLongPolling(
SimpleUpdatesFilter( SimpleUpdatesFilter(