KeyboardButtonCopy

class pyrogram.raw.types.KeyboardButtonCopy

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

Constructor of KeyboardButton.

Details:
  • Layer: 223

  • ID: BCC4AF10

Parameters:
  • text (str) – Title of the button

  • copy_text (str) – The text that will be copied to the clipboard

  • style (KeyboardButtonStyle, optional)

TL Schema

keyboardButtonCopy#bcc4af10
flags:#
style:flags.10?KeyboardButtonStyle
text:string
copy_text:string

= KeyboardButton

Parameter Tree

KeyboardButtonCopy
├── styleKeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primarytrue (optional)
│ ├── bg_dangertrue (optional)
│ ├── bg_successtrue (optional)
│ └── iconlong (optional)
├── textstring
└── copy_textstring

Example

KeyboardButtonCopy(
    text="Open",
    copy_text="text",
)