I’ve been working on a Python bot that would send a whisper to my main Twitch account on a somewhat regular interval, generally about every 5 minutes. I’ve tried following the syntax provided on various other discussion topics (provided below), but I haven’t had any success receiving the whisper on my non-bot account. Recent discussions of issues with sending whispers seem to have shifted over to shadowbans/needing to be whitelisted, but given that I’m only sending these to myself (from bot->main account) and I’ve yet to successfully view any of the whispers a ban seems unlikely to me.
Ah sorry, I probably should have been clearer what was going on during what I ellipses-ed out. The last 3 lines of code are actually occurring in a separate function that received the previously socket “ws” as a parameter (“sock”).
Additionally these are traditional socket objects rather than websockets, “ws” was shorthand for “whisper socket” when I was trying to use a separate socket connection to send the whispers. I can see how that would be misleading though!
I just created another topic on this because I did not see this one. I am having the same issue. It seems that if you do not follow the bot account it cannot whisper you. However, if you do the same thing on the main site it works fine.
So I assume a change was made. I’m guessing it’s to stop spam bots maybe?
…So this seems to have randomly cropped up again this past week, in a slightly different flavor.
Ever since Monday/Tuesday this week, whispers are being registered on the Twitch website (i.e. if I am on a channel I receive the badge for a new whisper and can view it within the Conversations List button) but they are no longer being displayed in-line on the chat sidebar. I haven’t made any changes to my code and the whispers are still being delivered in some sense, so I’m assuming a change was made on Twitch’s side.
I’ve tried initiating the conversation from the user-side via a /w in the sidebar based on a couple of suggestions from here and it didn’t seem to make any difference. Has anyone encountered something similar this week?
My bot doesn’t appear to be able to send messages to a user unless the user has messaged me in the past. User doesn’t have the non-follower setting checked in settings, and is a follower/mod of the channel.
Hmm, I did see that thread but I’d missed your posts-- does seem like you’re encountering the same issues I am. Poking around the chat window in Chrome’s DevTools actually revealed something fairly interesting. Looking at the open websockets it seems like the chat window opens two connections to the IRC server: one for general chat traffic and one that specifically listens for inbound whispers. Any whispers sent to my account were still being received by both sockets, so I went ahead and threw together a quick extension to display the messages inline with chat manually.
Of course, after going through that exercise, today my whispers started working again same as they always have. Not sure exactly what changed; I noticed BTTV needed some new permissions as well so seems possible that there were some updates to the chat system?