peyk.platforms.telegram.types.rich_text_code

Classes

RichTextCode([text, type])

A monowidth text.

class peyk.platforms.telegram.types.rich_text_code.RichTextCode(text: str = '', type: str = 'code')[source]

Bases: object

A monowidth text.

Variables:
  • type (str) – Type of the rich text, always ‘code’

  • text (str) – The text

text: str = ''
type: str = 'code'
classmethod from_dict(data)[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.