mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-29 13:27:44 +00:00
Add accompanying test for PR #133
References: * Test retrieved from PR #182
This commit is contained in:
parent
ec354925d6
commit
82ee13e953
@ -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…
x
Reference in New Issue
Block a user