Skip to content
New issue

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

Lumen 5.8 #56

Closed
circlefind opened this issue Oct 22, 2019 · 7 comments
Closed

Lumen 5.8 #56

circlefind opened this issue Oct 22, 2019 · 7 comments

Comments

@circlefind
Copy link

This support for lumen 5.8?
If can how to configure it
Please help

@irazasyed
Copy link
Member

Lumen doesn't have notification system, does it?

@circlefind
Copy link
Author

Yes right, but i have added laravel notification to lumen and telegram bot token in config/service
result message error : You must provide your telegram bot token to make any API requests

Must use Laravel for this package or have another solution?
Thanks for reply @irazasyed

@irazasyed
Copy link
Member

You need to register the service provider in that case but I have never tested this with Lumen. So I can't really give you the right solution, you should probably test and let us know.

Laravel is the best to use these notification channels, tho.

@NRDeshpande
Copy link

NRDeshpande commented Jan 21, 2020

I know this is closed but in case someone wanted help on this. I had the same issue but i am able to enable the Telegram notification for Lumen 6.0.*.

After registering NotificationServiceProvider in bootstrap/app.php, i have created services.php in my custom config folder and added
'telegram-bot-api' => [ 'token' => env('TELEGRAM_BOT_TOKEN') ]

and in bootstrap/app.php
$app->configure('services.php');

Finally registering TelegramServiceProvider in bootstrap/app.php worked for me.
$app->register(NotificationChannels\Telegram\TelegramServiceProvider::class);

@NakatoTeshika
Copy link

@NRDeshpande Hello, did you do something else when you had a problem with that, because I did it and nothing changed, I have the same error

@rvalitov
Copy link

There's a typo, it must be services, not services.php:

and in bootstrap/app.php
$app->configure('services.php');

Correct:

$app->configure('services');

Perhaps, you should also register the Notification Service Provider:

$app->register(Illuminate\Notifications\NotificationServiceProvider::class);

@irazasyed
Copy link
Member

New instructions were added to README. Using in Lumen for future reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants