mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-09-05 08:09:21 +00:00
add TelegramBot#send extensions
This commit is contained in:
@@ -22,7 +22,7 @@ suspend fun <T> TelegramBot.withAction(
|
||||
contract {
|
||||
callsInPlace(block, InvocationKind.EXACTLY_ONCE)
|
||||
}
|
||||
val botActionJob = CoroutineScope(coroutineContext).launch {
|
||||
val botActionJob = CoroutineScope(currentCoroutineContext()).launch {
|
||||
while (isActive) {
|
||||
delay(refreshTime)
|
||||
safelyWithoutExceptions {
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user