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(); });