diff --git a/TL.php b/TL.php index de31ba7e..eb1aab33 100644 Binary files a/TL.php and b/TL.php differ diff --git a/TL.py b/TL.py index caa2d6a5..e16bf0c1 100644 --- a/TL.py +++ b/TL.py @@ -101,7 +101,7 @@ def serialize_param(bytes_io, type_, value): elif type_ in ["int128", "int256"]: assert isinstance(value, bytes) bytes_io.write(value) - elif type_ == 'string' or 'bytes': + elif type_ == 'string' or type_ == 'bytes': l = len(value) if l < 254: # short string format bytes_io.write(struct.pack('