Download the PHP package danog/telegram-entities without Composer
On this page you can find all versions of the php package danog/telegram-entities. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download danog/telegram-entities
More information about danog/telegram-entities
Files in danog/telegram-entities
Package telegram-entities
Short Description A library to work with Telegram UTF-16 styled text entities.
License Apache-2.0
Informations about the package telegram-entities
telegram-entities
A library to work with Telegram UTF-16 styled text entities, created by Daniil Gentili (https://daniil.it).
This library can be used to modify entities returned by the Telegram Bot API, convert entities to HTML or even locally generate them using a custom MarkdownV2 and HTML parser inside of the library.
This library was initially created for MadelineProto, an async PHP client API for the telegram MTProto protocol.
Installation
Usage
test';");
$entities = Entities::fromMarkdown("This is a ❤️ nested $code
\
$generic ");
$sm($entities->message, entities: $entities->entities);
// Escape text for the HTML parser! $generic = EntityTools::htmlEscape("Automatically escaped to prevent HTML injection!"); $entities = Entities::fromHtml($generic);
$sm($entities->message, entities: $entities->entities);
// See https://github.com/danog/telegram-entities for the full list of available methods!
Many more methods are available, see the [API documentation](https://github.com/danog/telegram-entities/blob/master/docs/docs/index.md) for the full list!
## API Documentation
Click [here »](https://github.com/danog/telegram-entities/blob/master/docs/docs/index.md) to view the API documentation.
All versions of telegram-entities with dependencies
webmozart/assert Version ^1.11
symfony/polyfill-mbstring Version *