mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-08-29 00:50:38 +02:00
Update Ghostgram features
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#import "TGBridgeBotCommandInfo.h"
|
||||
|
||||
NSString *const TGBridgeBotCommandInfoCommandKey = @"command";
|
||||
NSString *const TGBridgeBotCommandDescriptionKey = @"commandDescription";
|
||||
|
||||
@implementation TGBridgeBotCommandInfo
|
||||
|
||||
- (instancetype)initWithCoder:(NSCoder *)aDecoder
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil)
|
||||
{
|
||||
_command = [aDecoder decodeObjectForKey:TGBridgeBotCommandInfoCommandKey];
|
||||
_commandDescription = [aDecoder decodeObjectForKey:TGBridgeBotCommandDescriptionKey];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)encodeWithCoder:(NSCoder *)aCoder
|
||||
{
|
||||
[aCoder encodeObject:self.command forKey:TGBridgeBotCommandInfoCommandKey];
|
||||
[aCoder encodeObject:self.commandDescription forKey:TGBridgeBotCommandDescriptionKey];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user