MessageEntity(m: Message)
create a messageEntity from a message object
MessageEntity(id: String, cid: String, userId: String)
The Message Entity. Text and attachments are the most commonly used fields.
You can convert a Message object from the low level client to a MessageEntity like this: val messageEntity = MessageEntity(message) and back: messageEntity.toMessage()