Closed Bestulo closed 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.
Fixed in v0.7.0.
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 errorif 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.