mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix infinite recursion on .get_entity by exact name
This commit is contained in:
parent
0731a1d698
commit
7f35ed59c6
|
@ -1934,8 +1934,8 @@ class TelegramClient(TelegramBareClient):
|
||||||
return entity
|
return entity
|
||||||
try:
|
try:
|
||||||
# Nobody with this username, maybe it's an exact name/title
|
# Nobody with this username, maybe it's an exact name/title
|
||||||
return self.get_entity(self.get_input_entity(string))
|
return self.get_entity(self.session.get_input_entity(string))
|
||||||
except (ValueError, TypeError):
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
raise TypeError(
|
raise TypeError(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user