Skip to content

Commit 9c96f23

Browse files
committed
Update TOC and Revision
1 parent f08f286 commit 9c96f23

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ This package makes it easy to send Telegram notification using [Telegram Bot API
2828
- [Routing a Message](#routing-a-message)
2929
- [Handling Response](#handling-response)
3030
- [Exception Handling](#exception-handling)
31+
- [Using NotificationFailed Event](#using-notificationfailed-event)
32+
- [Using onError Callback](#using-onerror-callback)
3133
- [On-Demand Notifications](#on-demand-notifications)
3234
- [Sending to Multiple Recipients](#sending-to-multiple-recipients)
3335
- [Available Methods](#available-methods)
@@ -364,7 +366,7 @@ In case of failures, the package provides two ways to handle exceptions.
364366

365367
#### Using NotificationFailed Event
366368

367-
You can listen to the `Illuminate\Notifications\Events\NotificationFailed` event, which provides a `$data` array containing `to`, `request`, and `exception` keys.
369+
> You can listen to the `Illuminate\Notifications\Events\NotificationFailed` event, which provides a `$data` array containing `to`, `request`, and `exception` keys.
368370
369371
Listener example:
370372
```php
@@ -395,7 +397,7 @@ class HandleNotificationFailure
395397

396398
#### Using onError Callback
397399

398-
You can handle exceptions for individual notifications using the `onError` method in your notification:
400+
> You can handle exceptions for individual notifications using the `onError` method in your notification:
399401
400402
```php
401403
public function toTelegram($notifiable)
@@ -469,7 +471,7 @@ For more information on supported parameters, check out these [docs](https://cor
469471

470472
### Telegram Message Methods
471473

472-
Telegram message notifications are used to send text messages to the user. Supports [Telegram formatting options](https://core.telegram.org/bots/api#formatting-options)
474+
> Telegram message notifications are used to send text messages to the user. Supports [Telegram formatting options](https://core.telegram.org/bots/api#formatting-options)
473475
474476
- `content(string $content, int $limit = null)` - Set message content with optional length limit. Supports markdown.
475477
- `line(string $content)` - Add new line of content.
@@ -482,14 +484,14 @@ Telegram message notifications are used to send text messages to the user. Suppo
482484
483485
### Telegram Location Methods
484486

485-
Telegram location messages are used to share a geographical location with the user.
487+
> Telegram location messages are used to share a geographical location with the user.
486488
487489
- `latitude(float|string $latitude)` - Set location latitude.
488490
- `longitude(float|string $longitude)` - Set location longitude.
489491

490492
### Telegram File Methods
491493

492-
Telegram file messages are used to share various types of files with the user.
494+
> Telegram file messages are used to share various types of files with the user.
493495
494496
- `content(string $content)` - Set file caption. Supports markdown.
495497
- `view(string $view, array $data = [], array $mergeData = [])` - Use Blade template for caption.
@@ -507,7 +509,7 @@ Telegram file messages are used to share various types of files with the user.
507509

508510
### Telegram Contact Methods
509511

510-
Telegram contact messages are used to share contact information with the user.
512+
> Telegram contact messages are used to share contact information with the user.
511513
512514
- `phoneNumber(string $phone)` - Set contact phone.
513515
- `firstName(string $name)` - Set contact first name.
@@ -516,7 +518,7 @@ Telegram contact messages are used to share contact information with the user.
516518

517519
### Telegram Poll Methods
518520

519-
Telegram polls are a type of interactive message that allows users to vote on a question. Polls can be used to gather feedback, make decisions, or even run contests.
521+
> Telegram polls are a type of interactive message that allows users to vote on a question. Polls can be used to gather feedback, make decisions, or even run contests.
520522
521523
- `question(string $question)` - Set poll question.
522524
- `choices(array $choices)` - Set poll choices.

0 commit comments

Comments
 (0)