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 can either send the notification by providing with the chat id of the recipient to the `to($chatId)` method like shown in the above example or add a `routeNotificationForTelegram()` method in your notifiable model:
189
190
@@ -201,6 +202,12 @@ public function routeNotificationForTelegram()
201
202
...
202
203
```
203
204
205
+
### Handling Response
206
+
207
+
You can make use of the [notification events](https://laravel.com/docs/5.8/notifications#notification-events) to handle the response from Telegram. On success, your event listener will recieve a [Message](https://core.telegram.org/bots/api#message) object with various fields as appropriate to the notification type.
208
+
209
+
For a complete list of response fields, please refer the Telegram Bot API's [Message object](https://core.telegram.org/bots/api#message) docs.
210
+
204
211
### Available Message methods
205
212
206
213
-`to($chatId)`: (integer) Recipient's chat id.
@@ -267,7 +274,6 @@ The MIT License (MIT). Please see [License File](LICENSE.md) for more informatio
0 commit comments