1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-11 17:09:46 +01:00
Telegram/Watch/Bridge/TGBridgeChatMessageListSignals.m
2015-10-01 19:19:52 +03:00

27 lines
1.1 KiB
Objective-C

#import "TGBridgeChatMessageListSignals.h"
#import "TGBridgeChatMessageListSubscription.h"
#import "TGBridgeResponse.h"
#import "TGBridgeMessage.h"
#import "TGBridgeChatMessageListView.h"
#import "TGBridgeUser.h"
#import "TGBridgeClient.h"
@implementation TGBridgeChatMessageListSignals
+ (SSignal *)chatMessageListViewWithPeerId:(int64_t)peerId atMessageId:(int32_t)messageId rangeMessageCount:(NSUInteger)rangeMessageCount
{
return [[TGBridgeClient instance] requestSignalWithSubscription:[[TGBridgeChatMessageListSubscription alloc] initWithPeerId:peerId atMessageId:messageId rangeMessageCount:rangeMessageCount]];
}
+ (SSignal *)chatMessageWithPeerId:(int64_t)peerId messageId:(int32_t)messageId
{
return [[TGBridgeClient instance] requestSignalWithSubscription:[[TGBridgeChatMessageSubscription alloc] initWithPeerId:peerId messageId:messageId]];
}
+ (SSignal *)readChatMessageListWithPeerId:(int64_t)peerId
{
return [[TGBridgeClient instance] requestSignalWithSubscription:[[TGBridgeReadChatMessageListSubscription alloc] initWithPeerId:peerId]];
}
@end