ws-rapido 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/index.js +477 -0
  2. package/package.json +46 -0
  3. package/src/addExternalModule.js +25 -0
  4. package/src/addUserToGroup.js +115 -0
  5. package/src/changeAdminStatus.js +103 -0
  6. package/src/changeArchivedStatus.js +55 -0
  7. package/src/changeAvatar.js +136 -0
  8. package/src/changeAvatarV2.js +86 -0
  9. package/src/changeBio.js +76 -0
  10. package/src/changeBlockedStatus.js +49 -0
  11. package/src/changeBlockedStatusMqtt.js +80 -0
  12. package/src/changeCover.js +72 -0
  13. package/src/changeGroupImage.js +135 -0
  14. package/src/changeName.js +78 -0
  15. package/src/changeNickname.js +59 -0
  16. package/src/changeThreadColor.js +65 -0
  17. package/src/changeThreadEmoji.js +55 -0
  18. package/src/changeUsername.js +58 -0
  19. package/src/createCommentPost.js +229 -0
  20. package/src/createNewGroup.js +88 -0
  21. package/src/createPoll.js +71 -0
  22. package/src/createPost.js +275 -0
  23. package/src/data/getThreadInfo.json +1 -0
  24. package/src/deleteMessage.js +56 -0
  25. package/src/deleteThread.js +56 -0
  26. package/src/editMessage.js +76 -0
  27. package/src/follow.js +74 -0
  28. package/src/forwardAttachment.js +60 -0
  29. package/src/getAccess.js +111 -0
  30. package/src/getAvatarUser.js +78 -0
  31. package/src/getBotInitialData.js +43 -0
  32. package/src/getCtx.js +5 -0
  33. package/src/getCurrentUserID.js +7 -0
  34. package/src/getEmojiUrl.js +29 -0
  35. package/src/getFriendsList.js +83 -0
  36. package/src/getMessage.js +835 -0
  37. package/src/getOptions.js +5 -0
  38. package/src/getRegion.js +7 -0
  39. package/src/getThreadHistory.js +680 -0
  40. package/src/getThreadHistoryDeprecated.js +93 -0
  41. package/src/getThreadInfo.js +227 -0
  42. package/src/getThreadInfoDeprecated.js +80 -0
  43. package/src/getThreadList.js +269 -0
  44. package/src/getThreadListDeprecated.js +75 -0
  45. package/src/getThreadPictures.js +79 -0
  46. package/src/getUID.js +122 -0
  47. package/src/getUserID.js +66 -0
  48. package/src/getUserInfo.js +82 -0
  49. package/src/handleFriendRequest.js +57 -0
  50. package/src/handleMessageRequest.js +65 -0
  51. package/src/httpGet.js +64 -0
  52. package/src/httpPost.js +64 -0
  53. package/src/httpPostFormData.js +70 -0
  54. package/src/listenMqtt.js +674 -0
  55. package/src/listenNotification.js +85 -0
  56. package/src/logout.js +75 -0
  57. package/src/markAsDelivered.js +55 -0
  58. package/src/markAsRead.js +85 -0
  59. package/src/markAsReadAll.js +50 -0
  60. package/src/markAsSeen.js +61 -0
  61. package/src/muteThread.js +52 -0
  62. package/src/pinMessage.js +59 -0
  63. package/src/refreshFb_dtsg.js +89 -0
  64. package/src/removeUserFromGroup.js +79 -0
  65. package/src/resolvePhotoUrl.js +45 -0
  66. package/src/searchForThread.js +53 -0
  67. package/src/searchStickers.js +53 -0
  68. package/src/sendMessage.js +442 -0
  69. package/src/sendMessageMqtt.js +316 -0
  70. package/src/sendTypingIndicator.js +28 -0
  71. package/src/setMessageReaction.js +122 -0
  72. package/src/setMessageReactionMqtt.js +62 -0
  73. package/src/setPostReaction.js +108 -0
  74. package/src/setProfileGuard.js +44 -0
  75. package/src/setStoryReaction.js +64 -0
  76. package/src/setTitle.js +90 -0
  77. package/src/shareContact.js +110 -0
  78. package/src/shareLink.js +59 -0
  79. package/src/stopListenMqtt.js +23 -0
  80. package/src/threadColors.js +131 -0
  81. package/src/unfriend.js +52 -0
  82. package/src/unsendMessage.js +45 -0
  83. package/src/uploadAttachment.js +94 -0
  84. package/utils.js +1441 -0
@@ -0,0 +1,835 @@
1
+ "use strict";
2
+
3
+ // Original
4
+ /**
5
+ * @author https://github.com/Schmavery/facebook-chat-api/pull/865
6
+ */
7
+
8
+ const utils = require("../utils");
9
+ // @NethWs3Dev
10
+
11
+ function formatMessage(threadID, data) {
12
+ switch (data.__typename) {
13
+ case "ThreadNameMessage":
14
+ return {
15
+ type: "event",
16
+ threadID: threadID,
17
+ messageID: data.message_id,
18
+ logMessageType: "log:thread-name",
19
+ logMessageData: {
20
+ name: data.thread_name,
21
+ },
22
+ logMessageBody: data.snippet,
23
+ timestamp: data.timestamp_precise,
24
+ author: data.message_sender.id,
25
+ };
26
+ case "ThreadImageMessage":
27
+ const metadata = data.image_with_metadata;
28
+ return {
29
+ type: "event",
30
+ threadID: threadID,
31
+ messageID: data.message_id,
32
+ logMessageType: "log:thread-image",
33
+ logMessageData: metadata
34
+ ? {
35
+ attachmentID: metadata.legacy_attachment_id,
36
+ width: metadata.original_dimensions.x,
37
+ height: metadata.original_dimensions.y,
38
+ url: metadata.preview.uri,
39
+ }
40
+ : {
41
+ attachmentID: null,
42
+ width: null,
43
+ height: null,
44
+ url: null,
45
+ },
46
+ logMessageBody: data.snippet,
47
+ timestamp: data.timestamp_precise,
48
+ author: data.message_sender.id,
49
+ };
50
+ case "GenericAdminTextMessage":
51
+ switch (data.extensible_message_admin_text_type) {
52
+ case "CHANGE_THREAD_THEME":
53
+ return {
54
+ type: "event",
55
+ threadID: threadID,
56
+ messageID: data.message_id,
57
+ logMessageType: "log:thread-color",
58
+ logMessageData: colors.find(
59
+ (color) =>
60
+ color.theme_color ===
61
+ data.extensible_message_admin_text.theme_color,
62
+ ) || {
63
+ theme_color: data.extensible_message_admin_text.theme_color,
64
+ theme_id: null,
65
+ theme_emoji: null,
66
+ gradient: null,
67
+ should_show_icon: null,
68
+ theme_name_with_subtitle: null,
69
+ },
70
+ logMessageBody: data.snippet,
71
+ timestamp: data.timestamp_precise,
72
+ author: data.message_sender.id,
73
+ };
74
+ case "CHANGE_THREAD_ICON":
75
+ const thread_icon = data.extensible_message_admin_text.thread_icon;
76
+ return {
77
+ type: "event",
78
+ threadID: threadID,
79
+ messageID: data.message_id,
80
+ logMessageType: "log:thread-icon",
81
+ logMessageData: {
82
+ thread_icon_url: `https://static.xx.fbcdn.net/images/emoji.php/v9/t3c/1/16/${thread_icon
83
+ .codePointAt(0)
84
+ .toString(16)}.png`,
85
+ thread_icon: thread_icon,
86
+ },
87
+ logMessageBody: data.snippet,
88
+ timestamp: data.timestamp_precise,
89
+ author: data.message_sender.id,
90
+ };
91
+ case "CHANGE_THREAD_NICKNAME":
92
+ return {
93
+ type: "event",
94
+ threadID: threadID,
95
+ messageID: data.message_id,
96
+ logMessageType: "log:user-nickname",
97
+ logMessageData: {
98
+ nickname: data.extensible_message_admin_text.nickname,
99
+ participant_id: data.extensible_message_admin_text.participant_id,
100
+ },
101
+ logMessageBody: data.snippet,
102
+ timestamp: data.timestamp_precise,
103
+ author: data.message_sender.id,
104
+ };
105
+ case "GROUP_POLL":
106
+ const question = data.extensible_message_admin_text.question;
107
+ return {
108
+ type: "event",
109
+ threadID: threadID,
110
+ messageID: data.message_id,
111
+ logMessageType: "log:thread-poll",
112
+ logMessageData: {
113
+ question_json: JSON.stringify({
114
+ id: question.id,
115
+ text: question.text,
116
+ total_count: data.extensible_message_admin_text.total_count,
117
+ viewer_has_voted: question.viewer_has_voted,
118
+ question_type: "",
119
+ creator_id: data.message_sender.id,
120
+ options: question.options.nodes.map((option) => ({
121
+ id: option.id,
122
+ text: option.text,
123
+ total_count: option.voters.nodes.length,
124
+ viewer_has_voted: option.viewer_has_voted,
125
+ voters: option.voters.nodes.map((voter) => voter.id),
126
+ })),
127
+ }),
128
+ event_type:
129
+ data.extensible_message_admin_text.event_type.toLowerCase(),
130
+ question_id: question.id,
131
+ },
132
+ logMessageBody: data.snippet,
133
+ timestamp: data.timestamp_precise,
134
+ author: data.message_sender.id,
135
+ };
136
+ default:
137
+ throw new Error(
138
+ `Unknown admin text type: "${data.extensible_message_admin_text_type}", if this happens to you let me know when it happens. Please open an issue at https://github.com/ntkhang03/fb-chat-api/issues.`,
139
+ );
140
+ }
141
+ case "UserMessage":
142
+ return {
143
+ senderID: data.message_sender.id,
144
+ body: data.message.text,
145
+ threadID: threadID,
146
+ messageID: data.message_id,
147
+ reactions: data.message_reactions.map((r) => ({
148
+ [r.user.id]: r.reaction,
149
+ })),
150
+ attachments:
151
+ data.blob_attachments && data.blob_attachments.length > 0
152
+ ? data.blob_attachments.length.map((att) => {
153
+ let x;
154
+ try {
155
+ x = utils._formatAttachment(att);
156
+ } catch (ex) {
157
+ x = att;
158
+ x.error = ex;
159
+ x.type = "unknown";
160
+ }
161
+ return x;
162
+ })
163
+ : data.extensible_attachment &&
164
+ Object.keys(data.extensible_attachment).length > 0
165
+ ? [
166
+ {
167
+ type: "share",
168
+ ID: data.extensible_attachment.legacy_attachment_id,
169
+ url: data.extensible_attachment.story_attachment.url,
170
+
171
+ title:
172
+ data.extensible_attachment.story_attachment
173
+ .title_with_entities.text,
174
+ description:
175
+ data.extensible_attachment.story_attachment.description
176
+ .text,
177
+ source: data.extensible_attachment.story_attachment.source,
178
+
179
+ image: (
180
+ (data.extensible_attachment.story_attachment.media || {})
181
+ .image || {}
182
+ ).uri,
183
+ width: (
184
+ (data.extensible_attachment.story_attachment.media || {})
185
+ .image || {}
186
+ ).width,
187
+ height: (
188
+ (data.extensible_attachment.story_attachment.media || {})
189
+ .image || {}
190
+ ).height,
191
+ playable:
192
+ (data.extensible_attachment.story_attachment.media || {})
193
+ .is_playable || false,
194
+ duration:
195
+ (data.extensible_attachment.story_attachment.media || {})
196
+ .playable_duration_in_ms || 0,
197
+
198
+ subattachments: data.extensible_attachment.subattachments,
199
+ properties:
200
+ data.extensible_attachment.story_attachment.properties,
201
+ },
202
+ ]
203
+ : [],
204
+ mentions: data.message.ranges.map((mention) => ({
205
+ [mention.entity.id]: data.message.text.substring(
206
+ mention.offset,
207
+ mention.offset + mention.length,
208
+ ),
209
+ })),
210
+ timestamp: data.timestamp_precise,
211
+ };
212
+ default:
213
+ throw new Error(
214
+ `Unknown message type: "${data.__typename}", if this happens to you let me know when it happens. Please open an issue at https://github.com/ntkhang03/fb-chat-api/issues.`,
215
+ );
216
+ // If this happens to you let me know when it happens
217
+ // Please open an issue at https://github.com/ntkhang03/fb-chat-api/issues.
218
+ // return Object.assign({ type: "unknown", data });
219
+ }
220
+ }
221
+
222
+ function parseDelta(threadID, delta) {
223
+ if (delta.replied_to_message) {
224
+ return Object.assign(
225
+ {
226
+ type: "message_reply",
227
+ },
228
+ formatMessage(threadID, delta),
229
+ {
230
+ messageReply: formatMessage(threadID, delta.replied_to_message.message),
231
+ },
232
+ );
233
+ } else {
234
+ return formatMessage(threadID, delta);
235
+ }
236
+ }
237
+
238
+ module.exports = function (defaultFuncs, api, ctx) {
239
+ return function getMessage(threadID, messageID, callback) {
240
+ let resolveFunc = function () {};
241
+ let rejectFunc = function () {};
242
+ const returnPromise = new Promise(function (resolve, reject) {
243
+ resolveFunc = resolve;
244
+ rejectFunc = reject;
245
+ });
246
+
247
+ if (!callback) {
248
+ callback = function (err, info) {
249
+ if (err) return rejectFunc(err);
250
+ resolveFunc(info);
251
+ };
252
+ }
253
+
254
+ if (!threadID || !messageID) {
255
+ return callback({ error: "getMessage: need threadID and messageID" });
256
+ }
257
+
258
+ const form = {
259
+ av: ctx.globalOptions.pageID,
260
+ queries: JSON.stringify({
261
+ o0: {
262
+ //This doc_id is valid as of ? (prob January 18, 2020)
263
+ doc_id: "1768656253222505",
264
+ query_params: {
265
+ thread_and_message_id: {
266
+ thread_id: threadID,
267
+ message_id: messageID,
268
+ },
269
+ },
270
+ },
271
+ }),
272
+ };
273
+
274
+ defaultFuncs
275
+ .post("https://www.facebook.com/api/graphqlbatch/", ctx.jar, form)
276
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
277
+ .then((resData) => {
278
+ if (resData[resData.length - 1].error_results > 0) {
279
+ throw resData[0].o0.errors;
280
+ }
281
+
282
+ if (resData[resData.length - 1].successful_results === 0) {
283
+ throw {
284
+ error: "getMessage: there was no successful_results",
285
+ res: resData,
286
+ };
287
+ }
288
+
289
+ const fetchData = resData[0].o0.data.message;
290
+ if (fetchData) {
291
+ callback(null, parseDelta(threadID, fetchData));
292
+ } else {
293
+ throw fetchData;
294
+ }
295
+ })
296
+ .catch((err) => {
297
+ utils.error("getMessage", err);
298
+ callback(err);
299
+ });
300
+
301
+ return returnPromise;
302
+ };
303
+ };
304
+
305
+ const colors = [
306
+ {
307
+ theme_color: "FF000000",
308
+ theme_id: "788274591712841",
309
+ theme_emoji: "🖤",
310
+ gradient: '["FFF0F0F0"]',
311
+ should_show_icon: "",
312
+ theme_name_with_subtitle: "Monochrome",
313
+ },
314
+ {
315
+ theme_color: "FFFF5CA1",
316
+ theme_id: "169463077092846",
317
+ theme_emoji: null,
318
+ gradient: null,
319
+ should_show_icon: "1",
320
+ theme_name_with_subtitle: "Hot Pink",
321
+ },
322
+ {
323
+ theme_color: "FF2825B5",
324
+ theme_id: "271607034185782",
325
+ theme_emoji: null,
326
+ gradient: '["FF5E007E","FF331290","FF2825B5"]',
327
+ should_show_icon: "1",
328
+ theme_name_with_subtitle: "Shadow",
329
+ },
330
+ {
331
+ theme_color: "FFD9A900",
332
+ theme_id: "2533652183614000",
333
+ theme_emoji: null,
334
+ gradient: '["FF550029","FFAA3232","FFD9A900"]',
335
+ should_show_icon: "1",
336
+ theme_name_with_subtitle: "Maple",
337
+ },
338
+ {
339
+ theme_color: "FFFB45DE",
340
+ theme_id: "2873642949430623",
341
+ theme_emoji: null,
342
+ gradient: null,
343
+ should_show_icon: "1",
344
+ theme_name_with_subtitle: "Tulip",
345
+ },
346
+ {
347
+ theme_color: "FF5E007E",
348
+ theme_id: "193497045377796",
349
+ theme_emoji: null,
350
+ gradient: null,
351
+ should_show_icon: "1",
352
+ theme_name_with_subtitle: "Grape",
353
+ },
354
+ {
355
+ theme_color: "FF7AA286",
356
+ theme_id: "1455149831518874",
357
+ theme_emoji: "🌑",
358
+ gradient: '["FF25C0E1","FFCE832A"]',
359
+ should_show_icon: "",
360
+ theme_name_with_subtitle: "Dune",
361
+ },
362
+ {
363
+ theme_color: "FFFAAF00",
364
+ theme_id: "672058580051520",
365
+ theme_emoji: null,
366
+ gradient: null,
367
+ should_show_icon: "1",
368
+ theme_name_with_subtitle: "Honey",
369
+ },
370
+ {
371
+ theme_color: "FF0084FF",
372
+ theme_id: "196241301102133",
373
+ theme_emoji: null,
374
+ gradient: null,
375
+ should_show_icon: "1",
376
+ theme_name_with_subtitle: "Default Blue",
377
+ },
378
+ {
379
+ theme_color: "FFFFC300",
380
+ theme_id: "174636906462322",
381
+ theme_emoji: null,
382
+ gradient: null,
383
+ should_show_icon: "1",
384
+ theme_name_with_subtitle: "Yellow",
385
+ },
386
+ {
387
+ theme_color: "FF44BEC7",
388
+ theme_id: "1928399724138152",
389
+ theme_emoji: null,
390
+ gradient: null,
391
+ should_show_icon: "1",
392
+ theme_name_with_subtitle: "Teal Blue",
393
+ },
394
+ {
395
+ theme_color: "FF7646FF",
396
+ theme_id: "234137870477637",
397
+ theme_emoji: null,
398
+ gradient: null,
399
+ should_show_icon: "1",
400
+ theme_name_with_subtitle: "Bright Purple",
401
+ },
402
+ {
403
+ theme_color: "FFF25C54",
404
+ theme_id: "3022526817824329",
405
+ theme_emoji: null,
406
+ gradient: null,
407
+ should_show_icon: "1",
408
+ theme_name_with_subtitle: "Peach",
409
+ },
410
+ {
411
+ theme_color: "FFF01D6A",
412
+ theme_id: "724096885023603",
413
+ theme_emoji: null,
414
+ gradient: '["FF005FFF","FF9200FF","FFFF2E19"]',
415
+ should_show_icon: "1",
416
+ theme_name_with_subtitle: "Berry",
417
+ },
418
+ {
419
+ theme_color: "FFFF7CA8",
420
+ theme_id: "624266884847972",
421
+ theme_emoji: null,
422
+ gradient: '["FFFF8FB2","FFA797FF","FF00E5FF"]',
423
+ should_show_icon: "1",
424
+ theme_name_with_subtitle: "Candy",
425
+ },
426
+ {
427
+ theme_color: "FF6E5B04",
428
+ theme_id: "365557122117011",
429
+ theme_emoji: "💛",
430
+ gradient: '["FFED9F9A","FFED9F9A","FFED9F9A"]',
431
+ should_show_icon: "",
432
+ theme_name_with_subtitle: "Support",
433
+ },
434
+ {
435
+ theme_color: "FF0052CD",
436
+ theme_id: "230032715012014",
437
+ theme_emoji: "âœŒī¸",
438
+ gradient: '["FF0052CD","FF00A1E6","FF0052CD"]',
439
+ should_show_icon: "",
440
+ theme_name_with_subtitle: "Tie-Dye",
441
+ },
442
+ {
443
+ theme_color: "FF601DDD",
444
+ theme_id: "1060619084701625",
445
+ theme_emoji: "â˜ī¸",
446
+ gradient: '["FFCA34FF","FF302CFF","FFBA009C"]',
447
+ should_show_icon: "",
448
+ theme_name_with_subtitle: "Lo-Fi",
449
+ },
450
+ {
451
+ theme_color: "FF0099FF",
452
+ theme_id: "3273938616164733",
453
+ theme_emoji: null,
454
+ gradient: null,
455
+ should_show_icon: "1",
456
+ theme_name_with_subtitle: "Classic",
457
+ },
458
+ {
459
+ theme_color: "FF1ADB5B",
460
+ theme_id: "370940413392601",
461
+ theme_emoji: null,
462
+ gradient: '["FFFFD200","FF6EDF00","FF00DFBB"]',
463
+ should_show_icon: "1",
464
+ theme_name_with_subtitle: "Citrus",
465
+ },
466
+ {
467
+ theme_color: "FFD696BB",
468
+ theme_id: "2058653964378557",
469
+ theme_emoji: null,
470
+ gradient: null,
471
+ should_show_icon: "1",
472
+ theme_name_with_subtitle: "Lavender Purple",
473
+ },
474
+ {
475
+ theme_color: "FFC03232",
476
+ theme_id: "1059859811490132",
477
+ theme_emoji: "🙃",
478
+ gradient: '["FFDB4040","FFA32424"]',
479
+ should_show_icon: "",
480
+ theme_name_with_subtitle: "Stranger Things",
481
+ },
482
+ {
483
+ theme_color: "FFFA3C4C",
484
+ theme_id: "2129984390566328",
485
+ theme_emoji: null,
486
+ gradient: null,
487
+ should_show_icon: "1",
488
+ theme_name_with_subtitle: "Red",
489
+ },
490
+ {
491
+ theme_color: "FF13CF13",
492
+ theme_id: "2136751179887052",
493
+ theme_emoji: null,
494
+ gradient: null,
495
+ should_show_icon: "1",
496
+ theme_name_with_subtitle: "Green",
497
+ },
498
+ {
499
+ theme_color: "FFFF7E29",
500
+ theme_id: "175615189761153",
501
+ theme_emoji: null,
502
+ gradient: null,
503
+ should_show_icon: "1",
504
+ theme_name_with_subtitle: "Orange",
505
+ },
506
+ {
507
+ theme_color: "FFE68585",
508
+ theme_id: "980963458735625",
509
+ theme_emoji: null,
510
+ gradient: null,
511
+ should_show_icon: "1",
512
+ theme_name_with_subtitle: "Coral Pink",
513
+ },
514
+ {
515
+ theme_color: "FF20CEF5",
516
+ theme_id: "2442142322678320",
517
+ theme_emoji: null,
518
+ gradient: null,
519
+ should_show_icon: "1",
520
+ theme_name_with_subtitle: "Aqua Blue",
521
+ },
522
+ {
523
+ theme_color: "FF0EDCDE",
524
+ theme_id: "417639218648241",
525
+ theme_emoji: null,
526
+ gradient: '["FF19C9FF","FF00E6D2","FF0EE6B7"]',
527
+ should_show_icon: "1",
528
+ theme_name_with_subtitle: "Aqua",
529
+ },
530
+ {
531
+ theme_color: "FFFF9C19",
532
+ theme_id: "930060997172551",
533
+ theme_emoji: null,
534
+ gradient: '["FFFFDC2D","FFFF9616","FFFF4F00"]',
535
+ should_show_icon: "1",
536
+ theme_name_with_subtitle: "Mango",
537
+ },
538
+ {
539
+ theme_color: "FFF01D6A",
540
+ theme_id: "164535220883264",
541
+ theme_emoji: null,
542
+ gradient: '["FF005FFF","FF9200FF","FFFF2E19"]',
543
+ should_show_icon: "1",
544
+ theme_name_with_subtitle: "Berry",
545
+ },
546
+ {
547
+ theme_color: "FFFF7CA8",
548
+ theme_id: "205488546921017",
549
+ theme_emoji: null,
550
+ gradient: '["FFFF8FB2","FFA797FF","FF00E5FF"]',
551
+ should_show_icon: "1",
552
+ theme_name_with_subtitle: "Candy",
553
+ },
554
+ {
555
+ theme_color: "FFFF6F07",
556
+ theme_id: "1833559466821043",
557
+ theme_emoji: "🌎",
558
+ gradient: '["FFFF6F07"]',
559
+ should_show_icon: "",
560
+ theme_name_with_subtitle: "Earth",
561
+ },
562
+ {
563
+ theme_color: "FF0B0085",
564
+ theme_id: "339021464972092",
565
+ theme_emoji: "🔈",
566
+ gradient: '["FF2FA9E4","FF648FEB","FF9B73F2"]',
567
+ should_show_icon: "",
568
+ theme_name_with_subtitle: "Music",
569
+ },
570
+ {
571
+ theme_color: "FF8A39EF",
572
+ theme_id: "1652456634878319",
573
+ theme_emoji: "đŸŗī¸â€đŸŒˆ",
574
+ gradient:
575
+ '["FFFF0018","FFFF0417","FFFF310E","FFFF5D06","FFFF7A01","FFFF8701","FFFFB001","FFD9C507","FF79C718","FF01C92D","FF01BE69","FF01B3AA","FF0BA1DF","FF3F77E6","FF724CEC","FF8A39EF","FF8A39EF"]',
576
+ should_show_icon: "",
577
+ theme_name_with_subtitle: "Pride",
578
+ },
579
+ {
580
+ theme_color: "FF004D7C",
581
+ theme_id: "538280997628317",
582
+ theme_emoji: "🌀",
583
+ gradient: '["FF931410","FF931410","FF931410"]',
584
+ should_show_icon: "",
585
+ theme_name_with_subtitle: "Doctor Strange",
586
+ },
587
+ {
588
+ theme_color: "FF4F4DFF",
589
+ theme_id: "3190514984517598",
590
+ theme_emoji: "🌤",
591
+ gradient: '["FF0080FF","FF9F1AFF"]',
592
+ should_show_icon: "",
593
+ theme_name_with_subtitle: "Sky",
594
+ },
595
+ {
596
+ theme_color: "FFE84B28",
597
+ theme_id: "357833546030778",
598
+ theme_emoji: "đŸ¯",
599
+ gradient: '["FFF69500","FFDA0050"]',
600
+ should_show_icon: "1",
601
+ theme_name_with_subtitle: "Lunar New Year",
602
+ },
603
+ {
604
+ theme_color: "FFB24B77",
605
+ theme_id: "627144732056021",
606
+ theme_emoji: "đŸĨŗ",
607
+ gradient: '["FFF1614E","FF660F84"]',
608
+ should_show_icon: "",
609
+ theme_name_with_subtitle: "Celebration!",
610
+ },
611
+ {
612
+ theme_color: "FF66A9FF",
613
+ theme_id: "390127158985345",
614
+ theme_emoji: "đŸĨļ",
615
+ gradient: '["FF8CB3FF","FF409FFF"]',
616
+ should_show_icon: "",
617
+ theme_name_with_subtitle: "Chill",
618
+ },
619
+ {
620
+ theme_color: "FF5797FC",
621
+ theme_id: "275041734441112",
622
+ theme_emoji: "😌",
623
+ gradient: '["FF4AC9E4","FF5890FF","FF8C91FF"]',
624
+ should_show_icon: "",
625
+ theme_name_with_subtitle: "Care",
626
+ },
627
+ {
628
+ theme_color: "FFFF595C",
629
+ theme_id: "3082966625307060",
630
+ theme_emoji: "đŸ’Ģ",
631
+ gradient: '["FFFF239A","FFFF8C21"]',
632
+ should_show_icon: "",
633
+ theme_name_with_subtitle: "Astrology",
634
+ },
635
+ {
636
+ theme_color: "FF0171FF",
637
+ theme_id: "184305226956268",
638
+ theme_emoji: "â˜ī¸",
639
+ gradient: '["FF0026ee","FF00b2ff"]',
640
+ should_show_icon: "",
641
+ theme_name_with_subtitle: "J Balvin",
642
+ },
643
+ {
644
+ theme_color: "FFA033FF",
645
+ theme_id: "621630955405500",
646
+ theme_emoji: "🎉",
647
+ gradient: '["FFFF7061","FFFF5280","FFA033FF","FF0099FF"]',
648
+ should_show_icon: "",
649
+ theme_name_with_subtitle: "Birthday",
650
+ },
651
+ {
652
+ theme_color: "FF006528",
653
+ theme_id: "539927563794799",
654
+ theme_emoji: "🍄",
655
+ gradient: '["FF00d52f","FF006528"]',
656
+ should_show_icon: "",
657
+ theme_name_with_subtitle: "Cottagecore",
658
+ },
659
+ {
660
+ theme_color: "FF4D3EC2",
661
+ theme_id: "736591620215564",
662
+ theme_emoji: null,
663
+ gradient: null,
664
+ should_show_icon: "1",
665
+ theme_name_with_subtitle: "Ocean",
666
+ },
667
+ {
668
+ theme_color: "FF4e4bf5",
669
+ theme_id: "3259963564026002",
670
+ theme_emoji: null,
671
+ gradient: '["FFAA00FF","FF0080FF"]',
672
+ should_show_icon: "1",
673
+ theme_name_with_subtitle: "Default",
674
+ },
675
+ {
676
+ theme_color: "FF3A12FF",
677
+ theme_id: "582065306070020",
678
+ theme_emoji: null,
679
+ gradient: '["FFFAAF00","FFFF2E2E","FF3A12FF"]',
680
+ should_show_icon: "1",
681
+ theme_name_with_subtitle: "Rocket",
682
+ },
683
+ {
684
+ theme_color: "FF3A1D8A",
685
+ theme_id: "273728810607574",
686
+ theme_emoji: null,
687
+ gradient: '["FFFB45DE","FF841DD5","FF3A1D8A"]',
688
+ should_show_icon: "1",
689
+ theme_name_with_subtitle: "Unicorn",
690
+ },
691
+ {
692
+ theme_color: "FF9FD52D",
693
+ theme_id: "262191918210707",
694
+ theme_emoji: null,
695
+ gradient: '["FF2A7FE3","FF00BF91","FF9FD52D"]',
696
+ should_show_icon: "1",
697
+ theme_name_with_subtitle: "Tropical",
698
+ },
699
+ {
700
+ theme_color: "FFF7B267",
701
+ theme_id: "909695489504566",
702
+ theme_emoji: null,
703
+ gradient: '["FFF25C54","FFF4845F","FFF7B267"]',
704
+ should_show_icon: "1",
705
+ theme_name_with_subtitle: "Sushi",
706
+ },
707
+ {
708
+ theme_color: "FF1ADB5B",
709
+ theme_id: "557344741607350",
710
+ theme_emoji: null,
711
+ gradient: '["FFFFD200","FF6EDF00","FF00DFBB"]',
712
+ should_show_icon: "1",
713
+ theme_name_with_subtitle: "Citrus",
714
+ },
715
+ {
716
+ theme_color: "FF4D3EC2",
717
+ theme_id: "280333826736184",
718
+ theme_emoji: null,
719
+ gradient: '["FFFF625B","FFC532AD","FF4D3EC2"]',
720
+ should_show_icon: "1",
721
+ theme_name_with_subtitle: "Lollipop",
722
+ },
723
+ {
724
+ theme_color: "FFFF311E",
725
+ theme_id: "1257453361255152",
726
+ theme_emoji: null,
727
+ gradient: null,
728
+ should_show_icon: "1",
729
+ theme_name_with_subtitle: "Rose",
730
+ },
731
+ {
732
+ theme_color: "FFA797FF",
733
+ theme_id: "571193503540759",
734
+ theme_emoji: null,
735
+ gradient: null,
736
+ should_show_icon: "1",
737
+ theme_name_with_subtitle: "Lavender",
738
+ },
739
+ {
740
+ theme_color: "FF6EDF00",
741
+ theme_id: "3151463484918004",
742
+ theme_emoji: null,
743
+ gradient: null,
744
+ should_show_icon: "1",
745
+ theme_name_with_subtitle: "Kiwi",
746
+ },
747
+ {
748
+ theme_color: "FF9D59D2",
749
+ theme_id: "737761000603635",
750
+ theme_emoji: "💛",
751
+ gradient: '["FFFFD600","FFFCB37B","FF9D59D2","FF282828"]',
752
+ should_show_icon: "",
753
+ theme_name_with_subtitle: "Non-Binary",
754
+ },
755
+ {
756
+ theme_color: "FF57C39C",
757
+ theme_id: "1288506208402340",
758
+ theme_emoji: "💐",
759
+ gradient: '["FF57C39C","FF57C39C","FF57C39C"]',
760
+ should_show_icon: "",
761
+ theme_name_with_subtitle: "Mother's Day",
762
+ },
763
+ {
764
+ theme_color: "FFF65900",
765
+ theme_id: "121771470870245",
766
+ theme_emoji: "đŸ’Ĩ",
767
+ gradient: '["FFFF8328","FFFF7014","FFFF5C00"]',
768
+ should_show_icon: "",
769
+ theme_name_with_subtitle: "APAHM",
770
+ },
771
+ {
772
+ theme_color: "FF978E21",
773
+ theme_id: "810978360551741",
774
+ theme_emoji: "đŸĒē",
775
+ gradient: '["FF978E21","FF978E21","FF978E21"]',
776
+ should_show_icon: "",
777
+ theme_name_with_subtitle: "Parenthood",
778
+ },
779
+ {
780
+ theme_color: "FFDD8800",
781
+ theme_id: "1438011086532622",
782
+ theme_emoji: "✨",
783
+ gradient: '["FFEDAB00","FFCD6300"]',
784
+ should_show_icon: "",
785
+ theme_name_with_subtitle: "Star Wars",
786
+ },
787
+ {
788
+ theme_color: "FF7D09B9",
789
+ theme_id: "101275642962533",
790
+ theme_emoji: "🚀",
791
+ gradient: '["FF5C22D6","FF8F1EB5","FFC31B92"]',
792
+ should_show_icon: "",
793
+ theme_name_with_subtitle: "Guardians of the Galaxy",
794
+ },
795
+ {
796
+ theme_color: "FF61C500",
797
+ theme_id: "158263147151440",
798
+ theme_emoji: "🐝",
799
+ gradient: '["FF61C500","FF61C500","FF61C500"]',
800
+ should_show_icon: "",
801
+ theme_name_with_subtitle: "Bloom",
802
+ },
803
+ {
804
+ theme_color: "FF826044",
805
+ theme_id: "195296273246380",
806
+ theme_emoji: "🧋",
807
+ gradient: '["FF886546","FFA27F57","FFC6A26E"]',
808
+ should_show_icon: "",
809
+ theme_name_with_subtitle: "Bubble Tea",
810
+ },
811
+ {
812
+ theme_color: "FFB02501",
813
+ theme_id: "6026716157422736",
814
+ theme_emoji: "â›šī¸",
815
+ gradient: '["FFAC2503","FFB02501","FFB42400"]',
816
+ should_show_icon: "",
817
+ theme_name_with_subtitle: "Basketball",
818
+ },
819
+ {
820
+ theme_color: "FF574DC1",
821
+ theme_id: "693996545771691",
822
+ theme_emoji: "🖤",
823
+ gradient: '["FF4533FF","FF574AE0","FF6C64BE"]',
824
+ should_show_icon: "",
825
+ theme_name_with_subtitle: "Elephants&Flowers",
826
+ },
827
+ {
828
+ theme_color: "FFA8B8DA",
829
+ theme_id: "504518465021637",
830
+ theme_emoji: "đŸŗī¸â€âš§ī¸",
831
+ gradient: '["FF55D0FF","FF7597D7","FFFF9FB3","FFFF9FB3"]',
832
+ should_show_icon: "",
833
+ theme_name_with_subtitle: "Transgender",
834
+ },
835
+ ];