Skip to content

Commit 392f007

Browse files
committed
Fixed decode error in api.core.primitives.string.py
1 parent b619818 commit 392f007

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/api/core/primitives/string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
class String(Bytes):
2525
@staticmethod
2626
def read(b: BytesIO, *args) -> str:
27-
return super(String, String).read(b).decode()
27+
return super(String, String).read(b).decode(errors='replace')
2828

2929
def __new__(cls, value: str) -> bytes:
3030
return super().__new__(cls, value.encode())

0 commit comments

Comments
 (0)