Hello,
I have developed a bot in .net. I can connect to twitch, send and receive public messages.
however, if I send a whisper command I get the following error message that I assume is known to everyone:
msg-id=whisper_restricted;target-user-id=xxxxxxxx :tmi.twitch.tv NOTICE #yyyyyyyyy :Your settings prevent you from sending this whisper.
it is not an error in the command because I tried everything:
Whispers essentially donât work for bots, regardless of if theyâre verified or not. The whisper system was not initially designed for bot usage, and with whatever systems Twitch has in place to prevent misuse it means there is no reliable way for a bot to use whispers, it may work sometimes, or it may not ÂŻ_(ă)_/ÂŻ
The docs include info on whispers because theoretically itâs possible to whisper, but thereâs so many restrictions, and spam bot prevention measures that arenât disclosed in the docs, that itâs simply not a reliable system for bots to use as they are more likely for a whisper to fail than for it to be successful.
Because of that, the recommendation whoâve been working with bots on Twitch for years has always been to use other methods of communication. For example for chat bot, use chat. For bots that integrate with Extensions, use that to send data to specific users, or for some other use cases the best solution may be an off-site solution. Whispers are not recommended for bot usage, and if you try to use them then youâll continue to run issues and thereâs no avoiding that.
I mean if youâre using a bot thatâs connected to chat, the best method of communication is chat messages in a channel itself rather than a whisper. Botâs that are only connected to chat and are not an Extension, or running an external site, should generally stick to just sending messages publicly in channels.