به عرض سلام خدمت دوستان عزیز من با استفاده از کتابخانه tlsharp قصد دارم چک کنم که یک شماره در تلگرام قبلا ثبت شده یا نه
برای این کار قطعه کد زیر را ثبت کردم ( برای انجام مراحل بعدی مشکلی ندارم ) ولی وقتی برنامه را اجرا می کنم با خطا مواجه می شم کسی هست که بدونه دلیل این خطا چیه ؟
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TLSharp.Core;
namespace ConsoleApplication4
{
class Program
{
private static int apiID = ------;
private static string apiHash = "**********************";
static void Main(string[] args)
{
Task.Run(()=>TestUserInTelegramRegister());
Console.ReadLine();
}
static async Task TestUserInTelegramRegister()
{
var store = new FileSessionStore();
try
{
var client = new TelegramClient(apiID, apiHash, store, "session", null);
await client.ConnectAsync();
}
catch (Exception e)
{
Console.WriteLine(e);
}
}
}
}
کد HTML:
<p style="color:red">
error:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 149.154.175.100:443
</p>
Screenshot (34).png