1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-12-22 16:47:13 +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
* `BehaviourBuilder`:
* Fixes in `CallbackQuery` waiters
## 4.1.1
* `Core`:

View File

@ -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)
}