mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
25 lines
810 B
Objective-C
25 lines
810 B
Objective-C
#import <SSignalKit/SSignalKit.h>
|
|
#import "TGBridgeMediaSubscription.h"
|
|
|
|
@class TGBridgeImageMediaAttachment;
|
|
@class TGBridgeVideoMediaAttachment;
|
|
@class TGBridgeDocumentMediaAttachment;
|
|
|
|
typedef enum
|
|
{
|
|
TGMediaStickerImageTypeList,
|
|
TGMediaStickerImageTypeNormal,
|
|
TGMediaStickerImageTypeInput
|
|
} TGMediaStickerImageType;
|
|
|
|
@interface TGBridgeMediaSignals : NSObject
|
|
|
|
+ (SSignal *)previewWithImageAttachment:(TGBridgeImageMediaAttachment *)imageAttachment size:(CGSize)size;
|
|
+ (SSignal *)previewWithVideoAttachment:(TGBridgeVideoMediaAttachment *)videoAttachment size:(CGSize)size;
|
|
|
|
+ (SSignal *)avatarWithUrl:(NSString *)url type:(TGBridgeMediaAvatarType)type;
|
|
|
|
+ (SSignal *)stickerWithDocumentAttachment:(TGBridgeDocumentMediaAttachment *)documentAttachment type:(TGMediaStickerImageType)type;
|
|
|
|
@end
|