Implemented functionality for sending different types of messages
Deleting messages