Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public override TLObject FromBytes(byte[] bytes, ref int position)
        {
            bytes.ThrowExceptionIfIncorrect(ref position, Signature);

            Id = GetObject <TLInputPhotoBase>(bytes, ref position);

            return(this);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        public override TLObject FromStream(Stream input)
        {
            Id = GetObject <TLInputPhotoBase>(input);

            return(this);
        }