Read chat and ignore result

To read the messages in the chat window, you can use this code: