mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2026-10-28 15:33:51 +00:00
fix: new BehaviourContext ignored
This commit is contained in:
1 parent
33fb75a5eb
commit
619c82bb32
1 file changed
+1
-1
+1
-1
@@ -128,7 +128,7 @@ suspend fun <T, BC : BehaviourContext> BC.doInSubContextWithUpdatesFilter(
|
||||
upstreamUpdatesFlow = updatesUpstreamFlow
|
||||
).run {
|
||||
withContext(coroutineContext) {
|
||||
behaviourContextReceiver().also { if (stopOnCompletion) stop() }
|
||||
(this@run as BC).behaviourContextReceiver().also { if (stopOnCompletion) stop() }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user