Module it.auties.cobalt
Interface HighlyStructuredButton
- All Superinterfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
- All Known Implementing Classes:
HighlyStructuredCallButton,HighlyStructuredQuickReplyButton,HighlyStructuredURLButton
public sealed interface HighlyStructuredButton
extends it.auties.protobuf.model.ProtobufMessage
permits HighlyStructuredCallButton, HighlyStructuredQuickReplyButton, HighlyStructuredURLButton
A model that represents all types of hydrated buttons
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe constants of this enumerated type describe the various types of buttons that a template can wrap -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of this buttontext()Returns the text of this button
-
Method Details
-
text
HighlyStructuredMessage text()Returns the text of this button- Returns:
- a non-null structure if the protobuf isn't corrupted
-
buttonType
HighlyStructuredButton.Type buttonType()Returns the type of this button- Returns:
- a non-null type
-