/* * This is the source code of Telegram for iOS v. 1.1 * It is licensed under GNU GPL v. 2 or later. * You should have received a copy of the license in this archive (see LICENSE). * * Copyright Peter Iakovlev, 2013. */ #import "TGMediaAttachment.h" #import "TGImageInfo.h" #define TGImageMediaAttachmentType 0x269BD8A8 @interface TGImageMediaAttachment : TGMediaAttachment @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, readonly) NSArray *textCheckingResults; + (int64_t)localImageIdForImageInfo:(TGImageInfo *)imageInfo; @end