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

17 lines
650 B
Objective-C

#import "TGBridgeReplyMarkupMediaAttachment+TGReplyMarkupAttachment.h"
#import "TGBridgeBotReplyMarkup+TGBotReplyMarkup.h"
@implementation TGBridgeReplyMarkupMediaAttachment (TGReplyMarkupAttachment)
+ (TGBridgeReplyMarkupMediaAttachment *)attachmentWithTGReplyMarkupAttachment:(TGReplyMarkupAttachment *)attachment
{
if (attachment == nil)
return nil;
TGBridgeReplyMarkupMediaAttachment *bridgeAttachment = [[TGBridgeReplyMarkupMediaAttachment alloc] init];
bridgeAttachment.replyMarkup = [TGBridgeBotReplyMarkup botReplyMarkupWithTGBotReplyMarkup:attachment.replyMarkup message:nil];
return bridgeAttachment;
}
@end