mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-10 16:12:22 +03:00
Fix get_profile name errors
This commit is contained in:
parent
7413b6a630
commit
07aadf9fbf
|
@ -153,6 +153,7 @@ async def is_user_authorized(self: 'TelegramClient') -> bool:
|
||||||
async def get_profile(
|
async def get_profile(
|
||||||
self: 'TelegramClient',
|
self: 'TelegramClient',
|
||||||
profile: 'hints.DialogsLike') -> 'hints.Entity':
|
profile: 'hints.DialogsLike') -> 'hints.Entity':
|
||||||
|
entity = profile
|
||||||
single = not utils.is_list_like(entity)
|
single = not utils.is_list_like(entity)
|
||||||
if single:
|
if single:
|
||||||
entity = (entity,)
|
entity = (entity,)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user