Skip to content

Commit

Permalink
chore: add set webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovler-Young committed Jun 24, 2024
1 parent 1d0de83 commit cbfe1e8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<YOUR_BOT_TOKEN>/setWebhook?url=<YOUR_IP_ADDRESS>: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<YOUR_BOT_TOKEN>/setWebhook?url=<TUNNELING_URL>/bot/webhook
```


## Deploy to Vercel

> May have some issues with complicated bot commands, sometimes might not work as expected.
Expand Down

0 comments on commit cbfe1e8

Please sign in to comment.