1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 02:17:51 +01:00
Telegram/Share/TGChannelChatModel.m
2016-02-25 01:03:51 +01:00

19 lines
500 B
Objective-C

#import "TGChannelChatModel.h"
@implementation TGChannelChatModel
- (instancetype)initWithChannelId:(int32_t)channelId title:(NSString *)title avatarLocation:(TGFileLocation *)avatarLocation isGroup:(bool)isGroup accessHash:(int64_t)accessHash
{
self = [super initWithPeerId:TGPeerIdChannelMake(channelId)];
if (self != nil)
{
_title = title;
_avatarLocation = avatarLocation;
_isGroup = isGroup;
_accessHash = accessHash;
}
return self;
}
@end