v1

latestOpenAPI 3.0.32026-07-1416059.6 KB

getUserProfilePhotos

Use this method to get a list of profile pictures for a user.

post/bot{token}/getUserProfilePhotos

Path parameters

tokenstring required

Your Bot Token

Request body

user_idinteger

Unique identifier of the target user

offsetinteger

Sequential number of the first photo to be returned. By default, all photos are returned.

limitinteger

Limits the number of photos to be retrieved. Values between 1—100 are accepted. Defaults to 100.

Response

200

okboolean

Example response

{
  "ok": true,
  "result": {
    "total_count": 2,
    "photos": [
      [
        {
          "file_id": "AgABC12345678910111213abc...",
          "file_size": 8394,
          "width": 160,
          "height": 160
        }
      ]
    ]
  }
}