title: Cannot receive incoming JSON from Telegram webHook ASP.NET
body: <p>So the problem is that I have set a webHook address for my Telegram bot like this: 
  <code>https://api.telegram.org/bot&lt;TOKEN&gt;/setWebHook?url=https://evolhookah.com/Home/ReceiveWebhook</code></p>
  
  <p>Afterwards, I received confirmation in JSON format stating that from now Telegram will send messages to that URL. </p>
  
  <p>Then I created a method ReceiveWebhook(), which is responsible for handling incoming requests, which used to look like these methods (none of them worked):</p>
  
  <pre><code>    public ActionResult ReceiveJSON(int? id)
      {
          Stream req = Request.InputStream;
          req.Seek(0, System.IO.SeekOrigin.Begin);
          string receivedJson = new StreamReader(req).ReadToEnd();
          var bs = new TgDesserialize(); //Class containing JSON desserializing function
          PeopleAttributes people = bs.desserializer(receivedJson); //desserializer manages with desserializing received JSON and returns an object people filled up with necessary values
          return Content(people.firstName);
      }
  </code></pre>
  
  <p>Unfortunately idea with a stream did NOT work, then I decided to receive incoming JSON as a string, and this is how it looked like:</p>
  
  <pre><code>    public ActionResult JSONString(String receivedJSON)
      {
          var bs = new TgDesserialize(); 
          PeopleAttributes people = bs.desserializer(receivedJSON); 
          return Content(people.firstName);
      }
  </code></pre>
  
  <p>Problem: Everytime I receive a webhook, I either get null JSON or cannot receive it properly in the controller. </p>
  
  <p>Questions: </p>
  
  <ol>
  <li>Is there any possible way I can check that Telegram is sending JSON with data inside while sending a webHook?</li>
  <li>Why do I always get NULLs, while <code>https://api.telegram.org/bot&lt;TOKEN&gt;/getUpdates</code> shows that I have data inside JSON?</li>
  <li>Am I receiving my JSON in a wrong way in a controller? If yes, what is the best practice of handling incoming JSON? </li>
  </ol>