Package dev. inmo. tgbotapi. requests. send. polls
Types
Link copied to clipboard
sealed class SendPoll : SendMessageRequest<ContentMessage<PollContent>> , ReplyingMarkupSendMessageRequest<ContentMessage<PollContent>>
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class SendRegularPoll( val chatId: ChatIdentifier, val question: String, val options: List<String>, val isAnonymous: Boolean = true, val isClosed: Boolean = false, val allowMultipleAnswers: Boolean = false, openPeriod: LongSeconds? = null, closeDate: LongSeconds?, val disableNotification: Boolean = false, val protectContent: Boolean = false, val replyToMessageId: MessageIdentifier? = null, val allowSendingWithoutReply: Boolean? = null, val replyMarkup: KeyboardMarkup? = null) : SendPoll
Content copied to clipboard
Functions
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
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
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
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