Get chat messages

Hello, im working on a new project and i want to get the chat messages from every user in the chat. Is this possible and if yes in what form the messages are in?? Thanks

Twitch chat uses an IRC-compatible interface. You can find more information here: