option
fun option(label: String, value: String, description: String? = null, default: Boolean = false)(source)
Adds an option to this radio group.
Parameters
label
The label of this option, see RadioGroupOption.withLabel
value
The value of this option, this is what the bot receives, see RadioGroupOption.withValue
description
The description of this option, see RadioGroupOption.withDescription
default
Whether this option is selected by default