2020-10-04 10:57:39 +00:00
|
|
|
package dev.inmo.tgbotapi.extensions.api.answers
|
2020-02-15 09:33:04 +00:00
|
|
|
|
2020-10-04 11:06:30 +00:00
|
|
|
import dev.inmo.tgbotapi.bot.TelegramBot
|
|
|
|
import dev.inmo.tgbotapi.requests.answers.AnswerCallbackQuery
|
|
|
|
import dev.inmo.tgbotapi.types.CallbackQuery.CallbackQuery
|
|
|
|
import dev.inmo.tgbotapi.types.CallbackQueryIdentifier
|
2020-02-15 09:33:04 +00:00
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.answerCallbackQuery(
|
2020-02-15 09:33:04 +00:00
|
|
|
callbackQueryId: CallbackQueryIdentifier,
|
|
|
|
text: String? = null,
|
|
|
|
showAlert: Boolean? = null,
|
|
|
|
url: String? = null,
|
|
|
|
cachedTimeSeconds: Int? = null
|
|
|
|
) = execute(AnswerCallbackQuery(callbackQueryId, text, showAlert, url, cachedTimeSeconds))
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.answerCallbackQuery(
|
2020-02-15 09:33:04 +00:00
|
|
|
callbackQuery: CallbackQuery,
|
|
|
|
text: String? = null,
|
|
|
|
showAlert: Boolean? = null,
|
|
|
|
url: String? = null,
|
|
|
|
cachedTimeSeconds: Int? = null
|
|
|
|
) = answerCallbackQuery(callbackQuery.id, text, showAlert, url, cachedTimeSeconds)
|
2021-09-14 09:51:05 +00:00
|
|
|
|
|
|
|
suspend fun TelegramBot.answer(
|
|
|
|
callbackQuery: CallbackQuery,
|
|
|
|
text: String? = null,
|
|
|
|
showAlert: Boolean? = null,
|
|
|
|
url: String? = null,
|
|
|
|
cachedTimeSeconds: Int? = null
|
|
|
|
) = answerCallbackQuery(callbackQuery.id, text, showAlert, url, cachedTimeSeconds)
|