You would either have to write the system yourself which would require hosting a server and handling the message sending/receiving or use a third party service
More details in this thread: Multiplayer chat
You could also iframe a Discord server widget too