Message Handler

Added a message handler to define how a chat message is sent