Fix issues raising errors, media dl and reply markup (#4592)

This commit is contained in:
orShadxw
2025-04-01 19:30:09 +03:30
committed by GitHub
parent c409d8c605
commit 3921914a96
3 changed files with 5 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
from typing import Optional, Tuple
from enum import IntEnum
from ..tl.types import InputPeerUser, InputPeerChat, InputPeerChannel
import struct
class SessionState:
"""
@@ -173,7 +173,7 @@ class Entity:
try:
ty, id, hash = struct.unpack('<Bqq', blob)
except struct.error:
raise ValueError(f'malformed entity data, got {string!r}') from None
raise ValueError(f'malformed entity data, got {blob!r}') from None
return cls(EntityType(ty), id, hash)