title: why doesn't Telegram trigger my registered webhook?
body: <p>I develop simple telegram bot with php and host it on koding but telegram doesn't trigger my webhook; why ?!</p>
  
  <p>how to debug webhook? </p>
  
  <p>below code is my bot.</p>
  
  <pre><code>require_once "vendor/autoload.php";
  
  use Telegram\Bot\Api;
  
  $telegram=new Api('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');
  
  if (isset($_GET['hook'])){
      $msg=$telegram-&gt;setWebhook([
          "url" =&gt; "https://umkk50a5b157.mohsenti.koding.io/phpBot/index.php",
          "certificate" =&gt; "/etc/apache2/ssl/apache.crt"
      ]);
      echo json_encode($msg)."&lt;br&gt;";
      echo "setup webhook ok";
      exit;
  }
  
  if(isset($_GET['uhook'])){
      $telegram-&gt;removeWebhook();
      echo "remove webhook ok";
      exit;
  }
  
  if(isset($_GET['debug'])){
      $fp=fopen('debug.txt','r');
      while($read=fread($fp,4096))
          echo $read;
      fclose($fp);
      echo "debug end";
      exit;
  }
  
  $updates=$telegram-&gt;getWebhookUpdates();
  
  $fp=fopen('debug.txt','w');
  fwrite($fp,"hello");
  fwrite($fp,json_encode($updates));
  fclose($fp);
  
  foreach($updates as $update) {
      $telegram-&gt;sendMessage([
          'chat_id' =&gt; $update-&gt;getMessage()-&gt;getChat()-&gt;getId(),
          'text' =&gt; "bot received : " . $update-&gt;getMessage()-&gt;getText()
      ]);
  }
  </code></pre>
  
  <p>I save request message to a file and send debug request to bot php file to  read what's sent by telegram and hook to set webhook and uhook to unset hook.</p>
  
  <p>thank you</p>