Telegram Bot sendPhoto via node.js
问题 i'm using this function for sending photo via node.js but that not work. telegram-bot-api https://www.npmjs.com/package/telegram-bot-api var telegram = require('telegram-bot-api'); var api = new telegram({ token: '<PUT YOUR TOKEN HERE>', }); api.sendPhoto({ chat_id: <YOUR CHAT ID>, caption: 'This is my test image', // you can also send file_id here as string (as described in telegram bot api documentation) photo: '/path/to/file/test.jpg' }) .then(function(data) { console.log(util.inspect(data