Я использую эту Телеграмму Bot API для NodeJS https://github.com/yagop/node-telegram-bot-api и есть метод «getUserProfilePhotos», я использовал его и получил сообщение об ошибке:Телеграмма метод Bot API (getUserProfilePhotos)
"Bad Request: there is no photo in the request"
Вот мой код
var TelegramBot = require('node-telegram-bot-api');
var token = '********************************************';
var bot = new TelegramBot(token, {polling: true});
bot.on('message', function (msg) {
var chatId = msg.chat.id;
var userId = msg.from.id;
bot.sendMessage(chatId,"There is something");
bot.sendPhoto(chatId,bot.getUserProfilePhotos(userId, 1, 1) ,{caption: "It's your photo!"});
});
У меня есть фото профиля в моей телеграмме accaunt. Я не знаю, что делать. Кто-нибудь может мне помочь? Извините за мой анг)