public void UpdateProfilePhotoAsync(TLInputPhotoBase id, TLInputPhotoCropBase crop, Action <TLPhotoBase> callback, Action <TLRPCError> faultCallback = null) { var obj = new TLUpdateProfilePhoto { Id = id, Crop = crop }; SendInformativeMessage("photos.updateProfilePhoto", obj, callback, faultCallback); }
public override TLObject FromBytes(byte[] bytes, ref int position) { bytes.ThrowExceptionIfIncorrect(ref position, Signature); File = GetObject <TLInputFile>(bytes, ref position); Crop = GetObject <TLInputPhotoCropBase>(bytes, ref position); return(this); }
public void UploadProfilePhotoAsync(TLInputFile file, TLString caption, TLInputGeoPointBase geoPoint, TLInputPhotoCropBase crop, Action <TLPhotosPhoto> callback, Action <TLRPCError> faultCallback = null) { var obj = new TLUploadProfilePhoto { File = file, Caption = caption, GeoPoint = geoPoint, Crop = crop }; SendInformativeMessage("photos.uploadProfilePhoto", obj, callback, faultCallback); }