Layer 231
KeyboardInlineButtonObj
Inline keyboard button.
constructor
keyboardInlineButton#11c1a322 flags:# style:flags.10?KeyboardButtonStyle text:string type:InlineButtonType = KeyboardInlineButton;
Parameters
| Name | Type | Description |
|---|---|---|
| Style | flags.10?KeyboardButtonStyle | Button style |
| Text | string | Button label |
| Type | InlineButtonType | What the button does when pressed |
Returns
KeyboardInlineButtonGogram Example
// Creating KeyboardInlineButtonObj constructor obj := &tg.KeyboardInlineButtonObj{ Text: "Hello!", Type: &tg.InlineButtonTypeBuy{}, // Optional fields: // Style: &tg.KeyboardButtonStyleObj{}, }