Skip to content

photos.uploadProfilePhoto

Layer 225

Constructor ID: 0x0388a3b5
Returns: Photo

Parameters

NameTypeDescription
fallbackbool (flags.3, optional)
botInputUser (flags.5, optional)
fileInputFile (flags.0, optional)
videoInputFile (flags.1, optional)
video_start_tsfloat64 (flags.2, optional)
video_emoji_markupVideoSize (flags.4, optional)

Example

go
result, err := client.Raw(&tg.UploadProfilePhotoRequest{
    fallback: false,
    bot: nil, // InputUser
    file: nil, // InputFile
    video: nil, // InputFile
    video_start_ts: 0,
    video_emoji_markup: nil, // VideoSize
})
if err != nil {
    panic(err)
}
print(result)

Released under the Apache-2.0 License.