KeyboardButtonPollType

data class KeyboardButtonPollType(type: String?)

This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.

Parameters

type

Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.

Constructors

KeyboardButtonPollType
Link copied to clipboard
common
fun KeyboardButtonPollType(type: String? = null)
Optional.

Functions

component1
Link copied to clipboard
common
operator fun component1(): String?
copy
Link copied to clipboard
common
fun copy(type: String? = null): KeyboardButtonPollType
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

type
Link copied to clipboard
common
val type: String? = null
Optional.