Package dev. inmo. tgbotapi. requests. send. polls
Types
Send Poll
Link copied to clipboard
sealed class SendPoll : SendMessageRequest<ContentMessage<PollContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<PollContent>>
Content copied to clipboard
Send Quiz Poll
Link copied to clipboard
Send Regular Poll
Link copied to clipboard
data class SendRegularPoll(chatId: ChatIdentifier, question: String, options: List<String>, isAnonymous: Boolean, isClosed: Boolean, allowMultipleAnswers: Boolean, openPeriod: LongSeconds?, closeDate: LongSeconds?, disableNotification: Boolean, protectContent: Boolean, replyToMessageId: MessageIdentifier?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?) : SendPoll
Content copied to clipboard
Functions
create Request
Link copied to clipboard
fun Poll.createRequest(chatId: ChatIdentifier, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendPoll
Content copied to clipboard
Send Poll
Link copied to clipboard
fun SendPoll(chatId: ChatIdentifier, question: String, options: List<String>, isAnonymous: Boolean = true, isClosed: Boolean = false, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendRegularPoll
Content copied to clipboard
Send Quiz Poll
Link copied to clipboard
fun SendQuizPoll(chatId: ChatIdentifier, question: String, options: List<String>, correctOptionId: Int, isAnonymous: Boolean = true, isClosed: Boolean = false, entities: List<TextSource>, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendQuizPoll
Content copied to clipboard
fun SendQuizPoll(chatId: ChatIdentifier, question: String, options: List<String>, correctOptionId: Int, isAnonymous: Boolean = true, isClosed: Boolean = false, explanation: String? = null, parseMode: ParseMode? = null, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendQuizPoll
Content copied to clipboard
Send Regular Poll
Link copied to clipboard
fun SendRegularPoll(chatId: ChatIdentifier, question: String, options: List<String>, isAnonymous: Boolean = true, isClosed: Boolean = false, allowMultipleAnswers: Boolean = false, closeInfo: ScheduledCloseInfo? = null, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): SendRegularPoll
Content copied to clipboard