wiz0u/WTelegramClient

RpcError every couple seconds after bot starts

Closed this issue · 3 comments

My code:

        public static void Start()
        {
            DoLogin("").Wait();
        }

        public static async Task DoLogin(string loginInfo)
        {
            while (client.User == null)
                switch (await client.Login(loginInfo)) // returns which config is needed to continue login
                {
                    case "verification_code": 
                        Console.Write("Code: "); 
                        loginInfo = Console.ReadLine(); 
                        break;
                    case "password": 
                        loginInfo = ""; 
                        break; // if user has enabled 2FA
                    default: 
                        loginInfo = null; break;
                }
            Console.WriteLine($"We are logged-in as {client.User} (id {client.User.id})");
        }

After i use the Start() command, everything works fine, but every about 10 seconds i receive this error in the console:

1>Sending   MsgContainer                             2024-01-03 02:25:50Z (svc)
            ⸮ PingDelayDisconnect                    #C1B5
            ⸮ MsgsAck
1>Receiving Pong                                     2024-01-03 02:25:51Z (svc)
1>Sending   InvokeWithoutUpdates`1                   #D8DA
1>Receiving RpcResult                                2024-01-03 02:25:56Z
             ⸮ RpcError 400 INPUT_METHOD_INVALID_3105996036_128317 #D8DA

It does not affect my code but its annoying and i dont know why it happens.
Im using .NET Core 3.1 and the latest version of WTelegram

are you using client.DisableUpdates(); ?

try version 3.6.4-dev.1

i tried version 3.6.5 and it solved the issue, thank you!