1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 17:37:33 +01:00
Telegram/Watch/Bridge/TGBridgeReplyMessageMediaAttachment+TGReplyMessageMediaAttachment.m

18 lines
683 B
Mathematica
Raw Normal View History

2015-10-01 18:19:52 +02:00
#import "TGBridgeReplyMessageMediaAttachment+TGReplyMessageMediaAttachment.h"
#import "TGBridgeMessage+TGMessage.h"
@implementation TGBridgeReplyMessageMediaAttachment (TGReplyMessageMediaAttachment)
+ (TGBridgeReplyMessageMediaAttachment *)attachmentWithTGReplyMessageMediaAttachment:(TGReplyMessageMediaAttachment *)attachment
{
if (attachment == nil)
return nil;
TGBridgeReplyMessageMediaAttachment *bridgeAttachment = [[TGBridgeReplyMessageMediaAttachment alloc] init];
bridgeAttachment.mid = attachment.replyMessageId;
bridgeAttachment.message = [TGBridgeMessage messageWithTGMessage:attachment.replyMessage];
return bridgeAttachment;
}
@end