Layer 231
constructor
pageButton#692a5488 flags:# text:RichText type:InlineButtonType style:flags.0?RichButtonStyle = PageButton;

Parameters

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

Returns

PageButton

Gogram Example

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

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