From cbfe1e8a6b3015be32bb2f8cc086494daf731319 Mon Sep 17 00:00:00 2001 From: Ovler Date: Mon, 24 Jun 2024 15:34:02 +0000 Subject: [PATCH] chore: add set webhook --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 74079f4..82ae4f9 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,19 @@ docker run -d \ biliarchiverbot ``` +If you have public IP, you can set the bot's webhook to your IP address. + +``` shell + https://api.telegram.org/bot/setWebhook?url=:5173/bot/webhook +``` + +If you don't have public IP, you can use [ngrok](https://ngrok.com/) to expose your local server to the internet, or use any other tunneling service. Caddy and Nginx are also good choices. + +``` shell + https://api.telegram.org/bot/setWebhook?url=/bot/webhook +``` + + ## Deploy to Vercel > May have some issues with complicated bot commands, sometimes might not work as expected.