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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user