We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello Guys, I could not find any information about this, but "on Demand" is not supported for Telegram Notifications right ?
https://laravel.com/docs/5.8/notifications#on-demand-notifications
It would be great to post existing Notifications also to groups or channels. Is there a way to do this with like this ?
Notification::route(TelegramChannel::class, env('TELEGRAM_ADMIN_CHAT_ID')) ->notify(new NOTIFICATION($data)); Notification::route('telegram', env('TELEGRAM_ADMIN_CHAT_ID')) ->notify(new NOTIFICATION($data));
Notification::route(TelegramChannel::class, env('TELEGRAM_ADMIN_CHAT_ID')) ->notify(new NOTIFICATION($data));
Notification::route('telegram', env('TELEGRAM_ADMIN_CHAT_ID')) ->notify(new NOTIFICATION($data));
Thank you
The text was updated successfully, but these errors were encountered:
Hey @AntonLugtenburg,
On-demand notifications are supported by any notification channel. There is no special requirement. It's simply an anonymous notifiable class.
This should work
Notification::route(\NotificationChannels\Telegram\TelegramChannel::class, 'TELEGRAM_CHAT_ID') ->notify(new InvoicePaid($invoice));
Also, You can pass any valid Telegram chat ID that has interacted with your bot (So that can be user, group, or channel).
Sorry, something went wrong.
Thank you very much for your time and answering. Its working very nicely. Thanks again and have a good time
No branches or pull requests
Hello Guys,
I could not find any information about this, but "on Demand" is not supported for Telegram Notifications right ?
https://laravel.com/docs/5.8/notifications#on-demand-notifications
It would be great to post existing Notifications also to groups or channels.
Is there a way to do this with like this ?
Notification::route(TelegramChannel::class, env('TELEGRAM_ADMIN_CHAT_ID')) ->notify(new NOTIFICATION($data));
Notification::route('telegram', env('TELEGRAM_ADMIN_CHAT_ID')) ->notify(new NOTIFICATION($data));
Thank you
The text was updated successfully, but these errors were encountered: