peyk.platforms.telegram.types.rich_block_thinking

Classes

RichBlockThinking([text])

A block with a 'Thinking…' placeholder, corresponding to the custom HTML tag .

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

Bases: object

A block with a ‘Thinking…’ placeholder, corresponding to the custom HTML tag . The block may be used only in sendRichMessageDraft, therefore it can’t be received in messages. See https://t.me/addemoji/AIActions for examples of custom emoji that are recommended for usage in the block.

Variables:
  • type – Type of the block, always ‘thinking’

  • text (str) – Text of the block. See https://t.me/addemoji/AIActions for examples of custom emoji that are recommended for usage in the block.

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

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.