Home telegram - mtMessageTransaction
Post
Cancel

telegram - mtMessageTransaction

MTMessageTransaction

class MTMessageTransaction

// internal id
@property (nonatomic, strong, readonly) id internalId;

// completion
@property (nonatomic, copy) void (^completion)(NSDictionary *messageInternalIdToTransactionId, NSDictionary *messageInternalIdToPreparedMessage, NSDictionary *messageInternalIdToQuickAckId);

// prepared
@property (nonatomic, copy) void (^prepared)(NSDictionary *messageInternalIdToPreparedMessage);

// failed
@property (nonatomic, copy) void (^failed)(void);

// message payload array
@property (nonatomic, strong) NSArray *messagePayload;

// allow service mode
@property (nonatomic) bool allowServiceMode;

// requires encryption
@property (nonatomic) bool requiresEncryption;

- (instancetype)initWithMessagePayload:(NSArray *)messagePayload prepared:(void (^)(NSDictionary *messageInternalIdToPreparedMessage))prepared failed:(void (^)(void))failed completion:(void (^)(NSDictionary *messageInternalIdToTransactionId, NSDictionary *messageInternalIdToPreparedMessage, NSDictionary *messageInternalIdToQuickAckId))completion;
This post is licensed under CC BY 4.0 by the author.