Beispiel #1
0
 public string SendCodeRequest(TLClient client, string phone)
 {
     try
     {
         var ha = Task.Run(() => client.SendCodeRequestAsync(phone));
         //var ha = client.SendCodeRequestAsync(phone);
         ha.Wait();
         return(ha.Result);
     }
     catch (Exception ex)
     {
         throw;
     }
 }