I'm making a basic Control Panel for managing my Bot with PHP.
Basically I want to display the Profile picture / avatar of the user who is sending message to the bot.
However the user object has no photo_id, so is there way to get the user's avatar?
You need to use getUserProfilePhotos method, and then getFile .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.