mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
26 lines
733 B
Objective-C
26 lines
733 B
Objective-C
#import "TGBridgeBotInfo.h"
|
|
|
|
NSString *const TGBridgeBotInfoShortDescriptionKey = @"shortDescription";
|
|
NSString *const TGBridgeBotInfoCommandListKey = @"commandList";
|
|
|
|
@implementation TGBridgeBotInfo
|
|
|
|
- (instancetype)initWithCoder:(NSCoder *)aDecoder
|
|
{
|
|
self = [super init];
|
|
if (self != nil)
|
|
{
|
|
_shortDescription = [aDecoder decodeObjectForKey:TGBridgeBotInfoShortDescriptionKey];
|
|
_commandList = [aDecoder decodeObjectForKey:TGBridgeBotInfoCommandListKey];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)encodeWithCoder:(NSCoder *)aCoder
|
|
{
|
|
[aCoder encodeObject:self.shortDescription forKey:TGBridgeBotInfoShortDescriptionKey];
|
|
[aCoder encodeObject:self.commandList forKey:TGBridgeBotInfoCommandListKey];
|
|
}
|
|
|
|
@end
|