mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-04 04:00:18 +03:00
parent
3d66062eb4
commit
649620af1d
|
@ -89,7 +89,7 @@ class BinaryReader:
|
|||
|
||||
def tgread_string(self):
|
||||
"""Reads a Telegram-encoded string"""
|
||||
return self._decode_string(self.tgread_bytes())
|
||||
return str(self.tgread_bytes(), encoding='utf-8', errors='replace')
|
||||
|
||||
@staticmethod
|
||||
def _decode_string(encoded):
|
||||
|
|
Loading…
Reference in New Issue
Block a user