const Telegraf = require('../')

const bot = new Telegraf(process.env.BOT_TOKEN)

// Set telegram webhook
// npm install -g localtunnel && lt --port 3000
bot.setWebHook('https://--------.localtunnel.me/secret-path', {content: 'webhook.pem'})

// Start https webhook
// FYI: First non-file reply will be served via webhook response
bot.startWebHook('/secret-path', null, 3000)

bot.on('text', (ctx) => ctx.reply('Hey there!'))

@@ -151,16 +151,25 @@
 000%0Abot.
+telegram.
 setWebHo
@@ -220,34 +220,8 @@
 ath'
-, %7Bcontent: 'webhook.pem'%7D
 )%0A%0A/

update webhook example