diff --git a/src/Telegram/Type.php b/src/Telegram/Type.php index baf9325..3285b14 100644 --- a/src/Telegram/Type.php +++ b/src/Telegram/Type.php @@ -109,7 +109,7 @@ public function __debugInfo() { unset($result[$key]); } foreach ($result as $key => $value) { - if(!isset($value)){ + if(!isset($value) || $value instanceof stdClass){ unset($result[$key]); } }