GochoMugo / tgfancy

A Fancy, Higher-Level Wrapper for Telegram Bot API
MIT License
184 stars 16 forks source link

username resolver doesn't work on getUserProfilePhotos method #2

Closed Bestulo closed 7 years ago

Bestulo commented 7 years ago

If I try bot.sendMessage("@myusername", "message"); it gets sent,

if I try bot.getUserProfilePhotos("@myusername").then((res)=>{bot.sendPhoto(msg.chat.id, res.photos[0][0].file_id}); I get a 400 user not found error

if I try bot.getUserProfilePhotos(msg.from.id).then((res)=>{bot.sendPhoto(msg.chat.id, res.photos[0][0].file_id}); I get a nice picture in my inbox.

GochoMugo commented 7 years ago

The chat ID is not resolved since we have not added the function i.e. TelegramBot#getUserProfilePhotos() to the list of fancied functions with chat ID resolution. See the list.

The missing functions include:

I will add support for them asap.

GochoMugo commented 7 years ago

Fixed in v0.7.0.