MadelineProtoDocs/docs/API_docs/constructors/inputChatUploadedPhoto.md
2024-05-01 14:53:46 +02:00

1.6 KiB

title description nav_exclude image
inputChatUploadedPhoto New photo to be set as group profile photo. true https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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:

Name Type Required Description
file File path or InputFile Optional File saved in parts using the method upload.saveFilePart
video File path or InputFile Optional Square video for animated profile picture
video_start_ts double 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.

Type: InputChatPhoto

Example:

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