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

Parameters

Name Type Description
Style flags .10? KeyboardButtonStyle Button style, see here for more info on button styles.
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{
    Style: nil,
    Text: "Hello, World!",
    CopyText: "Hello, World!",
}