Package dev.inmo.tgbotapi.requests.send.polls

Types

SendPoll
Link copied to clipboard
SendQuizPoll
Link copied to clipboard
common
data class SendQuizPoll : SendPoll, ExplainedOutput
SendRegularPoll
Link copied to clipboard
common
data class SendRegularPoll(chatId: ChatIdentifier, question: String, options: List<String>, isAnonymous: Boolean, isClosed: Boolean, allowMultipleAnswers: Boolean, closeInfo: ScheduledCloseInfo?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?) : SendPoll

Functions

createRequest
Link copied to clipboard
common
fun Poll.createRequest(chatId: ChatIdentifier, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendPoll
SendPoll
Link copied to clipboard
common
fun SendPoll(chatId: ChatIdentifier, question: String, options: List<String>, isAnonymous: Boolean, isClosed: Boolean, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendRegularPoll
SendQuizPoll
Link copied to clipboard
common
fun SendQuizPoll(chatId: ChatIdentifier, question: String, options: List<String>, correctOptionId: Int, isAnonymous: Boolean, isClosed: Boolean, entities: List<TextSource>, closeInfo: ScheduledCloseInfo?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendQuizPoll
fun SendQuizPoll(chatId: ChatIdentifier, question: String, options: List<String>, correctOptionId: Int, isAnonymous: Boolean, isClosed: Boolean, explanation: String?, parseMode: ParseMode?, closeInfo: ScheduledCloseInfo?, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendQuizPoll