Allow users to edit_admin on themselves

This commit is contained in:
Tanner Collin 2019-09-28 14:42:54 -06:00
parent 177fb4e2e5
commit baf472fdf7

View File

@ -864,8 +864,7 @@ class ChatMethods:
"""
entity = await self.get_input_entity(entity)
user = await self.get_input_entity(user)
if not isinstance(user, types.InputPeerUser):
if not isinstance(user, (types.InputPeerUser, types.InputPeerSelf)):
raise ValueError('You must pass a user entity')
perm_names = (