Layer 224
InputChatUploadedPhoto
New photo to be set as group profile photo.
constructor
Parameters
| Name | Type | Description |
|---|---|---|
| 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
InputChatPhotoGogram Example
// Creating InputChatUploadedPhoto constructor obj := &tg.InputChatUploadedPhoto{ // Optional fields: // File: &tg.InputFile{ID: int64(7654321098765), Parts: 3, Name: "upload.dat"}, // Video: &tg.InputFile{ID: int64(7654321098765), Parts: 3, Name: "upload.dat"}, // VideoStartTs: 3.14159, // VideoEmojiMarkup: &tg.VideoSize{}, }