mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Let download_profile_photo work with min-User
This commit is contained in:
parent
04cf2953f6
commit
299b090cde
|
@ -272,7 +272,9 @@ class DownloadMethods:
|
|||
if isinstance(photo, (types.UserProfilePhoto, types.ChatPhoto)):
|
||||
dc_id = photo.dc_id
|
||||
loc = types.InputPeerPhotoFileLocation(
|
||||
peer=await self.get_input_entity(entity),
|
||||
# min users can be used to download profile photos
|
||||
# self.get_input_entity would otherwise not accept those
|
||||
peer=utils.get_input_peer(entity, check_hash=False),
|
||||
photo_id=photo.photo_id,
|
||||
big=download_big
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user