2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-31 06:16:07 +00:00

getchat action

This commit is contained in:
Serhii Dmytruk
2016-06-10 12:51:10 +03:00
parent 335a5045d8
commit cf8e90e70f
3 changed files with 35 additions and 1 deletions

View File

@@ -131,6 +131,15 @@ describe('Telegram', function telegramSuite() {
});
});
describe('#getChat', function getMeSuite() {
it('should return an User object', function test() {
const bot = new Telegram(TOKEN);
return bot.getChat(USERID).then(resp => {
assert.ok(is.object(resp));
});
});
});
describe('#getUpdates', function getUpdatesSuite() {
it('should return an Array', function test() {
const bot = new Telegram(TOKEN);