diff --git a/telethon/utils.py b/telethon/utils.py index 2784f446..6f2faf3b 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -1131,7 +1131,7 @@ def stripped_photo_to_jpg(stripped): Ported from https://github.com/telegramdesktop/tdesktop/blob/bec39d89e19670eb436dc794a8f20b657cb87c71/Telegram/SourceFiles/ui/image/image.cpp#L225 """ - if len(stripped) < 3 or stripped[0] != '\x01': + if len(stripped) < 3 or stripped[0] != 1: return stripped header = bytearray(b'\xff\xd8\xff\xe0\x00\x10JFIF\x00\x01\x01\x00\x00\x01\x00\x01\x00\x00\xff\xdb\x00C\x00(\x1c\x1e#\x1e\x19(#!#-+(0