title: Cloud function ids not responding to Telegram webhook
body: <p>I'm trying to write my first telegram bot. I decided to use google cloud functions to execute bot logic. The code that I'm using is</p>
  <pre><code>const bot = new Telegraf(config().bot.token)
  bot.start(ctx =&gt; ctx.reply('Welcome'))
  bot.hears('hi', ctx =&gt; ctx.reply('Hey there'))
  
  bot.telegram.setWebhook(
    `https://us-central1-some-project.cloudfunctions.net/${process.env.FUNCTION_TARGET}`,
  );
  
  exports.bot = https.onRequest((req, res) =&gt; {
    bot.handleUpdate(req.body, res);
  })
  </code></pre>
  <p>The problem is that after some time of inactivity bot stops responding to messages. After redeploy of function it starts working again. I don't even know how to debug that issue.</p>