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
Using the [notification facade][link-notification-facade] you can send a notification to multiple recipients at once.
364
372
365
-
> If you're sending bulk notifications to multiple users, the Telegram Bot API will not allow more than 30 messages per second or so.
373
+
> If you're sending bulk notifications to multiple users, the Telegram Bot API will not allow more than 30 messages per second or so.
366
374
> Consider spreading out notifications over large intervals of 8—12 hours for best results.
367
375
>
368
-
> Also note that your bot will not be able to send more than 20 messages per minute to the same group.
376
+
> Also note that your bot will not be able to send more than 20 messages per minute to the same group.
369
377
>
370
378
> If you go over the limit, you'll start getting `429` errors. For more details, refer Telegram Bots [FAQ](https://core.telegram.org/bots/faq#broadcasting-to-users).
371
379
@@ -386,8 +394,11 @@ Notification::send($recipients, new InvoicePaid());
386
394
-`token(string $token)`: Bot token if you wish to override the default token for a specific notification.
387
395
-`button(string $text, string $url, int $columns = 2)`: Adds an inline "Call to Action" button. You can add as many as you want, and they'll be placed 2 in a row by default.
388
396
-`buttonWithCallback(string $text, string $callback_data, int $columns = 2)`: Adds an inline button with the given callback data. You can add as many as you want, and they'll be placed 2 in a row by default.
397
+
-`buttonWithWebApp(string $text, string $url, int $columns = 2)`: Adds an inline button that opens a web application when clicked. This button can be used to direct users to a specific web app.
389
398
-`disableNotification(bool $disableNotification = true)`: Send the message silently. Users will receive a notification with no sound.
390
399
-`options(array $options)`: Allows you to add additional params or override the payload.
400
+
-`sendWhen(bool $condition)`: Sets a condition for sending the notification. If the condition is true, the notification will be sent; otherwise, it will not.
401
+
-`onError(Closure $callback)`: Sets a callback function to handle exceptions. Callback receives an array with `to`, `request`, `exception` keys.
391
402
-`getPayloadValue(string $key)`: Get payload value for given key.
0 commit comments