@@ -5,7 +5,6 @@ |
||
5 | 5 | use Exception; |
6 | 6 | use SplFileObject; |
7 | 7 | use Illuminate\Support\Facades\Log; |
8 | -use Illuminate\Support\Facades\Mail; |
|
9 | 8 | use Illuminate\Support\Facades\Request; |
10 | 9 | use Illuminate\Support\Facades\Session; |
11 | 10 | use Yaro\LogEnvelope\Drivers\DriverFactory; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | foreach ($this->config['chats'] as $idUser) { |
43 | 43 | $url = 'https://api.telegram.org/'. $this->config['token'] .'/sendMessage?disable_web_page_preview=true&chat_id='. $idUser |
44 | - . '&parse_mode=HTML&text='; |
|
44 | + . '&parse_mode=HTML&text='; |
|
45 | 45 | |
46 | 46 | @file_get_contents($url . $text); |
47 | 47 | } |
@@ -48,11 +48,11 @@ |
||
48 | 48 | |
49 | 49 | |
50 | 50 | $url = 'https://slack.com/api/chat.postMessage?' |
51 | - . 'token='. $this->config['token'] |
|
52 | - . '&channel='. urlencode($this->config['channel']) |
|
53 | - . '&text='. urlencode($text) |
|
54 | - . '&username='. urlencode($this->config['username']) |
|
55 | - . '&as_user=false&icon_url=http%3A%2F%2Fcherry-pie.co%2Fimg%2Flog-envelope.png&mrkdwn=1&pretty=1&attachments='. urlencode(json_encode([$attachments])); |
|
51 | + . 'token='. $this->config['token'] |
|
52 | + . '&channel='. urlencode($this->config['channel']) |
|
53 | + . '&text='. urlencode($text) |
|
54 | + . '&username='. urlencode($this->config['username']) |
|
55 | + . '&as_user=false&icon_url=http%3A%2F%2Fcherry-pie.co%2Fimg%2Flog-envelope.png&mrkdwn=1&pretty=1&attachments='. urlencode(json_encode([$attachments])); |
|
56 | 56 | |
57 | 57 | @file_get_contents($url); |
58 | 58 | } // end send |