mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00

git-subtree-dir: submodules/MtProtoKit git-subtree-mainline: 3b155750f5a4894ff3dedf1860a37e94e0ea9571 git-subtree-split: 14ab734b977fd4f1686a2a13415f6a4c9b9fdd6d
23 lines
1.1 KiB
Objective-C
23 lines
1.1 KiB
Objective-C
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface MTMessageTransaction : NSObject
|
|
|
|
@property (nonatomic, strong, readonly) id internalId;
|
|
|
|
/*
|
|
* Can be invoked multiple times in case message transaction maps to multiple different transport transactions
|
|
*/
|
|
@property (nonatomic, copy) void (^completion)(NSDictionary *messageInternalIdToTransactionId, NSDictionary *messageInternalIdToPreparedMessage, NSDictionary *messageInternalIdToQuickAckId);
|
|
@property (nonatomic, copy) void (^prepared)(NSDictionary *messageInternalIdToPreparedMessage);
|
|
@property (nonatomic, copy) void (^failed)();
|
|
|
|
@property (nonatomic, strong) NSArray *messagePayload;
|
|
@property (nonatomic) bool allowServiceMode;
|
|
@property (nonatomic) bool requiresEncryption;
|
|
|
|
- (instancetype)initWithMessagePayload:(NSArray *)messagePayload prepared:(void (^)(NSDictionary *messageInternalIdToPreparedMessage))prepared failed:(void (^)())failed completion:(void (^)(NSDictionary *messageInternalIdToTransactionId, NSDictionary *messageInternalIdToPreparedMessage, NSDictionary *messageInternalIdToQuickAckId))completion;
|
|
|
|
@end
|