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

17 lines
650 B
Mathematica
Raw Normal View History

2015-10-01 18:19:52 +02:00
#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