Module TelegramApi.MessageEntity

module MessageEntity: sig .. end
Used to represent formatting options for a message's text

type entity_type = 
| Mention
| Hashtag
| BotCommand
| Url
| Email
| Bold
| Italic
| Code
| Pre
| TextLink of string
| TextMention of TelegramApi.User.user
The type of formatting to apply to the text
val entity_type_of_string : string option ->
TelegramApi.User.user option ->
string -> entity_type
Takes the url and user fields of the record and the type field, then creates a value of type entity_type based on that
type message_entity = {
   entity_type : entity_type;
   offset : int;
   length : int;
}
Represents the message entity inside of the message
val create : entity_type:entity_type ->
offset:int -> length:int -> unit -> message_entity
Create a message_entity in a concise manner

Read a message_entity out of some JSON

val read : Yojson.Safe.json -> message_entity