From 3ed643fd242fe9c6e9380587edea34b5851fe76f Mon Sep 17 00:00:00 2001 From: Yago Date: Tue, 7 Jul 2015 14:28:50 +0200 Subject: [PATCH] Changed to sendDocument on test 'should send a document from id' --- test/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index cd4adb2..2eb868e 100644 --- a/test/index.js +++ b/test/index.js @@ -221,7 +221,7 @@ describe('Telegram', function () { var bot = new Telegram(TOKEN); // Send the same photo as before var document = documentId; - bot.sendPhoto(USERID, document).then(function (resp) { + bot.sendDocument(USERID, document).then(function (resp) { resp.should.be.an.instanceOf(Object); done(); });