API to send chat messages. An excuse to learn Haskell