mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 17:59:55 +03:00
Apply suggestions from code review
This commit is contained in:
parent
d194bb08a3
commit
7143aec152
|
@ -1290,15 +1290,14 @@ def resolve_invite_link(link):
|
|||
|
||||
try:
|
||||
if len(payload) == 12:
|
||||
# New format
|
||||
return 0, *struct.unpack('>LQ', payload)
|
||||
elif len(payload) == 16:
|
||||
# Old Format
|
||||
return struct.unpack('>LLQ', payload)
|
||||
else:
|
||||
raise TypeError
|
||||
pass
|
||||
except (struct.error, TypeError):
|
||||
return None, None, None
|
||||
pass
|
||||
return None, None, None
|
||||
|
||||
|
||||
def resolve_inline_message_id(inline_msg_id):
|
||||
|
|
Loading…
Reference in New Issue
Block a user