2
0
mirror of https://github.com/yagop/node-telegram-bot-api synced 2025-08-30 13:58:27 +00:00

Updated documentation

This commit is contained in:
yago
2015-07-09 23:15:05 +02:00
parent e77ca6fef8
commit 88cab3eb64

View File

@@ -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