You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**You need to set up your domain and SSL certificate to use the webhook**. You can build your own server or use a service like [Heroku](https://www.heroku.com/).
60
+
61
+
In this example, we will use localhost and ngrok to set up domain and webhook:
62
+
1. Download and install [ngrok](https://ngrok.com/download).
63
+
2. Run command in terminal: `php -S localhost:8000`
64
+
3. Run command in terminal: `ngrok http 8000`
65
+
4. Copy the HTTPS URL provided by ngrok and paste it into your `.env` file.
66
+
67
+
```shell
68
+
APP_URL=https://123456789.ngrok.io
69
+
```
70
+
57
71
### Set the webhook
58
72
59
73
#### Set the webhook from the source code
60
74
61
75
After setting up your domain and SSL certificate, you need to set up the webhook for your bot. Go to:
62
76
63
-
```http request
77
+
```text
64
78
<APP_URL>/setWebhook.php
65
79
```
66
80
81
+
> **Note:** Replace `<APP_URL>` with your app URL in .env file.
82
+
67
83
If you see the following message, it means that the webhook has been sent successfully.
68
84
69
85
```json
@@ -74,14 +90,16 @@ If you see the following message, it means that the webhook has been sent succes
74
90
75
91
If you want to set the webhook manually, you can use the following URL:
0 commit comments