title: C# Telegram bot stops working after internet disconnects
body: <p>I'm trying to get Telegram messages using C# API. The problem is when my internet connection breaks and then reconnects, the bot is not receiving my messages. Is there any solution for this?</p>
  
  <pre><code>public async Task StartAsync()
  {
     var botClient = new Telegram.Bot.TelegramBotClient("API_KEY");
     // check if last message is newer than already processed message
     DateTime lastChecked = DateTime.Now; 
     while (true)
     {
         var listenForChanges = await botClient.GetUpdatesAsync();
         if (lastChecked &lt; listenForChanges.Last().Message.Date)
         {
               lastChecked = DateTime.Now;
               //do something
         }
      }
  }
  </code></pre>