Link Search Menu Expand Document

danog\MadelineProto\TextEntities

Back to index

Author: Daniil Gentili daniil@daniil.it

Class that converts HTML or markdown to a message + set of entities.

Properties

  • $message: string Converted message
  • $entities: list<MessageEntity> Converted entities.

Method list:

Methods:

__construct(string $message, array $entities)

Creates an Entities container using a message and a list of entities.

Parameters:

  • $message: string
  • $entities: array

fromMarkdown(string $markdown): self

Manually convert markdown to a message and a set of entities.

Parameters:

  • $markdown: string

Return value: Object containing message and entities

fromHtml(string $html): self

Manually convert HTML to a message and a set of entities.

Parameters:

  • $html: string

Return value: Object containing message and entities


Generated by danog/phpdoc