Пример #1
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);
        }
        public void UploadProfilePhotoAsync(TLInputFile file, Action <TLPhotosPhoto> callback, Action <TLRPCError> faultCallback = null)
        {
            var obj = new TLUploadProfilePhoto {
                File = file
            };

            SendInformativeMessage("photos.uploadProfilePhoto", obj, callback, faultCallback);
        }