mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-28 14:05:59 +02:00
4647310322
Based on Swiftgram 12.5 (Telegram iOS 12.5). All GLEGram features ported and organized in GLEGram/ folder. Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass, Font Replacement, Fake Profile, Chat Export, Plugin System, and more. See CHANGELOG_12.5.md for full details.
34 lines
907 B
Objective-C
34 lines
907 B
Objective-C
#import "TGBridgeReplyMessageMediaAttachment.h"
|
|
#import "TGBridgeMessage.h"
|
|
|
|
const NSInteger TGBridgeReplyMessageMediaAttachmentType = 414002169;
|
|
|
|
NSString *const TGBridgeReplyMessageMediaMidKey = @"mid";
|
|
NSString *const TGBridgeReplyMessageMediaMessageKey = @"message";
|
|
|
|
@implementation TGBridgeReplyMessageMediaAttachment
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)aDecoder
|
|
{
|
|
self = [super init];
|
|
if (self != nil)
|
|
{
|
|
_mid = [aDecoder decodeInt32ForKey:TGBridgeReplyMessageMediaMidKey];
|
|
_message = [aDecoder decodeObjectForKey:TGBridgeReplyMessageMediaMessageKey];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)encodeWithCoder:(NSCoder *)aCoder
|
|
{
|
|
[aCoder encodeInt32:self.mid forKey:TGBridgeReplyMessageMediaMidKey];
|
|
[aCoder encodeObject:self.message forKey:TGBridgeReplyMessageMediaMessageKey];
|
|
}
|
|
|
|
+ (NSInteger)mediaType
|
|
{
|
|
return TGBridgeReplyMessageMediaAttachmentType;
|
|
}
|
|
|
|
@end
|