Skip to content

Commit 9b2d01a

Browse files
committed
Improve README
1 parent 2835c2d commit 9b2d01a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ use NotificationChannels\Telegram\TelegramUpdates;
8989

9090
// Response is an array of updates.
9191
$updates = TelegramUpdates::create()
92-
// (Optional). Get's the latest update. NOTE: All previous updates will be forgotten using this method.
92+
93+
// (Optional). Get's the latest update.
94+
// NOTE: All previous updates will be forgotten using this method.
9395
// ->latest()
9496

9597
// (Optional). Limit to 2 updates (By default, updates starting with the earliest unconfirmed update are returned).
@@ -107,7 +109,8 @@ if($updates['ok']) {
107109
}
108110
```
109111

110-
_Note: This method will not work if an outgoing webhook is set up._
112+
[!NOTE]
113+
> This method will not work if an outgoing webhook is set up.
111114
112115
For a complete list of available parameters for the `options`, see [Telegram Bot API docs][link-telegram-docs-getupdates].
113116

@@ -153,7 +156,7 @@ class InvoicePaid extends Notification
153156

154157
public function toTelegram($notifiable)
155158
{
156-
$url = url('/invoice/' . $this->invoice->id);
159+
$url = url('/invoice/' . $notifiable->invoice->id);
157160

158161
return TelegramMessage::create()
159162
// Optional recipient user id.
@@ -172,7 +175,8 @@ class InvoicePaid extends Notification
172175
->button('View Invoice', $url)
173176
->button('Download Invoice', $url);
174177

175-
// (Optional) Conditional notification. Only send if amount is greater than 0. Otherwise, don't send.
178+
// (Optional) Conditional notification.
179+
// Only send if amount is greater than 0. Otherwise, don't send.
176180
// ->sendWhen($notifiable->amount > 0)
177181

178182
// (Optional) Inline Button with Web App
@@ -481,7 +485,8 @@ For more information on supported parameters, check out these [docs](https://cor
481485
- `view(string $view, array $data = [], array $mergeData = [])` - Use Blade template with Telegram supported HTML or Markdown syntax content if you wish to use a view file instead of the `content()` method.
482486
- `chunk(int $limit = 4096)` - Split long messages (rate limited to 1/second).
483487

484-
> **Note:** Chunked messages will be rate limited to one message per second to comply with rate limitation requirements from Telegram.
488+
[!NOTE]
489+
> Chunked messages will be rate limited to one message per second to comply with rate limitation requirements from Telegram.
485490
486491
### Telegram Location Methods
487492

0 commit comments

Comments
 (0)