2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-09-05 08:45:44 +00:00

Throw error if Unsupported Buffer file type. Test 'should send a video from a Buffer'

This commit is contained in:
Yago
2016-01-03 17:03:04 +01:00
parent fd4cf4e353
commit f2153a7754
2 changed files with 14 additions and 0 deletions

View File

@@ -367,6 +367,17 @@ describe('Telegram', function () {
done();
});
});
/* Currently unsupported (https://github.com/sindresorhus/file-type/pull/44)
it('should send a video from a Buffer', function (done) {
var bot = new Telegram(TOKEN);
var video = fs.readFileSync(__dirname+'/video.mp4');
bot.sendVideo(USERID, video).then(function (resp) {
resp.should.be.an.instanceOf(Object);
done();
});
});
*/
});
describe('#sendVoice', function () {