Styled text with message entities

Telegram supports styled text using message entities.

A client that wants to send styled messages would simply have to integrate a Markdown/HTML parser, and generate an array of message entities by iterating through the parsed tags.

Special care must be taken to consider the UTF-8 length of strings when generating message entities, see example implementations: tdlib, MadelineProto.

Nested entities are supported.
For example the following HTML/Markdown aliases for message entities can be used:

```c++
code
```

The following entities can also be used to mention users:

A number of other entities are also available, see the type page for the full list ยป.