title: Getting error "Request timed out" using telegram bot with c#?
body: <p>I am go send 10 images with caption on the telegram bot using c#.but just go there 2 or 3 image and getting error like this "<strong>Request timed out</strong>" from the api "<strong>SendPhotoAsync</strong>".i don't know where is mistake. i am run this in my local pc. and my pc is fully under in network so why i am getting this error any one know please let me.</p>
  
  <p>This is my code=></p>
  
  <pre><code>public async Task SendCasesOnTelegramBot()
  {             
    DataSet ds = DataAccess.ExecuteDataset(Setting.ConnectionString(), "GetPostForTelegramBot");
  if (ds != null &amp;&amp; ds.Tables.Count &gt; 0)
  {
     for (int i = 0; i &lt; ds.Tables[0].Rows.Count; i++)
     {
         var imageData = webClient.DownloadData(MediaPath + ds.Tables[0].Rows[i]["Url"].ToString());
         ms = new MemoryStream(imageData);       
         var sb = new StringBuilder();
         sb.Append(ds.Tables[0].Rows[i]["Description"].ToString());                                 
  
             await Bot.SendPhotoAsync("@abcgrop", new FileToSend(ds.Tables[0].Rows[i]["Url"].ToString(), ms), sb.ToString()); // here i am getting error
  
    }
   }
  }
  </code></pre>
  
  <p>this is my code and i am getting error. </p>