peyk.platforms.telegram.types.rich_text_mention

Classes

RichTextMention([text, user_id, type])

A mention by a username.

class peyk.platforms.telegram.types.rich_text_mention.RichTextMention(text: str = '', user_id: int = 0, type: str = 'mention')[source]

Bases: object

A mention by a username.

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

  • text (str) – The text

  • username – The username

text: str = ''
user_id: int = 0
type: str = 'mention'
classmethod from_dict(data)[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.