title: Telegram bot in asp.net Application_Start
body: <p>I write a telegrom bot with c# and put it in my asp.net web application . but does not work</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Security;
  using System.Web.SessionState;
  using Telegram.Bot;
  
  namespace MyFirstBot
  {
  public class Global : System.Web.HttpApplication
  {
      TelegramBotClient bot = new TelegramBotClient("My Token");
  
      TweetTestEntities context = new TweetTestEntities();
  
      protected void Application_Start(object sender, EventArgs e)
      {
          bot.OnMessage += Bot_OnMessage;
          bot.StartReceiving();
      }
  
      private void Bot_OnMessage(object sender, Telegram.Bot.Args.MessageEventArgs e)
      {
          //Some Code
      }
  }
  }
  </code></pre>
  
  <p>My application is on a host with no problem</p>