Fixed a bug in type detection for TL string serialization (changed erroneus byte wrapper class name)
This commit is contained in:
parent
058e8ca7e9
commit
29e77aa1ea
|
@ -314,7 +314,7 @@ trait TL
|
||||||
|
|
||||||
return $concat;
|
return $concat;
|
||||||
case 'bytes':
|
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");
|
throw new Exception("You didn't provide a valid string");
|
||||||
}
|
}
|
||||||
$l = strlen($object);
|
$l = strlen($object);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user