Fixes in CallbackQuery waiters

This commit is contained in:
InsanusMokrassar committed 2022-11-17 12:33:16 +06:00
1 parent f6a0b1a19d
commit ceba86abcb
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -2,6 +2,9 @@
## 4.1.2
* `BehaviourBuilder`:
* Fixes in `CallbackQuery` waiters
## 4.1.1
* `Core`:
@@ -20,7 +20,7 @@ suspend inline fun <reified O> BehaviourContext.waitCallbackQueries(
initRequest,
errorFactory
) {
(it.callbackQueryUpdateOrNull() ?.data as O).let(::listOfNotNull)
(it.callbackQueryUpdateOrNull() ?.data as? O).let(::listOfNotNull)
}