From 0ad9b1375e7be81c212c0be047d99a0716e1b4f0 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 14 Mar 2021 02:32:01 +0200 Subject: [PATCH] Make input entity errors less useless (#1726) --- telethon/client/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telethon/client/users.py b/telethon/client/users.py index 6a5fc484..646914b2 100644 --- a/telethon/client/users.py +++ b/telethon/client/users.py @@ -459,10 +459,10 @@ class UserMethods: pass raise ValueError( - 'Could not find the input entity for {!r}. Please read https://' + 'Could not find the input entity for {} ({}). Please read https://' 'docs.telethon.dev/en/latest/concepts/entities.html to' ' find out more details.' - .format(peer) + .format(peer, type(peer).__name__) ) async def _get_peer(self: 'TelegramClient', peer: 'hints.EntityLike'):