【发布时间】:2016-09-11 04:47:37
【问题描述】:
我用 Nodejs 编写了一个 Telegram 机器人。要将图像发送给用户,我使用以下命令:
bot.sendPhoto({
chat_id: msg.chat.id,
caption: 'Test caption',
files: {
photo: '../change-db-shop-url.png'
}
}, function (err, msg) {
console.log(err);
console.log(msg);
});
显示此错误:
未处理的拒绝错误:400 {"ok":false,"error_code":400,"description":"错误请求:没有 请求中的照片”}
你能帮帮我吗?
【问题讨论】:
标签: node.js telegram-bot