2020-02-15 09:33:04 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.extensions.api.answers.payments
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.bot.TelegramBot
|
2020-02-15 09:33:04 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.answers.payments.AnswerPreCheckoutQueryError
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.requests.answers.payments.AnswerPreCheckoutQueryOk
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.PreCheckoutQueryId
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.payments.PreCheckoutQuery
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.answerPreCheckoutQueryOk(
|
2020-02-15 09:33:04 +00:00
|
|
|
id: PreCheckoutQueryId
|
|
|
|
) = execute(AnswerPreCheckoutQueryOk(id))
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.answerPreCheckoutQueryOk(
|
2020-02-15 09:33:04 +00:00
|
|
|
preCheckoutQuery: PreCheckoutQuery
|
|
|
|
) = answerPreCheckoutQueryOk(preCheckoutQuery.id)
|
|
|
|
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.answerPreCheckoutQueryError(
|
2020-02-15 09:33:04 +00:00
|
|
|
id: PreCheckoutQueryId,
|
|
|
|
error: String
|
|
|
|
) = execute(AnswerPreCheckoutQueryError(id, error))
|
2020-10-04 07:18:24 +00:00
|
|
|
suspend fun TelegramBot.answerPreCheckoutQueryError(
|
2020-02-15 09:33:04 +00:00
|
|
|
preCheckoutQuery: PreCheckoutQuery,
|
|
|
|
error: String
|
|
|
|
) = answerPreCheckoutQueryError(preCheckoutQuery.id, error)
|