Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@adiwajshing/baileys/lib/WABinary/Legacy/constants.js
1809 views
1
"use strict";
2
Object.defineProperty(exports, "__esModule", { value: true });
3
exports.TOKEN_MAP = exports.SINGLE_BYTE_TOKENS = exports.DOUBLE_BYTE_TOKENS = exports.TAGS = void 0;
4
exports.TAGS = {
5
LIST_EMPTY: 0,
6
STREAM_END: 2,
7
DICTIONARY_0: 236,
8
DICTIONARY_1: 237,
9
DICTIONARY_2: 238,
10
DICTIONARY_3: 239,
11
LIST_8: 248,
12
LIST_16: 249,
13
JID_PAIR: 250,
14
HEX_8: 251,
15
BINARY_8: 252,
16
BINARY_20: 253,
17
BINARY_32: 254,
18
NIBBLE_8: 255,
19
SINGLE_BYTE_MAX: 256,
20
PACKED_MAX: 254,
21
AD_JID: 247,
22
};
23
exports.DOUBLE_BYTE_TOKENS = [];
24
exports.SINGLE_BYTE_TOKENS = [
25
null,
26
null,
27
null,
28
'200',
29
'400',
30
'404',
31
'500',
32
'501',
33
'502',
34
'action',
35
'add',
36
'after',
37
'archive',
38
'author',
39
'available',
40
'battery',
41
'before',
42
'body',
43
'broadcast',
44
'chat',
45
'clear',
46
'code',
47
'composing',
48
'contacts',
49
'count',
50
'create',
51
'debug',
52
'delete',
53
'demote',
54
'duplicate',
55
'encoding',
56
'error',
57
'false',
58
'filehash',
59
'from',
60
'g.us',
61
'group',
62
'groups_v2',
63
'height',
64
'id',
65
'image',
66
'in',
67
'index',
68
'invis',
69
'item',
70
'jid',
71
'kind',
72
'last',
73
'leave',
74
'live',
75
'log',
76
'media',
77
'message',
78
'mimetype',
79
'missing',
80
'modify',
81
'name',
82
'notification',
83
'notify',
84
'out',
85
'owner',
86
'participant',
87
'paused',
88
'picture',
89
'played',
90
'presence',
91
'preview',
92
'promote',
93
'query',
94
'raw',
95
'read',
96
'receipt',
97
'received',
98
'recipient',
99
'recording',
100
'relay',
101
'remove',
102
'response',
103
'resume',
104
'retry',
105
's.whatsapp.net',
106
'seconds',
107
'set',
108
'size',
109
'status',
110
'subject',
111
'subscribe',
112
't',
113
'text',
114
'to',
115
'true',
116
'type',
117
'unarchive',
118
'unavailable',
119
'url',
120
'user',
121
'value',
122
'web',
123
'width',
124
'mute',
125
'read_only',
126
'admin',
127
'creator',
128
'short',
129
'update',
130
'powersave',
131
'checksum',
132
'epoch',
133
'block',
134
'previous',
135
'409',
136
'replaced',
137
'reason',
138
'spam',
139
'modify_tag',
140
'message_info',
141
'delivery',
142
'emoji',
143
'title',
144
'description',
145
'canonical-url',
146
'matched-text',
147
'star',
148
'unstar',
149
'media_key',
150
'filename',
151
'identity',
152
'unread',
153
'page',
154
'page_count',
155
'search',
156
'media_message',
157
'security',
158
'call_log',
159
'profile',
160
'ciphertext',
161
'invite',
162
'gif',
163
'vcard',
164
'frequent',
165
'privacy',
166
'blacklist',
167
'whitelist',
168
'verify',
169
'location',
170
'document',
171
'elapsed',
172
'revoke_invite',
173
'expiration',
174
'unsubscribe',
175
'disable',
176
'vname',
177
'old_jid',
178
'new_jid',
179
'announcement',
180
'locked',
181
'prop',
182
'label',
183
'color',
184
'call',
185
'offer',
186
'call-id',
187
'quick_reply',
188
'sticker',
189
'pay_t',
190
'accept',
191
'reject',
192
'sticker_pack',
193
'invalid',
194
'canceled',
195
'missed',
196
'connected',
197
'result',
198
'audio',
199
'video',
200
'recent',
201
];
202
exports.TOKEN_MAP = {};
203
for (let i = 0; i < exports.SINGLE_BYTE_TOKENS.length; i++) {
204
exports.TOKEN_MAP[exports.SINGLE_BYTE_TOKENS[i]] = { index: i };
205
}
206
207