@@ -92,7 +92,7 @@ |
||
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | //http://openweathermap.org/weather-conditions |
| 95 | - $conditions = [ |
|
| 95 | + $conditions = [ |
|
| 96 | 96 | 'clear' => ' ☀️', |
| 97 | 97 | 'clouds' => ' ☁️', |
| 98 | 98 | 'rain' => ' ☔', |
@@ -100,11 +100,11 @@ |
||
| 100 | 100 | |
| 101 | 101 | $result_object_types = [ |
| 102 | 102 | 'total_count' => 'UserProfilePhotos', //Response from getUserProfilePhotos |
| 103 | - 'file_id' => 'File', //Response from getFile |
|
| 104 | - 'title' => 'Chat', //Response from getChat |
|
| 105 | - 'username' => 'User', //Response from getMe |
|
| 106 | - 'user' => 'ChatMember', //Response from getChatMember |
|
| 107 | - 'url' => 'WebhookInfo', //Response from getWebhookInfo |
|
| 103 | + 'file_id' => 'File', //Response from getFile |
|
| 104 | + 'title' => 'Chat', //Response from getChat |
|
| 105 | + 'username' => 'User', //Response from getMe |
|
| 106 | + 'user' => 'ChatMember', //Response from getChatMember |
|
| 107 | + 'url' => 'WebhookInfo', //Response from getWebhookInfo |
|
| 108 | 108 | ]; |
| 109 | 109 | foreach ($result_object_types as $type => $object_class) { |
| 110 | 110 | if (isset($result[$type])) { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | 'first_name' => 'botname', |
| 158 | 158 | 'username' => 'namebot', |
| 159 | 159 | ]; |
| 160 | - $data['chat'] = ['id' => $data['chat_id']]; |
|
| 160 | + $data['chat'] = ['id' => $data['chat_id']]; |
|
| 161 | 161 | |
| 162 | 162 | $fake_response['result'] = $data; |
| 163 | 163 | } |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | '/bot' . self::$telegram->getApiKey() . '/' . $action, |
| 220 | 220 | $request_params |
| 221 | 221 | ); |
| 222 | - $result = (string) $response->getBody(); |
|
| 222 | + $result = (string) $response->getBody(); |
|
| 223 | 223 | |
| 224 | 224 | //Logging getUpdates Update |
| 225 | 225 | if ($action === 'getUpdates') { |
@@ -809,7 +809,7 @@ discard block |
||
| 809 | 809 | */ |
| 810 | 810 | public static function setWebhook($url = '', array $data = []) |
| 811 | 811 | { |
| 812 | - $data = array_intersect_key($data, array_flip([ |
|
| 812 | + $data = array_intersect_key($data, array_flip([ |
|
| 813 | 813 | 'certificate', |
| 814 | 814 | 'max_connections', |
| 815 | 815 | 'allowed_updates', |