Files
Leeksov 4647310322 GLEGram 12.5 — Initial public release
Based on Swiftgram 12.5 (Telegram iOS 12.5).
All GLEGram features ported and organized in GLEGram/ folder.

Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass,
Font Replacement, Fake Profile, Chat Export, Plugin System, and more.

See CHANGELOG_12.5.md for full details.
2026-04-06 09:48:12 +03:00

34 lines
1.1 KiB
Objective-C

#import <LegacyComponents/TGBotInfo.h>
#import <LegacyComponents/PSKeyValueCoder.h>
@implementation TGBotInfo
- (instancetype)initWithVersion:(int32_t)version shortDescription:(NSString *)shortDescription botDescription:(NSString *)botDescription commandList:(NSArray *)commandList
{
self = [super init];
if (self != nil)
{
_version = version;
_botDescription = botDescription;
_shortDescription = shortDescription;
_commandList = commandList;
}
return self;
}
- (instancetype)initWithKeyValueCoder:(PSKeyValueCoder *)coder
{
return [self initWithVersion:[coder decodeInt32ForCKey:"version"] shortDescription:[coder decodeStringForCKey:"shortDescription"] botDescription:[coder decodeStringForCKey:"botDescription"] commandList:[coder decodeArrayForCKey:"commandList"]];
}
- (void)encodeWithKeyValueCoder:(PSKeyValueCoder *)coder
{
[coder encodeInt32:_version forCKey:"version"];
[coder encodeString:_shortDescription forCKey:"shortDescription"];
[coder encodeString:_botDescription forCKey:"botDescription"];
[coder encodeArray:_commandList forCKey:"commandList"];
}
@end