Layer 220
constructor

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
File flags.0?InputFile File saved in parts using the method upload. save File Part
Video flags.1?InputFile Square video for animated profile picture
VideoStartTs flags.2?double 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.
VideoEmojiMarkup flags.3?VideoSize Animated sticker profile picture, must contain either a video Size Emoji Markup or a video Size Sticker Markup constructor.

Returns

InputChatPhoto

Gogram Example

// Creating InputChatUploadedPhoto constructor
obj := &tg.InputChatUploadedPhoto{

    // Optional fields:
    // File: &tg.InputFile{ID: int64(0), Parts: 1, Name: "file.dat"},
    // Video: &tg.InputFile{ID: int64(0), Parts: 1, Name: "file.dat"},
    // VideoStartTs: 0.0,
    // VideoEmojiMarkup: &tg.VideoSize{},
}