InputRichBlockListItem

An item of an InputRichBlockList. Ordered items have a non-null InputRichBlockListItem.Ordered.value and InputRichBlockListItem.Ordered.labelType; unordered items omit both fields from the Bot API payload.

See also

Inheritors

Types

Link copied to clipboard
data class Ordered(val blocks: List<InputRichBlock>, val value: Int, val labelType: LabelType = LabelType.Decimals, val hasCheckbox: Boolean? = null, val isChecked: Boolean? = null) : InputRichBlockListItem
Link copied to clipboard
object Serializer : KSerializer<InputRichBlockListItem>
Link copied to clipboard
data class Unordered(val blocks: List<InputRichBlock>, val hasCheckbox: Boolean? = null, val isChecked: Boolean? = null) : InputRichBlockListItem

Properties

Link copied to clipboard
abstract val blocks: List<InputRichBlock>
Link copied to clipboard
abstract val hasCheckbox: Boolean?
Link copied to clipboard
abstract val isChecked: Boolean?