Fix _get_input_notify on TLObjects

Closes #1725.
This commit is contained in:
Lonami
2021-03-13 19:06:19 +01:00
committed by GitHub
parent a1f91d6eb8
commit 52ae9f09ce

View File

@@ -599,6 +599,8 @@ class UserMethods:
notify.peer = await self.get_input_entity(notify.peer) notify.peer = await self.get_input_entity(notify.peer)
return notify return notify
except AttributeError: except AttributeError:
return types.InputNotifyPeer(await self.get_input_entity(notify)) pass
return types.InputNotifyPeer(await self.get_input_entity(notify))
# endregion # endregion