1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGContactMediaAttachment+Telegraph.m
2014-07-10 18:11:09 +04:00

21 lines
485 B
Objective-C

#import "TGContactMediaAttachment+Telegraph.h"
@implementation TGContactMediaAttachment (Telegraph)
- (id)initWithTelegraphContactDesc:(TLMessageMedia$messageMediaContact *)desc
{
self = [super init];
if (self != nil)
{
self.type = TGContactMediaAttachmentType;
self.uid = desc.user_id;
self.firstName = desc.first_name;
self.lastName = desc.last_name;
self.phoneNumber = desc.phone_number;
}
return self;
}
@end