OptionItem

sealed class OptionItem(val optionId: String, var parentMessageId: String? = null)

Represents a selectable option within a choices message, such as a quick reply button or menu item.

Inheritors

Constructors

Link copied to clipboard
protected constructor(optionId: String, parentMessageId: String? = null)

Types

Link copied to clipboard
class SelectionsOptionItem(@Json(name = "optionIdentifier") optionId: String, parentEntryId: String? = null, val title: String? = null) : OptionItem

An option that was selected by the user as part of a choices response.

Link copied to clipboard
sealed class TypedOptionItem(optionId: String, parentMessageId: String? = null, val itemType: OptionItem.TypedOptionItem.ItemType) : OptionItem

An option with a known structural type, used for display in the conversation UI.

Properties

Link copied to clipboard

The unique identifier for this option.

Link copied to clipboard

The identifier of the message containing this option.