answerCallbackQuery - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / answerCallbackQuery

answerCallbackQuery

suspend fun TelegramFlow.answerCallbackQuery(callbackQueryId: Long, text: String?, showAlert: Boolean, url: String?, cacheTime: Int): Unit

Suspend function, which sets the result of a callback query; for bots only.

Parameters

callbackQueryId - Identifier of the callback query.

text - Text of the answer.

showAlert - If true, an alert should be shown to the user instead of a toast notification.

url - URL to be opened.

cacheTime - Time during which the result of the query can be cached, in seconds.