fix UserMethods get_entity type hints

Fix type hints for get_entity method in UserMethods class to include list of Entity objects
This commit is contained in:
Serj Berbeha 2024-04-18 15:29:05 +03:00
parent d3a201a277
commit 8a5ea705f0

View File

@ -222,7 +222,7 @@ class UserMethods:
async def get_entity(
self: 'TelegramClient',
entity: 'hints.EntitiesLike') -> 'hints.Entity':
entity: 'hints.EntitiesLike') -> typing.Union['hints.Entity', typing.List['hints.Entity']]:
"""
Turns the given entity into a valid Telegram :tl:`User`, :tl:`Chat`
or :tl:`Channel`. You can also pass a list or iterable of entities,