UnknownPollType

@Serializable
data class UnknownPollType : Poll

Properties

Link copied to clipboard
@SerialName(value = "id")
open override val id: PollId
Link copied to clipboard
@SerialName(value = "is_anonymous")
open override val isAnonymous: Boolean = false
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<PollOption>
Link copied to clipboard
@SerialName(value = "question")
open override val question: String
Link copied to clipboard
Link copied to clipboard
@Serializable
val raw: JsonElement? = null
Link copied to clipboard
@Transient
open override val scheduledCloseInfo: ScheduledCloseInfo?
Link copied to clipboard
open override val text: String
Link copied to clipboard
@SerialName(value = "question_entities")
open override val textSources: List<TextSource>

Full list of TextSources

Link copied to clipboard
@SerialName(value = "total_voter_count")
open override val votesCount: Int

Functions

Link copied to clipboard
fun Poll.createRequest(chatId: ChatIdentifier, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId, disableNotification: Boolean = false, protectContent: Boolean = false, allowPaidBroadcast: Boolean = false, effectId: EffectId? = null, replyParameters: ReplyParameters? = null, replyMarkup: KeyboardMarkup? = null): SendPoll