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); Id = GetObject <TLInputPhotoBase>(bytes, ref position); return(this); }
public void UpdateProfilePhotoAsync(TLInputPhotoBase id, Action <TLUserProfilePhotoBase> callback, Action <TLRPCError> faultCallback = null) { var obj = new TLPhotosUpdateProfilePhoto { Id = id }; const string caption = "photos.updateProfilePhoto"; SendInformativeMessage(caption, obj, callback, faultCallback); }
public override TLObject FromStream(Stream input) { Id = GetObject <TLInputPhotoBase>(input); return(this); }