Types
SendPoll
Link copied to clipboard
sealed class SendPoll : SendMessageRequest<ContentMessage<PollContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<PollContent>>
Content copied to clipboard
SendQuizPoll
Link copied to clipboard
SendRegularPoll
Link copied to clipboard
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
Content copied to clipboard
Functions
createRequest
Link copied to clipboard
fun Poll.createRequest(chatId: ChatIdentifier, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendPoll
Content copied to clipboard
SendPoll
Link copied to clipboard
fun SendPoll(chatId: ChatIdentifier, question: String, options: List<String>, isAnonymous: Boolean, isClosed: Boolean, disableNotification: Boolean, replyToMessageId: Long?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): SendRegularPoll
Content copied to clipboard
SendQuizPoll
Link copied to clipboard
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
Content copied to clipboard
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
Content copied to clipboard