Answer the question
In order to leave comments, you need to log in
How to download a specific profile profile photo through Telethon?
There is an array of data about a specific user, where 0,1,2 is the order
0 - User(id=424322805
1 - is_self=False
2 - contact=True
3 - mutual_contact=False
4 - deleted=False
5 - bot=False
6 - bot_chat_history =False
7 - bot_nochats=False
8 - verified=False
9 - restricted=False
10 - min=False
11 - bot_inline_geo=False
12 - support=False
13 - scam=False
14 - access_hash=2832310685690367355
15 - first_name='Naskaanttka'
16 - last_name=None
17 - username='Anak3уaGrigorovich'
18 - phone='332426211410'
19 - photo=UserProfilePhoto(photo_id=182543423285424308
20 - photo_small=FileLocationToBeDeprecated(volume_id=257435025
21 - local_id=392782)
22 - photo_big=FileLocationToBeDeprecated(volume_id=2542425
23 - local_id=3932484)
24 - dc_Offid=2
25 - has_video=False_us)
26 - status=linedatewaser_us .datetime(2020
27 - 10
28 - 22
29 - 12
30 - 39
31 - 43
32 - tzinfo=datetime.timezone.utc))
33 - bot_info_version=None
34 - restriction_reason=[]
35 - bot_inline_placeholder=None
36 - lang_code= None
How to download a profile photo. in normal size and small size?
Answer the question
In order to leave comments, you need to log in
You have a Photo attribute, which in turn is an instance of the UserProfilePhoto class. You can look at his methods, most likely there is a method for downloading.
And there is also
photo_small=FileLocationToBeDeprecated
and
photo_big=FileLocationToBeDeprecated
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question