mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-20 03:56:38 +00:00
Make input entity errors less useless (#1726)
This commit is contained in:
parent
52ae9f09ce
commit
0ad9b1375e
@ -459,10 +459,10 @@ class UserMethods:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
raise ValueError(
|
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'
|
'docs.telethon.dev/en/latest/concepts/entities.html to'
|
||||||
' find out more details.'
|
' find out more details.'
|
||||||
.format(peer)
|
.format(peer, type(peer).__name__)
|
||||||
)
|
)
|
||||||
|
|
||||||
async def _get_peer(self: 'TelegramClient', peer: 'hints.EntityLike'):
|
async def _get_peer(self: 'TelegramClient', peer: 'hints.EntityLike'):
|
||||||
|
Loading…
Reference in New Issue
Block a user