1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 10:27:46 +01:00
Telegram/Share/TGUploadMediaSignals.h

14 lines
612 B
C
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import <Foundation/Foundation.h>
#import <SSignalKit/SSignalKit.h>
#import "TGShareContext.h"
@interface TGUploadMediaSignals : NSObject
+ (SSignal *)uploadPhotoWithContext:(TGShareContext *)context data:(NSData *)data;
+ (SSignal *)uploadFileWithContext:(TGShareContext *)context data:(NSData *)data name:(NSString *)name mimeType:(NSString *)mimeType attributes:(NSArray *)attributes;
2016-02-25 01:03:51 +01:00
+ (SSignal *)uploadVideoWithContext:(TGShareContext *)context data:(NSData *)data thumbData:(NSData *)thumbData duration:(int32_t)duration width:(int32_t)width height:(int32_t)height mimeType:(NSString *)mimeType;
2015-10-01 18:19:52 +02:00
@end