Matrix (open source Messaging system) can be used to setup something for group chats.
Not only that, can be 'bridged' with a whole list of other platforms (https://matrix.org/ecosystem/bridges/)
There are people who did look at a Matrix <-> Teamspeak bridge, not sure how its coming thesedays.