Swiftgram/LegacyComponents/TGImageMediaAttachment.h
2018-06-16 20:01:16 +03:00

30 lines
898 B
Objective-C

#import <LegacyComponents/TGMediaAttachment.h>
#import <LegacyComponents/TGImageInfo.h>
#define TGImageMediaAttachmentType 0x269BD8A8
@interface TGImageMediaAttachment : TGMediaAttachment <TGMediaAttachmentParser, NSCopying, NSCoding>
@property (nonatomic) int64_t imageId;
@property (nonatomic, readonly) int64_t localImageId;
@property (nonatomic) int64_t accessHash;
@property (nonatomic) int date;
@property (nonatomic) bool hasLocation;
@property (nonatomic) double locationLatitude;
@property (nonatomic) double locationLongitude;
@property (nonatomic, strong) TGImageInfo *imageInfo;
@property (nonatomic) NSString *caption;
@property (nonatomic) bool hasStickers;
@property (nonatomic, strong) NSArray *embeddedStickerDocuments;
@property (nonatomic, readonly) NSArray *textCheckingResults;
+ (int64_t)localImageIdForImageInfo:(TGImageInfo *)imageInfo;
- (CGSize)dimensions;
@end