peyk.platforms.telegram.types.copy_text_button

Classes

CopyTextButton([text])

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

class peyk.platforms.telegram.types.copy_text_button.CopyTextButton(text: str = '')[source]

Bases: object

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

Variables:

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

text: str = ''
classmethod from_dict(data: dict | None) CopyTextButton | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.

to_dict() Dict[str, object][source]

Provides the to dict operation for the Telegram integration.

Returns:

Result produced by the operation.