mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 17:38:07 +01:00
17 lines
650 B
Objective-C
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
|