keyboardButtonCopy

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

Constructor schema is available as of layer 222. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
style flags.10?KeyboardButtonStyle Button style, see here » for more info on button styles.
text string Title of the button
copy_text string The text that will be copied to the clipboard

Type

KeyboardButton

Related pages

Buttons

Users can interact with your bot via buttons or even inline buttons, straight from inline messages in any chat.