1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-03 09:57:46 +01:00
Telegram/Telegraph/TGGlobalMessageSearchSignals.h
2016-02-25 01:03:51 +01:00

16 lines
604 B
Objective-C

#import <SSignalKit/SSignalKit.h>
@interface TGGlobalMessageSearchSignals : NSObject
+ (SSignal *)search:(NSString *)query includeMessages:(bool)includeMessages itemMapping:(id (^)(id))itemMapping;
+ (SSignal *)searchMessages:(NSString *)query peerId:(int64_t)peerId accessHash:(int64_t)accessHash itemMapping:(id (^)(id))itemMapping;
+ (SSignal *)searchDialogs:(NSString *)query itemMapping:(id (^)(id))itemMapping;
+ (void)clearRecentResults;
+ (void)addRecentPeerResult:(int64_t)peerId;
+ (void)removeRecentPeerResult:(int64_t)peerId;
+ (SSignal *)recentPeerResults:(id (^)(id))itemMapping;
@end