From 99b0be9b7551b3259080fbe747531e75dc22aba7 Mon Sep 17 00:00:00 2001 From: Maxim Krasilnikov Date: Mon, 1 Mar 2021 13:59:54 +0300 Subject: [PATCH] Fixed typo in error message --- telethon/client/chats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/chats.py b/telethon/client/chats.py index 1402ae7e..5e552dd9 100644 --- a/telethon/client/chats.py +++ b/telethon/client/chats.py @@ -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