Layer 224
KeyboardButtonCopy
Clipboard button: when clicked, the attached text must be copied to the clipboard.
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
KeyboardButtonGogram Example
// Creating KeyboardButtonCopy constructor obj := &tg.KeyboardButtonCopy{ Text: "Hello, World!", CopyText: "Hello, World!", // Optional fields: // Style: &tg.KeyboardButtonStyle{}, }