Fixed typo in error message

This commit is contained in:
Maxim Krasilnikov 2021-03-01 13:59:54 +03:00 committed by GitHub
parent d9691c9342
commit 99b0be9b75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1274,7 +1274,7 @@ class ChatMethods:
"""
entity = await self.get_input_entity(entity)
if helpers._entity_type(entity) != helpers._EntityType.CHANNEL:
raise TypeError('You must pass a user entity')
raise TypeError('You must pass a channel entity')
# Don't bother fetching the Channel entity (costs a request), instead
# try to guess and if it fails we know it's the other one (best case