I’m relatively new to Twitch chat, both from a user and a developer point of view, and I’m trying to understand whispers and how they work with the different types of servers (ie group, event, normal). Everything I’ve read says that I won’t be able to send/receive whispers unless I’m on a group chat server. But my stream’s default chat channel isn’t on a group server, as far as I can tell. Can I move it to one?
Also, I get that event servers are for high-traffic chat rooms, but what is the purpose of group servers vs normal servers?
Group chat servers are used for group chats, accessible from the icon on the top left corner of the chat. Channel chats don’t use group chat servers.
So it is just that whispers are not accessible to third-party apps from non-group servers?
What types of things are group chat rooms generally used for?
group chats were originally for creating separate groups to chat in. Now the same servers host the whisper functionality. Get one from http://tmi.twitch.tv/servers?cluster=group
There is nothing channel specific about them, since whispers are peer-to-peer communication.
I also found the more general group chat page here: http://help.twitch.tv/customer/portal/articles/1500268-how-group-chat-works
So @livewhiletrue, you are saying if I connect to a chat server via IRC, make the correct CAP REQ, then I should hear any whispers sent to my user? I will go try that now…
Yes, that did work.
So, in summary:
In order for my bot to hear whispers directed at it, it needs to connect to a group chat server.
In order for my bot to hear from a stream’s channel, it needs to connect to a normal (or event) server.
Whispers weren’t implemented by the time I developed bots so I am not sure if you actually need to be connected to a group server to recieve whispers, but I do know that you need it to be able to send them. Better safe than sorry, I guess.
also, don’t confuse group chat servers with group chat rooms, they are different things.
Interesting, so if you create a group chat room, how would you connect via IRC? or can you?
This might help: https://blog.bashtech.net/twitch-group-chat-irc/
BTW you do need to be connected to the group chat to receive whispers.
You don’t actually have to create a group chat room in order to use whispers. You just need to:
Connect to one of the group chat servers
Issue the raw command
CAP REQ :twitch.tv/commands to let the server know you want to receive data besides PRIVMSGs
Listen for the WHISPER commands. Most clients/libraries that are not specifically designed for Twitch will need to be modified to support this command so I recommend watching the raw commands coming in over your connection to see how it needs to be parsed.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.