Skip to main content

keyboardButtonCopy

Clipboard button: when clicked, the attached text must be copied to the clipboard.

type tg.KeyboardButtonCopy struct { /* ... */ }

Implements KeyboardButton.

Fieldsโ€‹

NameTypeRequiredDescription
StyleKeyboardButtonStyleโ€”Button style, see here ยป for more info on button styles.
TextstringyesTitle of the button
CopyTextstringyesThe text that will be copied to the clipboard

Referencesโ€‹