mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-03 11:40:11 +03:00
Make edit_restriction plural
This commit is contained in:
parent
251e8227eb
commit
3c4aaf9b2b
|
@ -871,7 +871,7 @@ class ChatMethods(UserMethods):
|
||||||
else:
|
else:
|
||||||
raise ValueError('You can only edit permissions in groups and channels')
|
raise ValueError('You can only edit permissions in groups and channels')
|
||||||
|
|
||||||
async def edit_restriction(
|
async def edit_restrictions(
|
||||||
self: 'TelegramClient',
|
self: 'TelegramClient',
|
||||||
entity: 'hints.EntityLike',
|
entity: 'hints.EntityLike',
|
||||||
user: 'typing.Optional[hints.EntityLike]' = None,
|
user: 'typing.Optional[hints.EntityLike]' = None,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user