title: send multiple videos at the same time on telegram bot using c#?
body: <p>I have create one api for sending multiple videos at the same time in a loop with telegram bot using c#.</p>
  
  <p>I am also getting success for uploading videos on telegram bot. </p>
  
  <p>However, I am facing one issue on this task. Right now I am uploading 1 or 2 videos at the same time in the loop and it's works. But when I try with 10 or more videos, only 2 or 3 videos get uploaded successfully, and suddenly my utility stops. </p>
  
  <p>It would be very helpful if someone could identify my mistake in the following code. I am not getting any errors any but my all the videos don't get uploaded and utility stops.</p>
  
  <p>Here 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++)
          {
              string VideoUrl = null;
              VideoUrl = CaseMediaPath + ds.Tables[0].Rows[i]["Url"].ToString();        
              var sb = new StringBuilder();
              sb.Append("abc");             
  
              await Bot.SendVideoAsync("@abc", video: VideoUrl, caption: sb.ToString(), replyMarkup: ReplyMarkup); 
  
              await Task.Delay(180000); // i am also try like this but not getting success
          }
      }
  }
  </code></pre>
  
  <p>This is my API, it works very well but only for a few videos. </p>