From 8bfcc76232ebbabdab28a80d3f97d94b4f1c4c18 Mon Sep 17 00:00:00 2001 From: Igor Kamyshev Date: Sun, 3 Mar 2019 19:00:03 +0200 Subject: [PATCH] fix: fix path for webhook --- lib/TelegramBot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TelegramBot.ts b/lib/TelegramBot.ts index 55ef3a0..f306150 100644 --- a/lib/TelegramBot.ts +++ b/lib/TelegramBot.ts @@ -49,7 +49,7 @@ export class TelegramBot { .setWebhook(`${this.sitePublicUrl}/${path}`) .then(() => console.log('Webhook set success')) - return this.bot.webhookCallback(path) + return this.bot.webhookCallback(`/${path}`) } public startPolling() {