From 07aadf9fbfae1bf60f3276f14785c9fcbb458b53 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 2 Mar 2022 12:57:44 +0100 Subject: [PATCH] Fix get_profile name errors --- telethon/_client/users.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telethon/_client/users.py b/telethon/_client/users.py index 909b15b4..42a83de2 100644 --- a/telethon/_client/users.py +++ b/telethon/_client/users.py @@ -153,6 +153,7 @@ async def is_user_authorized(self: 'TelegramClient') -> bool: async def get_profile( self: 'TelegramClient', profile: 'hints.DialogsLike') -> 'hints.Entity': + entity = profile single = not utils.is_list_like(entity) if single: entity = (entity,)