Update known errors and error message

Closes #1713
This commit is contained in:
Lonami Exo
2021-03-07 16:09:47 +01:00
parent 8724949b54
commit 3ee94bdc5e
2 changed files with 3 additions and 1 deletions

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