photos.UploadProfilePhoto
- class pyrogram.raw.functions.photos.UploadProfilePhoto
Updates current user profile photo.
- Details:
Layer:
223ID:
388A3B5
- Parameters:
fallback (
bool, optional) – If set, the chosen profile photo will be shown to users that can’t display your main profile photo due to your privacy settings.bot (
InputUser, optional) – Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user.file (
InputFile, optional) – Profile photovideo (
InputFile, optional) – Animated profile picture videovideo_start_ts (
float64-bit, optional) – Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set.video_emoji_markup (
VideoSize, optional) – Animated sticker profile picture, must contain either a videoSizeEmojiMarkup or a videoSizeStickerMarkup constructor.
- Returns:
TL Schema
photos.uploadProfilePhoto#388a3b5
flags:#
fallback:flags.3?true
bot:flags.5?InputUser
file:flags.0?InputFile
video:flags.1?InputFile
video_start_ts:flags.2?double
video_emoji_markup:flags.4?VideoSize
= photos.Photo
Parameter Tree
true (optional)InputUser (optional)InputUserEmptyInputUserSelfInputUserlonglongInputUserFromMessageInputPeerInputPeerEmptyInputPeerSelfInputPeerChatInputPeerUserInputPeerChannelInputPeerUserFromMessageInputPeerChannelFromMessageintlongInputFile (optional)InputFilelongintstringstringInputFileBiglongintstringInputFileStoryDocumentInputDocumentInputDocumentEmptyInputDocumentlonglongbytesInputFile (optional)InputFilelongintstringstringInputFileBiglongintstringInputFileStoryDocumentInputDocumentInputDocumentEmptyInputDocumentlonglongbytesdouble (optional)VideoSize (optional)VideoSizestringintintintdouble (optional)longVector < int >InputStickerSetInputStickerSetEmptyInputStickerSetIDlonglongInputStickerSetShortNamestringInputStickerSetDicestringInputStickerSetTonGiftslongVector < int >Example
await app.invoke(
UploadProfilePhoto(
fallback=None,
bot=await app.resolve_user(chat_id),
file=InputFile(
id=0,
parts=0,
name="text",
md5_checksum="text"
),
video=InputFile(
id=0,
parts=0,
name="text",
md5_checksum="text"
),
video_start_ts=0.0,
video_emoji_markup=VideoSize(
type="text",
w=0,
h=0,
size=0,
video_start_ts=None
),
)
)