Add accompanying test for PR #133

References:

  * Test retrieved from PR #182
experimental
GochoMugo 9 years ago
parent ec354925d6
commit 82ee13e953
  1. 12
      test/index.js

@ -205,6 +205,18 @@ describe('Telegram', function telegramSuite() {
assert.ok(is.object(resp)); assert.ok(is.object(resp));
}); });
}); });
it('should send a photo along with reply_markup', function test() {
const bot = new Telegram(TOKEN);
const photo = fs.readFileSync(`${__dirname}/bot.gif`);
return bot.sendPhoto(USERID, photo, {
reply_markup: {
hide_keyboard: true
}
}).then(resp => {
assert.ok(is.object(resp));
});
});
}); });
describe('#sendChatAction', function sendChatActionSuite() { describe('#sendChatAction', function sendChatActionSuite() {

Loading…
Cancel
Save