mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 11:40:11 +03:00
Allow users to edit_admin on themselves
This commit is contained in:
parent
177fb4e2e5
commit
baf472fdf7
|
@ -864,8 +864,7 @@ class ChatMethods:
|
||||||
"""
|
"""
|
||||||
entity = await self.get_input_entity(entity)
|
entity = await self.get_input_entity(entity)
|
||||||
user = await self.get_input_entity(user)
|
user = await self.get_input_entity(user)
|
||||||
|
if not isinstance(user, (types.InputPeerUser, types.InputPeerSelf)):
|
||||||
if not isinstance(user, types.InputPeerUser):
|
|
||||||
raise ValueError('You must pass a user entity')
|
raise ValueError('You must pass a user entity')
|
||||||
|
|
||||||
perm_names = (
|
perm_names = (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user