Layer 224
constructor
keyboardButtonCopy#bcc4af10 flags:# style:flags.10?KeyboardButtonStyle text:string copy_text:string = KeyboardButton;

Parameters

Name Type Description
Style flags.10?KeyboardButtonStyle
Text string Title of the button
CopyText string The text that will be copied to the clipboard

Returns

KeyboardButton

Gogram Example

// Creating KeyboardButtonCopy constructor
obj := &tg.KeyboardButtonCopy{
    Text: "Hello, World!",
    CopyText: "Hello, World!",

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