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
When calling the `run()` method on the bot instance, it automatically recognize if use the `Polling` method to retrieve updates,
238
231
or `Webhook`, based on whether the current instance is running in a cli process, or is serving a web request.
239
232
:::
240
233
241
-
and remember to register it on you http routes:
234
+
:::danger
235
+
Remember to add your route to the `routes/api.php` file, or make sure that the route is not protected by any authentication middleware or CSRF protection.
236
+
:::
242
237
243
-
```php
244
-
// routes/api.php
238
+
### Set Webhook
239
+
To set the bot webhook, you can use the `nutgram:hook:set` command:
0 commit comments