1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-11 17:09:46 +01:00
Telegram/Watch/Bridge/TGBridgeReplyMarkupMediaAttachment.m
2015-10-01 19:19:52 +03:00

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