File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -206,7 +206,8 @@ public static function execute($action, array $data = null)
206206 $ request_params
207207 );
208208 } catch (RequestException $ e ) {
209- throw new TelegramException ($ e ->getMessage ());
209+ //throw new TelegramException($e->getMessage());
210+ throw new TelegramException ($ e ->getResponse ()->getBody ()->getContents ());
210211 } finally {
211212 //Logging verbose debug output
212213 TelegramLog::endDebugLogTempStream ("Verbose HTTP Request output: \n%s \n" );
@@ -249,7 +250,8 @@ public static function downloadFile(File $file)
249250 ['debug ' => $ debug_handle , 'sink ' => $ loc_path ]
250251 );
251252 } catch (RequestException $ e ) {
252- throw new TelegramException ($ e ->getMessage ());
253+ //throw new TelegramException($e->getMessage());
254+ throw new TelegramException ($ e ->getResponse ()->getBody ()->getContents ());
253255 } finally {
254256 //Logging verbose debug output
255257 TelegramLog::endDebugLogTempStream ("Verbose HTTP File Download Request output: \n%s \n" );
You can’t perform that action at this time.
0 commit comments