1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-04 07:39:39 +00:00

Merge pull request #986 from BlackBaroness/patch-1

fix: typo in default error messages
This commit is contained in:
2025-08-06 13:57:59 +06:00
committed by GitHub

View File

@@ -13,7 +13,7 @@ import kotlin.coroutines.EmptyCoroutineContext
context(bot: TelegramBot) context(bot: TelegramBot)
fun CoroutineScope.launchWithBotLogger( fun CoroutineScope.launchWithBotLogger(
errorMessageBuilder: CoroutineScope.(Throwable) -> Any = { "Something web wrong" }, errorMessageBuilder: CoroutineScope.(Throwable) -> Any = { "Something went wrong" },
context: CoroutineContext = EmptyCoroutineContext, context: CoroutineContext = EmptyCoroutineContext,
start: CoroutineStart = CoroutineStart.DEFAULT, start: CoroutineStart = CoroutineStart.DEFAULT,
block: suspend CoroutineScope.() -> Unit block: suspend CoroutineScope.() -> Unit
@@ -28,7 +28,7 @@ fun CoroutineScope.launchWithBotLogger(
context(bot: TelegramBot) context(bot: TelegramBot)
fun <T> Flow<T>.subscribeWithBotLogger( fun <T> Flow<T>.subscribeWithBotLogger(
scope: CoroutineScope, scope: CoroutineScope,
errorMessageBuilder: T.(Throwable) -> Any = { "Something web wrong" }, errorMessageBuilder: T.(Throwable) -> Any = { "Something went wrong" },
block: suspend (T) -> Unit block: suspend (T) -> Unit
) = subscribeLoggingDropExceptions ( ) = subscribeLoggingDropExceptions (
scope, scope,