Fixed a bug in type detection for TL string serialization (changed erroneus byte wrapper class name)

This commit is contained in:
danogentili 2017-09-06 20:44:29 +03:00
parent 058e8ca7e9
commit 29e77aa1ea

View File

@ -314,7 +314,7 @@ trait TL
return $concat;
case 'bytes':
if (!is_string($object) && !($object instanceof \danog\MadelineProto\TL\Bytes)) {
if (!is_string($object) && !($object instanceof \danog\MadelineProto\TL\Types\Bytes)) {
throw new Exception("You didn't provide a valid string");
}
$l = strlen($object);