mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
finalize does not need to return last_msg_id
This commit is contained in:
@@ -49,9 +49,12 @@ def test_rpc_error_parsing() -> None:
|
||||
PLAIN_REQUEST = b"Hey!"
|
||||
|
||||
|
||||
def unwrap_finalize(finalized: Optional[tuple[MsgId, bytes]]) -> bytes:
|
||||
def unwrap_finalize(finalized: Optional[tuple[MsgId, bytes] | bytes]) -> bytes:
|
||||
assert finalized is not None
|
||||
_, buffer = finalized
|
||||
if isinstance(finalized, tuple):
|
||||
_, buffer = finalized
|
||||
else:
|
||||
buffer = finalized
|
||||
return buffer
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user