Package-level declarations

Types

Link copied to clipboard
@Serializable
data class SendQuizPoll : SendPoll, TextedOutput
Link copied to clipboard
@Serializable
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 threadId: MessageThreadId? = chatId.threadId, val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, val disableNotification: Boolean = false, val protectContent: Boolean = false, val replyParameters: ReplyParameters? = null, val replyMarkup: KeyboardMarkup? = null) : SendPoll

Functions

Link copied to clipboard
fun Poll.createRequest(chatId: ChatIdentifier, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendPoll
Link copied to clipboard
fun SendPoll(chatId: ChatIdentifier, question: String, options: List<String>, isAnonymous: Boolean = true, isClosed: Boolean = false, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendRegularPoll
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, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendQuizPoll
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, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendQuizPoll
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, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendRegularPoll