Esempio 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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }