Make edit_restriction plural

This commit is contained in:
Lonami 2019-07-05 10:47:58 +02:00 committed by GitHub
parent 251e8227eb
commit 3c4aaf9b2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -871,7 +871,7 @@ class ChatMethods(UserMethods):
else:
raise ValueError('You can only edit permissions in groups and channels')
async def edit_restriction(
async def edit_restrictions(
self: 'TelegramClient',
entity: 'hints.EntityLike',
user: 'typing.Optional[hints.EntityLike]' = None,