2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-28 12:57:38 +00:00

Changed to sendDocument on test 'should send a document from id'

This commit is contained in:
Yago 2015-07-07 14:28:50 +02:00
parent f30393401e
commit 3ed643fd24

View File

@ -221,7 +221,7 @@ describe('Telegram', function () {
var bot = new Telegram(TOKEN); var bot = new Telegram(TOKEN);
// Send the same photo as before // Send the same photo as before
var document = documentId; var document = documentId;
bot.sendPhoto(USERID, document).then(function (resp) { bot.sendDocument(USERID, document).then(function (resp) {
resp.should.be.an.instanceOf(Object); resp.should.be.an.instanceOf(Object);
done(); done();
}); });