PRIVMSG doesnt send message from first token, but does from second

I have basic TCP client, connecting to twitch and srites to stream command from console.

using System.Net.Sockets;
using System.Text;

using TcpClient tcpClient = new();

    await tcpClient.ConnectAsync("", 6667);
    Console.WriteLine("Подключение установлено");
    NetworkStream stream = tcpClient.GetStream();

    Task.Run(() =>

        var responseData = new byte[1024];
        int bytes;
        string response = "";
        while (true)
            bytes = stream.Read(responseData);
            response = Encoding.UTF8.GetString(responseData, 0, bytes);

    stream.Write(Encoding.UTF8.GetBytes("PASS oauth:totalynotasecrettoken\r\n"));
    stream.Write(Encoding.UTF8.GetBytes("NICK nickname\r\n"));

    while (true)
catch (SocketException ex)

I successfuly sent message with PRIVMSG with first token, that have “user_read” scope, but cant send message with same command, that have all scopes, including “user_read” scope.


Oops, doesnt verified phone number for second account

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