Layer 231
constructor
textButton#afc79cd6 flags:# text:RichText type:InlineButtonType style:flags.0?RichButtonStyle = RichText;

Parameters

Name Type Description
Text RichText Button label
Type InlineButtonType What the button does when pressed
Style flags.0?RichButtonStyle Button style

Returns

RichText

Gogram Example

// Creating TextButton constructor
obj := &tg.TextButton{
    Text: &tg.TextAnchor{},
    Type: &tg.InlineButtonTypeBuy{},

    // Optional fields:
    // Style: &tg.RichButtonStyleObj{},
}