We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
api.core.primitives.string.py
1 parent b619818 commit 392f007Copy full SHA for 392f007
1 file changed
pyrogram/api/core/primitives/string.py
@@ -24,7 +24,7 @@
24
class String(Bytes):
25
@staticmethod
26
def read(b: BytesIO, *args) -> str:
27
- return super(String, String).read(b).decode()
+ return super(String, String).read(b).decode(errors='replace')
28
29
def __new__(cls, value: str) -> bytes:
30
return super().__new__(cls, value.encode())
0 commit comments