Layer 231
PageButtonObj
A button in a rich message or page.
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
PageButtonGogram Example
// Creating PageButtonObj constructor obj := &tg.PageButtonObj{ Text: &tg.TextAnchor{}, Type: &tg.InlineButtonTypeBuy{}, // Optional fields: // Style: &tg.RichButtonStyleObj{}, }