mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-25 00:34:19 +03:00
Fix get entity by exact name since 2ca8ddb
This commit is contained in:
parent
924b59d735
commit
0f7c2b891a
|
@ -202,9 +202,9 @@ class MemorySession(Session):
|
|||
if username and not invite:
|
||||
result = self.get_entity_rows_by_username(username)
|
||||
else:
|
||||
key = utils.resolve_invite_link(key)[1]
|
||||
if key:
|
||||
result = self.get_entity_rows_by_id(key, exact=False)
|
||||
tup = utils.resolve_invite_link(key)[1]
|
||||
if tup:
|
||||
result = self.get_entity_rows_by_id(tup, exact=False)
|
||||
|
||||
elif isinstance(key, int):
|
||||
result = self.get_entity_rows_by_id(key, exact)
|
||||
|
|
Loading…
Reference in New Issue
Block a user