2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-30 22:05:28 +00:00

Add TelegramBot#getChat() method

Notes:

  Merge branch 'master' of https://github.com/serhiidmytruk/node-telegram-bot-api into pr/144

References:

  * PR #144: https://github.com/yagop/node-telegram-bot-api/pull/144
This commit is contained in:
GochoMugo
2016-10-10 13:34:00 +03:00
3 changed files with 34 additions and 0 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);