Optional_text: stringKind of the entity (see MessageEntityParams)
Length of the entity in UTF-16 code units.
Since JS strings are UTF-16, you can use this as-is
Offset in UTF-16 code units to the start of the entity.
Since JS strings are UTF-16, you can use this as-is
Params of the entity
Text contained in this entity.
Note: This does not take into account that entities may overlap, and is only useful for simple cases.
Checks if this entity is of the given type, and adjusts the type accordingly.
One special entity in a text message (like mention, hashtag, URL, etc.)