Link Search Menu Expand Document

Constructor: inputChatUploadedPhoto

Back to constructors index

New photo to be set as group profile photo.

The file, video and video_emoji_markup flags are mutually exclusive.

Attributes:

NameTypeRequiredDescription
fileFile path or InputFileOptionalFile saved in parts using the method upload.saveFilePart
videoFile path or InputFileOptionalSquare video for animated profile picture
video_start_tsdoubleOptionalFloating 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_markupVideoSizeOptionalAnimated sticker profile picture, must contain either a videoSizeEmojiMarkup or a videoSizeStickerMarkup constructor.

Type: InputChatPhoto

Example:

$inputChatUploadedPhoto = ['_' => 'inputChatUploadedPhoto', 'file' => InputFile, 'video' => InputFile, 'video_start_ts' => double, 'video_emoji_markup' => VideoSize];