mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Process entities from sent requests/updates
This commit is contained in:
@@ -25,10 +25,14 @@ class UserMethods(TelegramBaseClient):
|
||||
if isinstance(future, list):
|
||||
results = []
|
||||
for f in future:
|
||||
results.append(await f)
|
||||
result = await f
|
||||
self.session.process_entities(result)
|
||||
results.append(result)
|
||||
return results
|
||||
else:
|
||||
return await future
|
||||
result = await future
|
||||
self.session.process_entities(result)
|
||||
return result
|
||||
except (errors.ServerError, errors.RpcCallFailError) as e:
|
||||
__log__.warning('Telegram is having internal issues %s: %s',
|
||||
e.__class__.__name__, e)
|
||||
|
Reference in New Issue
Block a user