Beispiel #1
0
 private TLAbsMessages GetHistory(TLClient client, TLInputPeerUser target, TLDialog dia)
 {
     try
     {
         var historyAsync = Task.Run(() => client.GetHistoryAsync(target, 0, -1, dia.UnreadCount));
         historyAsync.Wait();
         var hist = historyAsync.Result;
         return(hist);
     }
     catch (Exception ex)
     {
         return(null);
     }
 }