Learn R Programming

telegram.bot (version 2.0.0)

getUserProfilePhotos: getUserProfilePhotos

Description

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

Usage

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

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.

Examples

Run this code
# NOT RUN {
bot <- Bot(token = bot_token('RBot'))
chat_id <- user_id('me')

bot$getUserProfilePhotos(chat_id = chat_id)
# }

Run the code above in your browser using DataLab