mirror of
https://github.com/danog/Telegram.git
synced 2024-12-11 17:09:46 +01:00
29 lines
675 B
Objective-C
29 lines
675 B
Objective-C
#import "TGBridgeReplyMarkupMediaAttachment.h"
|
|
|
|
const NSInteger TGBridgeReplyMarkupMediaAttachmentType = 0x5678acc1;
|
|
|
|
NSString *const TGBridgeReplyMarkupMediaMessageKey = @"replyMarkup";
|
|
|
|
@implementation TGBridgeReplyMarkupMediaAttachment
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)aDecoder
|
|
{
|
|
self = [super init];
|
|
if (self != nil)
|
|
{
|
|
_replyMarkup = [aDecoder decodeObjectForKey:TGBridgeReplyMarkupMediaMessageKey];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)encodeWithCoder:(NSCoder *)aCoder
|
|
{
|
|
[aCoder encodeObject:self.replyMarkup forKey:TGBridgeReplyMarkupMediaMessageKey];
|
|
}
|
|
|
|
+ (NSInteger)mediaType
|
|
{
|
|
return TGBridgeReplyMarkupMediaAttachmentType;
|
|
}
|
|
|
|
@end |