File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " matviib/telegram-logger" ,
3
- "description" : " " ,
4
- "keywords" : [],
3
+ "description" : " Put log messages from your Laravel app to your Telegram bot" ,
4
+ "keywords" : [
5
+ " laravel" ,
6
+ " laravel-5-package" ,
7
+ " logging" ,
8
+ " logger" ,
9
+ " logs" ,
10
+ " telegram" ,
11
+ " telegram-bot" ,
12
+ " telegram-logger" ,
13
+ " telegram-loging" ,
14
+ ],
5
15
"type" : " library" ,
6
16
"version" : " v0.0.1" ,
7
17
"license" : " MIT" ,
24
34
}
25
35
},
26
36
"minimum-stability" : " dev" ,
27
- "require" : {}
37
+ "require" : {
38
+ "laravel/framework" : " ^5.0"
39
+ }
28
40
}
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ class TelegramLog extends Log
13
13
*/
14
14
public static function telegram ($ note )
15
15
{
16
- $ token = env ('TELEGRAM_LOG_TOKEN ' );
17
- $ chat_id = env ('TELEGRAM_CHAT_ID ' );
16
+ $ token = env ('TELEGRAM_LOGGER_TOKEN ' );
17
+ $ chat_id = env ('TELEGRAM_LOGGER_CHAT_ID ' );
18
18
19
19
// to get chat_id send message to bot and then open the url:
20
- // https://api.telegram.org/bot<YourBOTToken >/getUpdates.
20
+ // https://api.telegram.org/bot<TELEGRAM_LOGGER_TOKEN >/getUpdates.
21
21
// search chat_id. this steps needed for adding EACH developer.
22
22
23
23
$ message = '<b> ' . env ('APP_NAME ' ) . '</b> ' . PHP_EOL
You can’t perform that action at this time.
0 commit comments