Bot can't send privat messages

I want to write a private message via the IRC chat, but if I send this line for example to the server:

PRIVMSG #jtv :/w Text.

I get this response: NOTICE #jtv :You don’t have permission to perform that action.

While connecting I send this line to the server:


The response of the validating of my token says that:

“client_id”: “lalala”,
“login”: “lalala”,
“scopes”: [
“user_id”: “lalala”

Today I changed my bot from using the old access token that was valid for years to the token that is only valid for a few hours. Before that change everything worked fine.

Any idea how to fix this?


Should be:

PRIVMSG #jtv :.w someperson Text.

Further more send to the channel the bot is rather than #jtv iirc JTV as a send to got closed.

Did this change in the last weeks? Or why did it work before?
Do you mean it like that?

PRIVMSG #STREAMER :.w someperson Text.

No idea. I’ve never used /w in a irc bot myself. As / should invoke a server command, and /w is not a server command

And yes like that.

Thank you :slight_smile: I will try it tomorrow.

It appears you still need the chat_login scope to send whispers over IRC.

1 Like

I didnt try it now, but in the docs is written:

(Deprecated — cannot be requested by new clients.)
Log into chat and send messages.

Is there any way to get it nevertheless?

Use a client ID created earlier than a few weeks ago or wait for Twitch to fix the issue.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.