getUserProfilePhotos: Get a user's profile photos

View source: R/bot.R

getUserProfilePhotosR Documentation

Get a user's profile photos

Description

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

Usage

getUserProfilePhotos(user_id, offset = NULL, limit = 100L)

Arguments

user_id

Unique identifier of the target user.

offset

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

limit

(Optional). Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.

Details

You can also use it's snake_case equivalent get_user_profile_photos.

See getFile to know how to download files.

Examples

## Not run: 
bot <- Bot(token = bot_token("RTelegramBot"))
chat_id <- user_id("Me")

photos <- bot$getUserProfilePhotos(chat_id = chat_id)

## End(Not run)

telegram.bot documentation built on Sept. 7, 2022, 5:07 p.m.