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

experimental
Yago 11 years ago
parent f30393401e
commit 3ed643fd24
  1. 2
      test/index.js

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

Loading…
Cancel
Save