CopyTextButton

class telegram.CopyTextButton(text, *, api_kwargs=None)[source]

Bases: telegram.TelegramObject

This object represents an inline keyboard button that copies specified text to the clipboard.

Objects of this class are comparable in terms of equality. Two objects of this class are considered equal, if their text is equal.

Added in version 21.7.

Parameters:

text (str) – The text to be copied to the clipboard; 1- 256 characters

text[source]

The text to be copied to the clipboard; 1- 256 characters

Type:

str