There was an error while loading. Please reload this page.
1 parent b85096c commit e0c3578Copy full SHA for e0c3578
pyrogram/file_id.py
@@ -159,7 +159,7 @@ def __init__(
159
minor: int = MINOR,
160
file_type: FileType,
161
dc_id: int,
162
- file_reference: bytes = None,
+ file_reference: bytes = b"",
163
url: str = None,
164
media_id: int = None,
165
access_hash: int = None,
@@ -239,7 +239,7 @@ def decode(file_id: str):
239
access_hash=access_hash
240
)
241
242
- file_reference = Bytes.read(buffer) if has_file_reference else None
+ file_reference = Bytes.read(buffer) if has_file_reference else b""
243
media_id, access_hash = struct.unpack("<qq", buffer.read(16))
244
245
if file_type in PHOTO_TYPES:
0 commit comments