mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
Fix TelegramClient.get_input_entity always failing/missing return
This commit is contained in:
parent
79e36c98bd
commit
3bf70692b4
|
@ -930,7 +930,7 @@ class TelegramClient(TelegramBareClient):
|
|||
"""
|
||||
try:
|
||||
# First try to get the entity from cache, otherwise figure it out
|
||||
self.session.entities.get_input_entity(peer)
|
||||
return self.session.entities.get_input_entity(peer)
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
@ -960,7 +960,7 @@ class TelegramClient(TelegramBareClient):
|
|||
self.get_dialogs(limit=None)
|
||||
|
||||
try:
|
||||
self.session.entities.get_input_entity(peer)
|
||||
return self.session.entities.get_input_entity(peer)
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user