message and chat in datatype