Layer 231
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

Gogram Example

// Creating KeyboardInlineButtonObj constructor
obj := &tg.KeyboardInlineButtonObj{
    Text: "Hello!",
    Type: &tg.InlineButtonTypeBuy{},

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