mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-13 23:09:24 +00:00
21 lines
752 B
Objective-C
21 lines
752 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
#import <LegacyComponents/PSCoding.h>
|
|
#import <LegacyComponents/TGMessageEntity.h>
|
|
|
|
@interface TGDatabaseMessageDraft : NSObject <PSCoding>
|
|
|
|
@property (nonatomic, strong, readonly) NSString *text;
|
|
@property (nonatomic, strong, readonly) NSArray<TGMessageEntity *> *entities;
|
|
@property (nonatomic, readonly) bool disableLinkPreview;
|
|
@property (nonatomic, readonly) int32_t replyToMessageId;
|
|
@property (nonatomic, readonly) int32_t date;
|
|
|
|
- (instancetype)initWithText:(NSString *)text entities:(NSArray<TGMessageEntity *> *)entities disableLinkPreview:(bool)disableLinkPreview replyToMessageId:(int32_t)replyToMessageId date:(int32_t)date;
|
|
|
|
- (bool)isEmpty;
|
|
|
|
- (TGDatabaseMessageDraft *)updateDate:(int32_t)date;
|
|
|
|
@end
|