mirror of
https://github.com/danog/Telegram.git
synced 2024-12-04 10:27:46 +01:00
47 lines
1.6 KiB
Objective-C
47 lines
1.6 KiB
Objective-C
/*
|
|
* This is the source code of Telegram for iOS v. 1.1
|
|
* It is licensed under GNU GPL v. 2 or later.
|
|
* You should have received a copy of the license in this archive (see LICENSE).
|
|
*
|
|
* Copyright Peter Iakovlev, 2013.
|
|
*/
|
|
|
|
#import "TGMediaAttachment.h"
|
|
|
|
#define TGActionMediaAttachmentType 0x1167E28B
|
|
|
|
typedef enum {
|
|
TGMessageActionNone = 0,
|
|
TGMessageActionChatEditTitle = 1,
|
|
TGMessageActionChatAddMember = 2,
|
|
TGMessageActionChatDeleteMember = 3,
|
|
TGMessageActionCreateChat = 4,
|
|
TGMessageActionChatEditPhoto = 5,
|
|
TGMessageActionContactRequest = 6,
|
|
TGMessageActionAcceptContactRequest = 7,
|
|
TGMessageActionContactRegistered = 8,
|
|
TGMessageActionUserChangedPhoto = 9,
|
|
TGMessageActionEncryptedChatRequest = 10,
|
|
TGMessageActionEncryptedChatAccept = 11,
|
|
TGMessageActionEncryptedChatDecline = 12,
|
|
TGMessageActionEncryptedChatMessageLifetime = 13,
|
|
TGMessageActionEncryptedChatScreenshot = 14,
|
|
TGMessageActionEncryptedChatMessageScreenshot = 15,
|
|
TGMessageActionCreateBroadcastList = 16,
|
|
TGMessageActionJoinedByLink = 17,
|
|
TGMessageActionChannelCreated = 18,
|
|
TGMessageActionChannelCommentsStatusChanged = 19,
|
|
TGMessageActionChannelInviter = 20,
|
|
TGMessageActionGroupMigratedTo = 21,
|
|
TGMessageActionGroupDeactivated = 22,
|
|
TGMessageActionGroupActivated = 23,
|
|
TGMessageActionChannelMigratedFrom = 24
|
|
} TGMessageAction;
|
|
|
|
@interface TGActionMediaAttachment : TGMediaAttachment <TGMediaAttachmentParser>
|
|
|
|
@property (nonatomic) TGMessageAction actionType;
|
|
@property (nonatomic, strong) NSDictionary *actionData;
|
|
|
|
@end
|