mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
22 lines
657 B
Objective-C
22 lines
657 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@class TGUser;
|
|
@class TGMessage;
|
|
@class TGDocumentMediaAttachment;
|
|
|
|
@interface TGMusicPlayerItem : NSObject
|
|
|
|
@property (nonatomic, strong, readonly) id<NSObject, NSCopying> key;
|
|
@property (nonatomic, strong, readonly) id media;
|
|
@property (nonatomic, readonly) int64_t peerId;
|
|
@property (nonatomic, strong, readonly) TGUser *author;
|
|
@property (nonatomic, readonly) int32_t date;
|
|
|
|
+ (instancetype)itemWithMessage:(TGMessage *)message author:(TGUser *)author;
|
|
|
|
- (instancetype)initWithKey:(id<NSObject, NSCopying>)key media:(id)media peerId:(int64_t)peerId author:(TGUser *)author date:(int32_t)date;
|
|
|
|
- (bool)isVoice;
|
|
|
|
@end
|