-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtl.bt
76 lines (70 loc) · 2.14 KB
/
tl.bt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//------------------------------------------------
//--- 010 Editor v10.0 Binary Template
//
// File:
// Authors: wkejqb
// Version:
// Purpose: Parse tg messages
// Category:
// File Mask: *.tlb
// ID Bytes:
// History:
//------------------------------------------------
LittleEndian();
FSeek(0);
#include "base.bt"
#include "struct_object.bt"
#include "struct_filelocation.bt"
#include "struct_userstatus.bt"
#include "struct_chatparticipants.bt"
#include "struct_userprofilephoto.bt"
#include "struct_user.bt"
#include "struct_contactslink.bt"
#include "struct_peernotifysettings.bt"
#include "struct_photo.bt"
#include "struct_chat.bt"
#include "struct_messages__ChatFull.bt"
#include "struct_photolayer82.bt"
#include "struct_contacts__Found.bt"
#include "struct_restrictionreason.bt"
#include "struct_messages__messages.bt"
typedef struct Object {
int objectId;
if (objectId == -212046591) // rpc_result
_rpc_result data;
else if (objectId == 1658238041) // msgs_ack
_msgs_ack data;
else if (objectId == 773059779) // user
_user data;
else if (objectId == 986597452) // contactsLink
_contactsLink data;
else if (objectId == -438840932) // _messages__chatFull
_messages__chatFull data;
else if (objectId == 812830625) // _gzip_packed
_gzip_packed val;
else if (objectId == -1836524247) // _photo_layer82
_photo_layer82 val;
else if (objectId == 0x76AF5481) // _channelFullOld
_channelFullOld data;
else if (objectId == 0xd31a961e)
_channel val;
else if (objectId == 0xc88974ac)
_channelOld val;
else if (objectId == -1290580579)
_contacts__found val;
else if (objectId == -797791052)
_restrictionReason val;
else if (objectId == -1938715001)
_messages__messages val;
else if (objectId == -1725551049)
_messages__channelMessages val;
else if (objectId == -923939298)
_messages__messagesSlice val;
else if (objectId == 1951620897)
_messages__messagesNotModified val;
else {
Printf("Unknown object %d\n", objectId);
Exit(1);
}
};
Object o;