Package dev.inmo.tgbotapi.requests.answers

Types

AnswerCallbackQuery
Link copied to clipboard
common
data class AnswerCallbackQuery(callbackQueryId: CallbackQueryIdentifier, text: String?, showAlert: Boolean?, url: String?, cachedTimeSeconds: Int?) : SimpleRequest<Boolean>
AnswerInlineQuery
Link copied to clipboard
common
data class AnswerInlineQuery(inlineQueryID: InlineQueryIdentifier, results: List<InlineQueryResult>, cachedTime: Int?, isPersonal: Boolean?, nextOffset: String?, switchPmText: String?, switchPmParameter: String?) : SimpleRequest<Boolean>
InlineQueryAnswersResultsSerializer
Link copied to clipboard
common
object InlineQueryAnswersResultsSerializer : KSerializer<List<InlineQueryResult>>

Functions

createAnswer
Link copied to clipboard
common
fun CallbackQuery.createAnswer(text: String? = null, showAlert: Boolean? = null, url: String? = null, cachedTimeSeconds: Int? = null): AnswerCallbackQuery
fun InlineQuery.createAnswer(results: List<InlineQueryResult> = emptyList(), cachedTime: Int? = null, isPersonal: Boolean? = null, nextOffset: String? = null, switchPmText: String? = null, switchPmParameter: String? = null): AnswerInlineQuery