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() {