mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-08 08:31:13 +00:00

git-subtree-dir: submodules/LegacyComponents git-subtree-mainline: 608630530451e02e5aec48389d144dbf7a3625b9 git-subtree-split: d5594346161c1b7f203d1e87068bbe77bcaac019
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
|