1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-11 17:09:46 +01:00
Telegram/Watch/Bridge/TGBridgeForwardedMessageMediaAttachment+TGForwardedMessageMediaAttachment.m
2016-02-25 01:03:51 +01:00

21 lines
724 B
Objective-C

#import "TGBridgeForwardedMessageMediaAttachment+TGForwardedMessageMediaAttachment.h"
#import "TGPeerIdAdapter.h"
@implementation TGBridgeForwardedMessageMediaAttachment (TGForwardedMessageMediaAttachment)
+ (TGBridgeForwardedMessageMediaAttachment *)attachmentWithTGForwardedMessageMediaAttachment:(TGForwardedMessageMediaAttachment *)attachment
{
if (attachment == nil)
return nil;
TGBridgeForwardedMessageMediaAttachment *bridgeAttachment = [[TGBridgeForwardedMessageMediaAttachment alloc] init];
bridgeAttachment.peerId = attachment.forwardPeerId;
bridgeAttachment.date = attachment.forwardDate;
bridgeAttachment.mid = attachment.forwardMid;
return bridgeAttachment;
}
@end