1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-25 19:48:43 +00:00

Fixes in CallbackQuery waiters

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

View File

@ -2,6 +2,9 @@
## 4.1.2 ## 4.1.2
* `BehaviourBuilder`:
* Fixes in `CallbackQuery` waiters
## 4.1.1 ## 4.1.1
* `Core`: * `Core`:

View File

@ -20,7 +20,7 @@ suspend inline fun <reified O> BehaviourContext.waitCallbackQueries(
initRequest, initRequest,
errorFactory errorFactory
) { ) {
(it.callbackQueryUpdateOrNull() ?.data as O).let(::listOfNotNull) (it.callbackQueryUpdateOrNull() ?.data as? O).let(::listOfNotNull)
} }