getUserProfilePhotos
Returns UserProfilePhotos ↗
Use this method to get a list of profile pictures for a user.
Required: user_id · Optional: 2 parameters
Try it
TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("get_user_profile_photos", { user_id: 0})Parameters
user_id number Required
Unique identifier of the target user.
offset number
Sequential number of the first photo to be returned. By default, all photos are returned.
limit number
Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Related methods
getAvailableGifts · getBusinessAccountGifts · getBusinessAccountStarBalance · getBusinessConnection · getChat · getChatAdministrators · getChatGifts · getChatMember · getChatMemberCount · getChatMenuButton · getCustomEmojiStickers · getFile · getForumTopicIconStickers · getGameHighScores · getMe · getMyCommands · getMyDefaultAdministratorRights · getMyDescription · getMyName · getMyShortDescription · getMyStarBalance · getStarTransactions · getStickerSet · getUpdates · getUserChatBoosts · getUserGifts · getUserProfileAudios · getWebhookInfo