title: How to use telegraf webhook?
body: <p>I want to use webHook in telegraf but i don't know how can i use it correctly.</p>
  <p>Here is my simple code.
  But it still uses polling.</p>
  <pre><code>    const Telegraf = require('telegraf');
      const bot = new Telegraf('123:ABC');
  
      bot.telegram.setWebhook('https://myaddress.com');
      bot.startWebhook(`/`, null, 4000);
  
  
  
      bot.use(function(ctx, next){
          try{
              if(ctx.chat == undefined) return;
              console.log(&quot;Hello World&quot;);
          }catch (e){
              console.log(&quot;Error&quot;);
          }
      });
  
  
      bot.launch();
  </code></pre>