'Python Bot Downloader

I want to build a telegram bot which will download dp of user but I'm not getting how to take input from user of their username ?

If they entered username then their dp should returned by the bot. I'm using python-telegram-bot library.



Solution 1:[1]

You can use the following endpoint.

details are here

Refer https://core.telegram.org/bots/api#getuserprofilephotos for further details

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1