mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-29 04:47:48 +00:00
23 lines
989 B
Kotlin
23 lines
989 B
Kotlin
|
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.answers
|
||
|
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.RequestsExecutor
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.answers.AnswerCallbackQuery
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.CallbackQuery.CallbackQuery
|
||
|
import com.github.insanusmokrassar.TelegramBotAPI.types.CallbackQueryIdentifier
|
||
|
|
||
|
suspend fun RequestsExecutor.answerCallbackQuery(
|
||
|
callbackQueryId: CallbackQueryIdentifier,
|
||
|
text: String? = null,
|
||
|
showAlert: Boolean? = null,
|
||
|
url: String? = null,
|
||
|
cachedTimeSeconds: Int? = null
|
||
|
) = execute(AnswerCallbackQuery(callbackQueryId, text, showAlert, url, cachedTimeSeconds))
|
||
|
|
||
|
suspend fun RequestsExecutor.answerCallbackQuery(
|
||
|
callbackQuery: CallbackQuery,
|
||
|
text: String? = null,
|
||
|
showAlert: Boolean? = null,
|
||
|
url: String? = null,
|
||
|
cachedTimeSeconds: Int? = null
|
||
|
) = answerCallbackQuery(callbackQuery.id, text, showAlert, url, cachedTimeSeconds)
|