From 88cab3eb643c7d798a330603680903c9cd07327f Mon Sep 17 00:00:00 2001 From: yago Date: Thu, 9 Jul 2015 23:15:05 +0200 Subject: [PATCH] Updated documentation --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index d0ffaa1..1db0727 100644 --- a/README.md +++ b/README.md @@ -208,8 +208,26 @@ See: https://core.telegram.org/bots/api#sendchataction * **Promise** +## getUserProfilePhotos(userId, [offset], [limit]) + +Use this method to get a list of profile pictures for a user. +Returns a [UserProfilePhotos](https://core.telegram.org/bots/api#userprofilephotos) object. + +See: https://core.telegram.org/bots/api#getuserprofilephotos + +### Params: + +* **Number|String** *userId* Unique identifier of the target user +* **Number** *[offset]* Sequential number of the first photo to be returned. By default, all photos are returned. +* **Number** *[limit]* Limits the number of photos to be retrieved. Values between 1—100 are accepted. Defaults to 100. + +### Return: + +* **Promise** + ## sendLocation(chatId, latitude, longitude, [options]) +Send location. Use this method to send point on the map. See: https://core.telegram.org/bots/api#sendlocation