Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23160

Getting user profile picture using Aiogram from forwarded message

$
0
0

The problem is when i use get_user_profile_photos in bot if it's regular message it's return values but when it's forwarded messages it's return nothing.

user_id = message.forward_origin.sender_user.idpfps: UserProfilePhotos = await bot.get_user_profile_photos(user_id)if pfps.total_count > 0: # return 0    # ...

Is there a workaround?

UPD

Second thought: problem in pfp privacy settings. But i just checked on person who have public profile picture and still nothing.


Viewing all articles
Browse latest Browse all 23160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>