libtd-ktx / kotlinx.telegram.coroutines / setProfilePhoto
setProfilePhoto
suspend fun
TelegramFlow
.setProfilePhoto(photo:
InputFile
?):
Unit
Suspend function, which uploads a new profile photo for the current user. If something changes, updateUser will be sent.
Parameters
photo
- Profile photo to set. inputFileId and inputFileRemote may still be unsupported.