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

fix: typo in default error messages

This commit is contained in:
BlackBaroness
2025-07-27 07:34:56 +03:00
committed by GitHub
parent 19265357a2
commit 0650fc594f

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,