KeyboardButtonCopy
- class pyrogram.raw.types.KeyboardButtonCopy
Clipboard button: when clicked, the attached text must be copied to the clipboard.
Constructor of
KeyboardButton.- Details:
Layer:
223ID:
BCC4AF10
- Parameters:
text (
str) – Title of the buttoncopy_text (
str) – The text that will be copied to the clipboardstyle (
KeyboardButtonStyle, optional)
TL Schema
keyboardButtonCopy#bcc4af10
flags:#
style:flags.10?KeyboardButtonStyle
text:string
copy_text:string
= KeyboardButton
Parameter Tree
KeyboardButtonCopy
├── style →
KeyboardButtonStyle (optional)│ └──
KeyboardButtonStyle│ ├── bg_primary →
true (optional)│ ├── bg_danger →
true (optional)│ ├── bg_success →
true (optional)│ └── icon →
long (optional)├── text →
string└── copy_text →
stringExample
KeyboardButtonCopy(
text="Open",
copy_text="text",
)