How do I get the user profile picture of someone using the Telegram bot chat API?

11,394

You need to use getUserProfilePhotos method, and then getFile.

For example: Awesome Telegram Bot

Share:
11,394
Admin
Author by

Admin

Updated on July 03, 2022

Comments

  • Admin
    Admin almost 2 years

    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?