SendQuizPoll

@Serializable
class SendQuizPoll : SendPoll

Constructors

Link copied to clipboard
constructor(chatId: ChatIdentifier, question: String, options: List<InputPollOption>, correctOptionId: Int, explanation: String?, questionParseMode: ParseMode? = null, explanationParseMode: ParseMode? = null, isAnonymous: Boolean = true, isClosed: Boolean = false, openPeriod: LongSeconds? = null, closeDate: LongSeconds? = null, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null)
constructor(chatId: ChatIdentifier, questionEntities: List<TextSource>, options: List<InputPollOption>, correctOptionId: Int, explanation: String?, explanationParseMode: ParseMode? = null, isAnonymous: Boolean = true, isClosed: Boolean = false, openPeriod: LongSeconds? = null, closeDate: LongSeconds? = null, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null)
constructor(chatId: ChatIdentifier, question: String, options: List<InputPollOption>, correctOptionId: Int, questionParseMode: ParseMode? = null, explanationTextSources: List<TextSource>? = null, isAnonymous: Boolean = true, isClosed: Boolean = false, openPeriod: LongSeconds? = null, closeDate: LongSeconds? = null, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null)
constructor(chatId: ChatIdentifier, questionEntities: List<TextSource>, options: List<InputPollOption>, correctOptionId: Int, explanationTextSources: List<TextSource>? = null, isAnonymous: Boolean = true, isClosed: Boolean = false, openPeriod: LongSeconds? = null, closeDate: LongSeconds? = null, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null)

Properties

Link copied to clipboard
Link copied to clipboard
@SerialName(value = "business_connection_id")
open override val businessConnectionId: BusinessConnectionId?
Link copied to clipboard
@SerialName(value = "chat_id")
open override val chatId: ChatIdentifier
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "correct_option_id")
val correctOptionId: Int
Link copied to clipboard
@SerialName(value = "disable_notification")
open override val disableNotification: Boolean = false
Link copied to clipboard
@SerialName(value = "message_effect_id")
open override val effectId: EffectId? = null
Link copied to clipboard
@SerialName(value = "explanation")
val explanation: String? = null
Link copied to clipboard
@SerialName(value = "explanation_parse_mode")
val explanationParseMode: ParseMode? = null
Link copied to clipboard
@SerialName(value = "is_anonymous")
open override val isAnonymous: Boolean = true
Link copied to clipboard
@SerialName(value = "is_closed")
open override val isClosed: Boolean = false
Link copied to clipboard
@SerialName(value = "options")
open override val options: List<InputPollOption>
Link copied to clipboard
@SerialName(value = "protect_content")
open override val protectContent: Boolean = false
Link copied to clipboard
@SerialName(value = "question")
open override val question: String
Link copied to clipboard
@SerialName(value = "question_parse_mode")
open override val questionParseMode: ParseMode? = null
Link copied to clipboard
@SerialName(value = "reply_markup")
open override val replyMarkup: KeyboardMarkup? = null
Link copied to clipboard
@SerialName(value = "reply_parameters")
open override val replyParameters: ReplyParameters? = null
Link copied to clipboard
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<ContentMessage<PollContent>>
Link copied to clipboard
open override val text: String
Link copied to clipboard
open override val textSources: List<TextSource>

Full list of TextSources

Link copied to clipboard
@SerialName(value = "message_thread_id")
open override val threadId: MessageThreadId?
Link copied to clipboard
open override val type: String

Functions

Link copied to clipboard
open override fun method(): String