mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-09 16:10:51 +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:
|
if username and not invite:
|
||||||
result = self.get_entity_rows_by_username(username)
|
result = self.get_entity_rows_by_username(username)
|
||||||
else:
|
else:
|
||||||
key = utils.resolve_invite_link(key)[1]
|
tup = utils.resolve_invite_link(key)[1]
|
||||||
if key:
|
if tup:
|
||||||
result = self.get_entity_rows_by_id(key, exact=False)
|
result = self.get_entity_rows_by_id(tup, exact=False)
|
||||||
|
|
||||||
elif isinstance(key, int):
|
elif isinstance(key, int):
|
||||||
result = self.get_entity_rows_by_id(key, exact)
|
result = self.get_entity_rows_by_id(key, exact)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user