Link Search Menu Expand Document

Constructor: keyboardButtonCopy

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
textstringYesTitle of the button
copy_textstringYesThe text that will be copied to the clipboard

Type: KeyboardButton

Example:

$keyboardButtonCopy = ['_' => 'keyboardButtonCopy', 'text' => 'string', 'copy_text' => 'string'];