atipugin / telegram-bot-ruby

Ruby wrapper for Telegram's Bot API
https://core.telegram.org/bots/api
Do What The F*ck You Want To Public License
1.35k stars 218 forks source link

Hot to get URL of user profile_photo? #230

Closed sergeydi closed 1 year ago

sergeydi commented 3 years ago

I received User objects by command getContacts. In User object I have profile_photo = profilePhoto {} with small = file {} and remote = remoteFile {} parameters. In remote = remoteFile {} object I have several parameters but no url. How to build url to load user profile photo?