sig
type entity_type =
Mention
| Hashtag
| BotCommand
| Url
| Email
| Bold
| Italic
| Code
| Pre
| TextLink of string
| TextMention of TelegramApi.User.user
val entity_type_of_string :
string option ->
TelegramApi.User.user option ->
string -> TelegramApi.MessageEntity.entity_type
type message_entity = {
entity_type : TelegramApi.MessageEntity.entity_type;
offset : int;
length : int;
}
val create :
entity_type:TelegramApi.MessageEntity.entity_type ->
offset:int ->
length:int -> unit -> TelegramApi.MessageEntity.message_entity
val read : Yojson.Safe.json -> TelegramApi.MessageEntity.message_entity
end