mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-02 11:20:32 +00:00
git-subtree-dir: submodules/LegacyComponents git-subtree-mainline:6086305304git-subtree-split:d559434616
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
|