Chat API: create a message and remove a dialog