mirror of
https://github.com/GLEGram/GLEGram-iOS.git
synced 2026-04-24 03:46:23 +02:00
4647310322
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.
60 lines
1.6 KiB
Objective-C
60 lines
1.6 KiB
Objective-C
#import <WatchCommonWatch/TGBridgeCommon.h>
|
|
|
|
@class TGBridgeBotInfo;
|
|
@class TGBridgeUserChange;
|
|
|
|
typedef NS_ENUM(NSUInteger, TGBridgeUserKind) {
|
|
TGBridgeUserKindGeneric,
|
|
TGBridgeUserKindBot,
|
|
TGBridgeUserKindSmartBot
|
|
};
|
|
|
|
typedef NS_ENUM(NSUInteger, TGBridgeBotKind) {
|
|
TGBridgeBotKindGeneric,
|
|
TGBridgeBotKindPrivate
|
|
};
|
|
|
|
@interface TGBridgeUser : NSObject <NSCoding, NSCopying>
|
|
|
|
@property (nonatomic) int64_t identifier;
|
|
@property (nonatomic, strong) NSString *firstName;
|
|
@property (nonatomic, strong) NSString *lastName;
|
|
@property (nonatomic, strong) NSString *userName;
|
|
@property (nonatomic, strong) NSString *phoneNumber;
|
|
@property (nonatomic, strong) NSString *prettyPhoneNumber;
|
|
@property (nonatomic, strong) NSString *about;
|
|
|
|
@property (nonatomic) bool online;
|
|
@property (nonatomic) NSTimeInterval lastSeen;
|
|
|
|
@property (nonatomic, strong) NSString *photoSmall;
|
|
@property (nonatomic, strong) NSString *photoBig;
|
|
|
|
@property (nonatomic) TGBridgeUserKind kind;
|
|
@property (nonatomic) TGBridgeBotKind botKind;
|
|
@property (nonatomic) int32_t botVersion;
|
|
|
|
@property (nonatomic) bool verified;
|
|
|
|
@property (nonatomic) int32_t userVersion;
|
|
|
|
- (NSString *)displayName;
|
|
- (TGBridgeUserChange *)changeFromUser:(TGBridgeUser *)user;
|
|
- (TGBridgeUser *)userByApplyingChange:(TGBridgeUserChange *)change;
|
|
|
|
- (bool)isBot;
|
|
|
|
@end
|
|
|
|
|
|
@interface TGBridgeUserChange : NSObject <NSCoding>
|
|
|
|
@property (nonatomic, readonly) int64_t userIdentifier;
|
|
@property (nonatomic, readonly) NSDictionary *fields;
|
|
|
|
- (instancetype)initWithUserIdentifier:(int64_t)userIdentifier fields:(NSDictionary *)fields;
|
|
|
|
@end
|
|
|
|
extern NSString *const TGBridgeUsersDictionaryKey;
|