mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00

git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
24 lines
1.1 KiB
Objective-C
24 lines
1.1 KiB
Objective-C
#import <LegacyComponents/TGMediaAttachment.h>
|
|
|
|
@class TGImageMediaAttachment;
|
|
@class TGDocumentMediaAttachment;
|
|
@class TGWebPageMediaAttachment;
|
|
|
|
#define TGGameAttachmentType ((int)0x57af081e)
|
|
|
|
@interface TGGameMediaAttachment : TGMediaAttachment <TGMediaAttachmentParser, NSCoding>
|
|
|
|
@property (nonatomic, readonly) int64_t gameId;
|
|
@property (nonatomic, readonly) int64_t accessHash;
|
|
@property (nonatomic, strong, readonly) NSString *shortName;
|
|
@property (nonatomic, strong, readonly) NSString *title;
|
|
@property (nonatomic, strong, readonly) NSString *gameDescription;
|
|
@property (nonatomic, strong, readonly) TGImageMediaAttachment *photo;
|
|
@property (nonatomic, strong, readonly) TGDocumentMediaAttachment *document;
|
|
|
|
- (instancetype)initWithGameId:(int64_t)gameId accessHash:(int64_t)accessHash shortName:(NSString *)shortName title:(NSString *)title gameDescription:(NSString *)gameDescription photo:(TGImageMediaAttachment *)photo document:(TGDocumentMediaAttachment *)document;
|
|
|
|
- (TGWebPageMediaAttachment *)webPageWithText:(NSString *)text entities:(NSArray *)entities;
|
|
|
|
@end
|