Use this method to get a list of profile pictures for a user
Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.
Body
Required
-
Unique identifier of the target user
-
Sequential number of the first photo to be returned. By default, all photos are returned.
-
Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Minimum value is
1
, maximum value is100
. Default value is100
.
POST
/getUserProfilePhotos
curl \
-X POST https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/getUserProfilePhotos \
-H "Content-Type: application/json" \
-d '{"user_id":42,"offset":42,"limit":100}'
Request example
{
"user_id": 42,
"offset": 42,
"limit": 100
}
Request examples
{
"user_id": 42,
"offset": 42,
"limit": 100
}
Response examples (200)
{
"ok": true,
"result": {
"total_count": 42,
"": [
[
{}
]
]
}
}
Response examples (200)
{
"ok": true,
"result": {
"total_count": 42,
"": [
[
{}
]
]
}
}
Response examples (default)
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
Response examples (default)
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}