Skip to content

Commit 0683016

Browse files
committed
commit
1 parent cbe7be7 commit 0683016

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

composer.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
{
22
"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+
],
515
"type": "library",
616
"version": "v0.0.1",
717
"license": "MIT",
@@ -24,5 +34,7 @@
2434
}
2535
},
2636
"minimum-stability": "dev",
27-
"require": {}
37+
"require": {
38+
"laravel/framework": "^5.0"
39+
}
2840
}

src/TelegramLog.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ class TelegramLog extends Log
1313
*/
1414
public static function telegram($note)
1515
{
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');
1818

1919
// 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.
2121
// search chat_id. this steps needed for adding EACH developer.
2222

2323
$message = '<b>' . env('APP_NAME') . '</b>' . PHP_EOL

0 commit comments

Comments
 (0)