Good afternoon friends; please advise. I used the WTelegramClient library. Did everything as described on the Readme page And right after that, my account was blocked. What have I done wrong?
The code I used
static string Config(string what)
{
switch (what)
{
case "api_id": return "YOUR_API_ID";
case "api_hash": return "YOUR_API_HASH";
case "phone_number": return "+12025550156";
case "verification_code": Console.Write("Code: "); return Console.ReadLine();
case "first_name": return "John"; // if sign-up is required
case "last_name": return "Doe"; // if sign-up is required
case "password": return "secret!"; // if user has enabled 2FA
default: return null; // let WTelegramClient decide the default config
}
}
...
using var client = new WTelegram.Client(Config);
I need to check if the user is registered in telegram and, if yes, return his ID.