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

40 lines
1.3 KiB
Objective-C

#import "TGBridgeVideoMediaAttachment.h"
#import <UIKit/UIKit.h>
const NSInteger TGBridgeVideoMediaAttachmentType = 0x338EAA20;
NSString *const TGBridgeVideoMediaVideoIdKey = @"videoId";
NSString *const TGBridgeVideoMediaDimensionsKey = @"dimensions";
NSString *const TGBridgeVideoMediaDurationKey = @"duration";
NSString *const TGBridgeVideoMediaRoundKey = @"round";
@implementation TGBridgeVideoMediaAttachment
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
self = [super init];
if (self != nil)
{
_videoId = [aDecoder decodeInt64ForKey:TGBridgeVideoMediaVideoIdKey];
_dimensions = [aDecoder decodeCGSizeForKey:TGBridgeVideoMediaDimensionsKey];
_duration = [aDecoder decodeInt32ForKey:TGBridgeVideoMediaDurationKey];
_round = [aDecoder decodeBoolForKey:TGBridgeVideoMediaRoundKey];
}
return self;
}
- (void)encodeWithCoder:(NSCoder *)aCoder
{
[aCoder encodeInt64:self.videoId forKey:TGBridgeVideoMediaVideoIdKey];
[aCoder encodeCGSize:self.dimensions forKey:TGBridgeVideoMediaDimensionsKey];
[aCoder encodeInt32:self.duration forKey:TGBridgeVideoMediaDurationKey];
[aCoder encodeBool:self.round forKey:TGBridgeVideoMediaRoundKey];
}
+ (NSInteger)mediaType
{
return TGBridgeVideoMediaAttachmentType;
}
@end