Skip to content

Commit f42529e

Browse files
committed
update readme
1 parent 313a356 commit f42529e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,23 @@ For using this package you need to create Telegram bot
5656
3. Set up name and bot-name for your bot.
5757
4. Get token and add it to your .env file (it is written above)
5858
5. Go to your bot and send ``/start`` message
59+
60+
## Lumen support
61+
62+
To make it work with Lumen, you need also run two steps:
63+
64+
1. Place config/telegram-logger.php file with following code:
65+
```php
66+
<?php
67+
68+
return [
69+
// Telegram logger bot token
70+
'token' => env('TELEGRAM_LOGGER_BOT_TOKEN'),
71+
72+
// Telegram chat id
73+
'chat_id' => env('TELEGRAM_LOGGER_CHAT_ID')
74+
];
75+
```
76+
77+
2. Uncomment ```$app->withFacades();``` and configure the file ```$app->configure('telegram-logger');``` at bootstrap/app.php
78+
3. Place default Laravel/Lumen logging file to config/logging.php (to add new channel).

0 commit comments

Comments
 (0)