mirror of
https://github.com/danog/Telegram.git
synced 2024-12-12 17:37:33 +01:00
18 lines
683 B
Mathematica
18 lines
683 B
Mathematica
|
#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
|