mirror of
https://github.com/yagop/node-telegram-bot-api
synced 2025-08-31 06:16:07 +00:00
get user profile photos
This commit is contained in:
@@ -322,4 +322,16 @@ describe('Telegram', function () {
|
||||
});
|
||||
});
|
||||
|
||||
describe('#getUserProfilePhotos', function () {
|
||||
it('should get user profile photos', function (done) {
|
||||
var bot = new Telegram(TOKEN);
|
||||
bot.getUserProfilePhotos(USERID).then(function (resp) {
|
||||
resp.should.be.an.instanceOf(Object);
|
||||
resp.total_count.should.be.an.instanceOf(Number);
|
||||
resp.photos.should.be.an.instanceOf(Array);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user