Layer 224
constructor
keyboardButtonUserProfile#c0fd5d09 flags:# style:flags.10?KeyboardButtonStyle text:string user_id:long = KeyboardButton;

Parameters

Name Type Description
Style flags.10?KeyboardButtonStyle
Text string Button text
UserId long User ID

Returns

KeyboardButton

Gogram Example

// Creating KeyboardButtonUserProfile constructor
obj := &tg.KeyboardButtonUserProfile{
    Text: "Hello, World!",
    UserId: int64(1234567890),

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