Login code not received (or received late)
Closed this issue · 2 comments
So i tried to log with a new installation without the session file and we have this specific code :
case "verification_code":
Console.Write("Code: ");
return Console.ReadLine();
the problem is that i dont get any code, so message on phone or in telegram, i already verified everything about logged details because with a previous test i was logged in with the .session file it was working fine.
Any idea ?
Edit : after 5 min i did received the code in the telegram app, so my guess is a rate limit probably, will be great if you could implement something that give us an error
I don't work for Telegram so I can't invent an error when Telegram servers said they successfully sent a code as part of the login procedure. 🤷🏻♂️
Please refer to https://tginfo.me/no-otp-en/
In any case, the library is asynchronous, so you can use something like task.WaitAsync(...) to add a timeout or cancellation token to your calls.