-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
threads.go
677 lines (556 loc) · 29.6 KB
/
threads.go
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
package table
type MinimalThreadInfo interface {
GetThreadKey() int64
GetThreadType() ThreadType
}
type ThreadInfo interface {
MinimalThreadInfo
GetThreadName() string
GetLastReadWatermarkTimestampMs() int64
GetThreadDescription() string
GetThreadPictureUrl() string
GetFolderName() string
}
type LSTruncateMetadataThreads struct{}
type LSUpsertInboxThreadsRange struct {
SyncGroup int64 `index:"0" json:",omitempty"`
MinLastActivityTimestampMs int64 `index:"1" json:",omitempty"`
HasMoreBefore bool `index:"2" json:",omitempty"`
IsLoadingBefore bool `index:"3" json:",omitempty"`
MinThreadKey int64 `index:"4" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateThreadsRangesV2 struct {
FolderName string `index:"0" json:",omitempty"`
ParentThreadKey int64 `index:"1" json:",omitempty"` /* not sure */
MinLastActivityTimestampMs int64 `index:"2" json:",omitempty"`
MinThreadKey int64 `index:"3" json:",omitempty"`
IsLoadingBefore int64 `index:"4" json:",omitempty"` /* not sure */
Unrecognized map[int]any `json:",omitempty"`
}
type LSDeleteThenInsertThread struct {
LastActivityTimestampMs int64 `index:"0" json:",omitempty"`
LastReadWatermarkTimestampMs int64 `index:"1" json:",omitempty"`
Snippet string `index:"2" json:",omitempty"`
ThreadName string `index:"3" json:",omitempty"`
ThreadPictureUrl string `index:"4" json:",omitempty"`
NeedsAdminApprovalForNewParticipant bool `index:"5" json:",omitempty"`
AuthorityLevel int64 `index:"6" json:",omitempty"`
ThreadKey int64 `index:"7" json:",omitempty"`
MailboxType int64 `index:"8" json:",omitempty"`
ThreadType ThreadType `index:"9" json:",omitempty"`
FolderName string `index:"10" json:",omitempty"`
ThreadPictureUrlFallback string `index:"11" json:",omitempty"`
ThreadPictureUrlExpirationTimestampMs int64 `index:"12" json:",omitempty"`
RemoveWatermarkTimestampMs int64 `index:"13" json:",omitempty"`
MuteExpireTimeMs int64 `index:"14" json:",omitempty"`
MuteCallsExpireTimeMs int64 `index:"15" json:",omitempty"`
GroupNotificationSettings int64 `index:"16" json:",omitempty"`
IsAdminSnippet bool `index:"17" json:",omitempty"`
SnippetSenderContactId int64 `index:"18" json:",omitempty"`
SnippetStringHash int64 `index:"21" json:",omitempty"`
SnippetStringArgument1 int64 `index:"22" json:",omitempty"`
SnippetAttribution int64 `index:"23" json:",omitempty"`
SnippetAttributionStringHash int64 `index:"24" json:",omitempty"`
DisappearingSettingTtl int64 `index:"25" json:",omitempty"`
DisappearingSettingUpdatedTs int64 `index:"26" json:",omitempty"`
DisappearingSettingUpdatedBy int64 `index:"27" json:",omitempty"`
OngoingCallState int64 `index:"29" json:",omitempty"`
CannotReplyReason int64 `index:"30" json:",omitempty"`
CustomEmoji string `index:"31" json:",omitempty"`
CustomEmojiImageUrl string `index:"32" json:",omitempty"`
OutgoingBubbleColor int64 `index:"33" json:",omitempty"`
ThemeFbid int64 `index:"34" json:",omitempty"`
ParentThreadKey int64 `index:"35" json:",omitempty"`
NullstateDescriptionText1 string `index:"36" json:",omitempty"`
NullstateDescriptionType1 int64 `index:"37" json:",omitempty"`
NullstateDescriptionText2 string `index:"38" json:",omitempty"`
NullstateDescriptionType2 int64 `index:"39" json:",omitempty"`
NullstateDescriptionText3 string `index:"40" json:",omitempty"`
NullstateDescriptionType3 int64 `index:"41" json:",omitempty"`
SnippetHasEmoji bool `index:"42" json:",omitempty"`
HasPersistentMenu bool `index:"43" json:",omitempty"`
DisableComposerInput bool `index:"44" json:",omitempty"`
CannotUnsendReason int64 `index:"45" json:",omitempty"`
ViewedPluginKey int64 `index:"46" json:",omitempty"`
ViewedPluginContext int64 `index:"47" json:",omitempty"`
ClientThreadKey int64 `index:"48" json:",omitempty"`
Capabilities int64 `index:"49" json:",omitempty"`
ShouldRoundThreadPicture int64 `index:"50" json:",omitempty"`
ProactiveWarningDismissTime int64 `index:"51" json:",omitempty"`
IsCustomThreadPicture bool `index:"52" json:",omitempty"`
OtidOfFirstMessage int64 `index:"53" json:",omitempty"`
NormalizedSearchTerms string `index:"54" json:",omitempty"`
AdditionalThreadContext string `index:"55" json:",omitempty"`
DisappearingThreadKey int64 `index:"56" json:",omitempty"`
IsDisappearingMode bool `index:"57" json:",omitempty"`
DisappearingModeInitiator int64 `index:"58" json:",omitempty"`
UnreadDisappearingMessageCount int64 `index:"59" json:",omitempty"`
LastMessageCtaId int64 `index:"61" json:",omitempty"`
LastMessageCtaType int64 `index:"62" json:",omitempty"`
ConsistentThreadFbid int64 `index:"63" json:",omitempty"`
ThreadDescription string `index:"64" json:",omitempty"`
UnsendLimitMs int64 `index:"65" json:",omitempty"`
SyncGroup int64 `index:"66" json:",omitempty"`
ThreadInvitesEnabled int64 `index:"67" json:",omitempty"`
ThreadInviteLink string `index:"68" json:",omitempty"`
NumUnreadSubthreads int64 `index:"69" json:",omitempty"`
SubthreadCount int64 `index:"70" json:",omitempty"`
ThreadInvitesEnabledV2 int64 `index:"71" json:",omitempty"`
JoinRequestApprovalSetting int64 `index:"72" json:",omitempty"`
PendingJoinRequestsCount int64 `index:"73" json:",omitempty"`
EventStartTimestampMs int64 `index:"74" json:",omitempty"`
EventEndTimestampMs int64 `index:"75" json:",omitempty"`
TakedownState int64 `index:"76" json:",omitempty"`
MemberCount int64 `index:"77" json:",omitempty"`
AdmodCount int64 `index:"78" json:",omitempty"`
SecondaryParentThreadKey int64 `index:"79" json:",omitempty"`
IgFolder int64 `index:"80" json:",omitempty"`
InviterId int64 `index:"81" json:",omitempty"`
ThreadTags int64 `index:"82" json:",omitempty"`
ThreadStatus int64 `index:"83" json:",omitempty"`
ThreadSubtype int64 `index:"84" json:",omitempty"`
PauseThreadTimestamp int64 `index:"85" json:",omitempty"`
Metadata any `index:"86" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
func (lsdt *LSDeleteThenInsertThread) GetThreadKey() int64 {
return lsdt.ThreadKey
}
func (lsdt *LSDeleteThenInsertThread) GetThreadName() string {
return lsdt.ThreadName
}
func (lsdt *LSDeleteThenInsertThread) GetThreadPictureUrl() string {
return lsdt.ThreadPictureUrl
}
func (lsdt *LSDeleteThenInsertThread) GetThreadType() ThreadType {
return lsdt.ThreadType
}
func (lsdt *LSDeleteThenInsertThread) GetLastReadWatermarkTimestampMs() int64 {
return lsdt.LastReadWatermarkTimestampMs
}
func (lsdt *LSDeleteThenInsertThread) GetThreadDescription() string {
return lsdt.ThreadDescription
}
func (lsdt *LSDeleteThenInsertThread) GetFolderName() string {
return lsdt.FolderName
}
type LSAddParticipantIdToGroupThread struct {
ThreadKey int64 `index:"0" json:",omitempty"`
ContactId int64 `index:"1" json:",omitempty"`
ReadWatermarkTimestampMs int64 `index:"2" json:",omitempty"`
ReadActionTimestampMs int64 `index:"3" json:",omitempty"`
DeliveredWatermarkTimestampMs int64 `index:"4" json:",omitempty"`
Nickname string `index:"5" json:",omitempty"`
IsAdmin bool `index:"6" json:",omitempty"`
SubscribeSource string `index:"7" json:",omitempty"`
AuthorityLevel int64 `index:"9" json:",omitempty"`
NormalizedSearchTerms string `index:"10" json:",omitempty"`
GroupParticipantJoinState int64 `index:"11" json:",omitempty"`
IsModerator bool `index:"12" json:",omitempty"`
IsSuperAdmin bool `index:"13" json:",omitempty"`
ThreadRoles int64 `index:"14" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSWriteThreadCapabilities struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Capabilities int64 `index:"1" json:",omitempty"`
Capabilities2 int64 `index:"2" json:",omitempty"`
Capabilities3 int64 `index:"3" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateReadReceipt struct {
ReadWatermarkTimestampMs int64 `index:"0" json:",omitempty"`
ThreadKey int64 `index:"1" json:",omitempty"`
ContactId int64 `index:"2" json:",omitempty"`
ReadActionTimestampMs int64 `index:"3" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
func (ls *LSUpdateReadReceipt) GetThreadKey() int64 {
return ls.ThreadKey
}
type LSThreadsRangesQuery struct {
ParentThreadKey int64 `index:"0" json:",omitempty"`
Unknown1 bool `index:"1" json:",omitempty"`
IsAfter bool `index:"2" json:",omitempty"`
ReferenceThreadKey int64 `conditionField:"IsAfter" indexes:"4,3" json:",omitempty"`
ReferenceActivityTimestamp int64 `conditionField:"IsAfter" indexes:"5,6" json:",omitempty"`
AdditionalPagesToFetch int64 `index:"7" json:",omitempty"`
Unknown8 bool `index:"8" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateTypingIndicator struct {
ThreadKey int64 `index:"0" json:",omitempty"`
SenderId int64 `index:"1" json:",omitempty"`
IsTyping bool `index:"2" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
func (ls *LSUpdateTypingIndicator) GetThreadKey() int64 {
return ls.ThreadKey
}
type LSMoveThreadToInboxAndUpdateParent struct {
ThreadKey int64 `index:"0" json:",omitempty"`
ParentThreadKey int64 `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateThreadSnippet struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Snippet string `index:"1" json:",omitempty"`
IsAdminSnippet bool `index:"2" json:",omitempty"`
SnippetSenderContactId int64 `index:"3" json:",omitempty"`
SnippetHasEmoji bool `index:"4" json:",omitempty"`
ViewedPluginKey string `index:"5" json:",omitempty"`
ViewedPluginContext string `index:"6" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSVerifyThreadExists struct {
ThreadKey int64 `index:"0" json:",omitempty"`
ThreadType ThreadType `index:"1" json:",omitempty"`
FolderName string `index:"2" json:",omitempty"`
ParentThreadKey int64 `index:"3" json:",omitempty"`
AuthorityLevel int64 `index:"4" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
func (lsui *LSVerifyThreadExists) GetThreadKey() int64 {
return lsui.ThreadKey
}
func (lsui *LSVerifyThreadExists) GetThreadType() ThreadType {
return lsui.ThreadType
}
func (lsui *LSVerifyThreadExists) GetFolderName() string {
return lsui.FolderName
}
type LSBumpThread struct {
LastReadWatermarkTimestampMs int64 `index:"0" json:",omitempty"`
BumpStatus ThreadBumpStatus `index:"1" json:",omitempty"`
ThreadKey int64 `index:"2" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
// Idk which snippet is the correct, there's like 6 (snippet, snippetStringHash, snippetStringArgument1, snippetAttribution, snippetAttributionStringHash)
type LSUpdateThreadSnippetFromLastMessage struct {
AccountId int64 `index:"0" json:",omitempty"`
ThreadKey int64 `index:"1" json:",omitempty"`
Snippet1 string `index:"2" json:",omitempty"`
Snippet2 string `index:"3" json:",omitempty"`
Snippet3 string `index:"4" json:",omitempty"`
Snippet4 string `index:"5" json:",omitempty"`
Snippet5 string `index:"6" json:",omitempty"`
Snippet6 string `index:"7" json:",omitempty"`
Snippet7 string `index:"8" json:",omitempty"`
Snippet8 string `index:"9" json:",omitempty"`
Snippet9 string `index:"10" json:",omitempty"`
IsAdminSnippet bool `index:"11" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateThreadSnippetFromLastMessageV2 struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSDeleteBannersByIds struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateDeliveryReceipt struct {
DeliveredWatermarkTimestampMs int64 `index:"0" json:",omitempty"`
ThreadKey int64 `index:"1" json:",omitempty"`
ContactId int64 `index:"2" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateOptimisticContextThreadKeys struct {
ThreadKey1 int64 `index:"0" json:",omitempty"`
ThreadKey2 int64 `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSReplaceOptimisticThread struct {
ThreadKey1 int64 `index:"0" json:",omitempty"`
ThreadKey2 int64 `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSApplyNewGroupThread struct {
OtidOfFirstMessage string `index:"0" json:",omitempty"`
ThreadKey int64 `index:"1" json:",omitempty"`
ThreadType ThreadType `index:"2" json:",omitempty"`
FolderName string `index:"3" json:",omitempty"`
ParentThreadKey int64 `index:"4" json:",omitempty"`
ThreadPictureUrlFallback string `index:"5" json:",omitempty"`
LastActivityTimestampMs int64 `index:"6" json:",omitempty"`
LastReadWatermarkTimestampMs int64 `index:"6" json:",omitempty"`
NullstateDescriptionText1 string `index:"8" json:",omitempty"`
NullstateDescriptionType1 int64 `index:"9" json:",omitempty"`
NullstateDescriptionText2 string `index:"10" json:",omitempty"`
NullstateDescriptionType2 int64 `index:"11" json:",omitempty"`
CannotUnsendReason int64 `index:"12" json:",omitempty"`
Capabilities int64 `index:"13" json:",omitempty"`
InviterId int64 `index:"14" json:",omitempty"`
IgFolder int64 `index:"15" json:",omitempty"`
ThreadSubtype int64 `index:"16" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSRemoveAllParticipantsForThread struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateThreadInviteLinksInfo struct {
ThreadKey int64 `index:"0" json:",omitempty"`
ThreadInvitesEnabled int64 `index:"1" json:",omitempty"` // 0 or 1
ThreadInviteLink string `index:"2" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateThreadParticipantAdminStatus struct {
ThreadKey int64 `index:"0" json:",omitempty"`
ContactId int64 `index:"1" json:",omitempty"`
IsAdmin bool `index:"2" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateParticipantSubscribeSourceText struct {
ThreadKey int64 `index:"0" json:",omitempty"`
ContactId int64 `index:"1" json:",omitempty"`
SubscribeSource string `index:"2" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSOverwriteAllThreadParticipantsAdminStatus struct {
ThreadKey int64 `index:"0" json:",omitempty"`
IsAdmin bool `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateParticipantCapabilities struct {
ContactId int64 `index:"0" json:",omitempty"`
ThreadKey int64 `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSChangeViewerStatus struct {
ThreadKey int64 `index:"0" json:",omitempty"`
CannotReplyReason string `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSSyncUpdateThreadName struct {
ThreadName string `index:"0" json:",omitempty"`
ThreadKey int64 `index:"1" json:",omitempty"`
ThreadName1 string `index:"2" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
func (utn *LSSyncUpdateThreadName) GetThreadKey() int64 {
return utn.ThreadKey
}
type LSSetThreadImageURL struct {
ThreadKey int64 `index:"0" json:",omitempty"`
ImageURL string `index:"1" json:",omitempty"`
ImageFallbackURL string `index:"2" json:",omitempty"`
ImageURLExpiryTimeMS int64 `index:"3" json:",omitempty"`
IsCustomThreadPicture bool `index:"4" json:",omitempty"`
ShouldRoundThreadPicture bool `index:"5" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
func (ls *LSSetThreadImageURL) GetThreadKey() int64 {
return ls.ThreadKey
}
type LSWriteCTAIdToThreadsTable struct {
ThreadKey int64 `index:"0" json:",omitempty"`
LastMessageCtaType string `index:"1" json:",omitempty"`
LastMessageCtaTimestampMs int64 `index:"2" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSQueryAdditionalGroupThreads struct {
NumThreads int64 `index:"0" json:",omitempty"`
NumMessages int64 `index:"1" json:",omitempty"`
AdditionalPagesToFetch int64 `index:"2" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSDeleteThenInsertIgThreadInfo struct {
ThreadKey int64 `index:"0" json:",omitempty"`
IgThreadId string `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSMarkThreadRead struct {
LastReadWatermarkTimestampMs int64 `index:"0" json:",omitempty"`
ThreadKey int64 `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
func (ls *LSMarkThreadRead) GetThreadKey() int64 {
return ls.ThreadKey
}
type LSUpdateParentFolderReadWatermark struct {
ThreadKey int64 `index:"0" json:",omitempty"`
// ShouldUpdate bool `index:"1" json:",omitempty"` // condition ?
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateOrInsertThread struct {
LastActivityTimestampMs int64 `index:"0" json:",omitempty"`
LastReadWatermarkTimestampMs int64 `index:"1" json:",omitempty"`
Snippet string `index:"2" json:",omitempty"`
ThreadName string `index:"3" json:",omitempty"`
ThreadPictureUrl string `index:"4" json:",omitempty"`
NeedsAdminApprovalForNewParticipant bool `index:"5" json:",omitempty"`
AuthorityLevel int64 `index:"6" json:",omitempty"`
ThreadKey int64 `index:"7" json:",omitempty"`
MailboxType int64 `index:"8" json:",omitempty"`
ThreadType ThreadType `index:"9" json:",omitempty"`
FolderName string `index:"10" json:",omitempty"`
ThreadPictureUrlFallback string `index:"11" json:",omitempty"`
ThreadPictureUrlExpirationTimestampMs int64 `index:"12" json:",omitempty"`
RemoveWatermarkTimestampMs int64 `index:"13" json:",omitempty"`
MuteExpireTimeMs int64 `index:"14" json:",omitempty"`
MuteMentionExpireTimeMs int64 `index:"15" json:",omitempty"`
MuteCallsExpireTimeMs int64 `index:"16" json:",omitempty"`
GroupNotificationSettings int64 `index:"19" json:",omitempty"`
IsAdminSnippet bool `index:"20" json:",omitempty"`
SnippetSenderContactId int64 `index:"21" json:",omitempty"`
SnippetStringHash int64 `index:"24" json:",omitempty"`
SnippetStringArgument1 int64 `index:"25" json:",omitempty"`
SnippetAttribution int64 `index:"26" json:",omitempty"`
SnippetAttributionStringHash int64 `index:"27" json:",omitempty"`
DisappearingSettingTtl int64 `index:"28" json:",omitempty"`
DisappearingSettingUpdatedTs int64 `index:"29" json:",omitempty"`
DisappearingSettingUpdatedBy int64 `index:"30" json:",omitempty"`
OngoingCallState int64 `index:"32" json:",omitempty"`
CannotReplyReason int64 `index:"33" json:",omitempty"`
CustomEmoji int64 `index:"34" json:",omitempty"`
CustomEmojiImageUrl int64 `index:"35" json:",omitempty"`
OutgoingBubbleColor int64 `index:"36" json:",omitempty"`
ThemeFbid int64 `index:"37" json:",omitempty"`
ParentThreadKey int64 `index:"38" json:",omitempty"`
NullstateDescriptionText1 int64 `index:"39" json:",omitempty"`
NullstateDescriptionType1 int64 `index:"40" json:",omitempty"`
NullstateDescriptionText2 int64 `index:"41" json:",omitempty"`
NullstateDescriptionType2 int64 `index:"42" json:",omitempty"`
NullstateDescriptionText3 int64 `index:"43" json:",omitempty"`
NullstateDescriptionType3 int64 `index:"44" json:",omitempty"`
SnippetHasEmoji bool `index:"45" json:",omitempty"`
HasPersistentMenu bool `index:"46" json:",omitempty"`
DisableComposerInput bool `index:"47" json:",omitempty"`
CannotUnsendReason int64 `index:"48" json:",omitempty"`
ViewedPluginKey int64 `index:"49" json:",omitempty"`
ViewedPluginContext int64 `index:"50" json:",omitempty"`
ClientThreadKey int64 `index:"51" json:",omitempty"`
Capabilities int64 `index:"52" json:",omitempty"`
ShouldRoundThreadPicture int64 `index:"53" json:",omitempty"`
ProactiveWarningDismissTime int64 `index:"54" json:",omitempty"`
IsCustomThreadPicture bool `index:"55" json:",omitempty"`
OtidOfFirstMessage int64 `index:"56" json:",omitempty"`
NormalizedSearchTerms string `index:"57" json:",omitempty"`
AdditionalThreadContext string `index:"58" json:",omitempty"`
DisappearingThreadKey int64 `index:"59" json:",omitempty"`
IsDisappearingMode bool `index:"60" json:",omitempty"`
DisappearingModeInitiator int64 `index:"61" json:",omitempty"`
UnreadDisappearingMessageCount int64 `index:"62" json:",omitempty"`
LastMessageCtaId int64 `index:"64" json:",omitempty"`
LastMessageCtaType int64 `index:"65" json:",omitempty"`
LastMessageCtaTimestampMs int64 `index:"66" json:",omitempty"`
ConsistentThreadFbid int64 `index:"67" json:",omitempty"`
ThreadDescription string `index:"69" json:",omitempty"`
UnsendLimitMs int64 `index:"70" json:",omitempty"`
Capabilities2 int64 `index:"78" json:",omitempty"`
Capabilities3 int64 `index:"79" json:",omitempty"`
SyncGroup int64 `index:"82" json:",omitempty"`
ThreadInvitesEnabled int64 `index:"83" json:",omitempty"`
ThreadInviteLink string `index:"84" json:",omitempty"`
IsAllUnreadMessageMissedCallXma bool `index:"85" json:",omitempty"`
NumUnreadSubthreads int64 `index:"86" json:",omitempty"`
SubthreadCount int64 `index:"87" json:",omitempty"`
LastNonMissedCallXmaMessageTimestampMs int64 `index:"88" json:",omitempty"`
ThreadInvitesEnabledV2 int64 `index:"90" json:",omitempty"`
JoinRequestApprovalSetting int64 `index:"93" json:",omitempty"`
HasPendingInvitation int64 `index:"94" json:",omitempty"`
EventStartTimestampMs int64 `index:"95" json:",omitempty"`
EventEndTimestampMs int64 `index:"96" json:",omitempty"`
TakedownState int64 `index:"97" json:",omitempty"`
SecondaryParentThreadKey int64 `index:"98" json:",omitempty"`
IgFolder int64 `index:"99" json:",omitempty"`
InviterId int64 `index:"100" json:",omitempty"`
ThreadTags int64 `index:"101" json:",omitempty"`
IsReadReceiptsDisabled bool `index:"102" json:",omitempty"`
ReadReceiptsDisabledV2 bool `index:"103" json:",omitempty"`
ThreadStatus int64 `index:"104" json:",omitempty"`
ThreadSubtype int64 `index:"105" json:",omitempty"`
PauseThreadTimestamp int64 `index:"106" json:",omitempty"`
Capabilities4 int64 `index:"107" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
func (lsui *LSUpdateOrInsertThread) GetThreadKey() int64 {
return lsui.ThreadKey
}
func (lsui *LSUpdateOrInsertThread) GetThreadName() string {
return lsui.ThreadName
}
func (lsui *LSUpdateOrInsertThread) GetThreadPictureUrl() string {
return lsui.ThreadPictureUrl
}
func (lsui *LSUpdateOrInsertThread) GetThreadType() ThreadType {
return lsui.ThreadType
}
func (lsui *LSUpdateOrInsertThread) GetLastReadWatermarkTimestampMs() int64 {
return lsui.LastReadWatermarkTimestampMs
}
func (lsui *LSUpdateOrInsertThread) GetThreadDescription() string {
return lsui.ThreadDescription
}
func (lsui *LSUpdateOrInsertThread) GetFolderName() string {
return lsui.FolderName
}
type LSSetThreadCannotUnsendReason struct {
ThreadKey int64 `index:"0" json:",omitempty"`
CannotUnsendReason int64 `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSClearLocalThreadPictureUrl struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateInviterId struct {
ThreadKey int64 `index:"0" json:",omitempty"`
InviterId int64 `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSAddToMemberCount struct {
ThreadKey int64 `index:"0" json:",omitempty"`
IncrementCount int64 `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSMoveThreadToArchivedFolder struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSMoveThreadToE2EECutoverFolder struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
func (ls *LSMoveThreadToE2EECutoverFolder) GetThreadKey() int64 {
return ls.ThreadKey
}
type LSRemoveParticipantFromThread struct {
ThreadKey int64 `index:"0" json:",omitempty"`
ParticipantId int64 `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSDeleteRtcRoomOnThread struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateThreadTheme struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Unknown1 int64 `index:"1" json:",omitempty"`
Unknown2 int64 `index:"2" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSUpdateThreadApprovalMode struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Value bool `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSRemoveAllRequestsFromAdminApprovalQueue struct {
ThreadKey int64 `index:"0" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
type LSDeleteThread struct {
ThreadKey int64 `index:"0" json:",omitempty"`
UnknownBool1 bool `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}
func (ls *LSDeleteThread) GetThreadKey() int64 {
return ls.ThreadKey
}
type LSUpdateThreadMuteSetting struct {
ThreadKey int64 `index:"0" json:",omitempty"`
MuteExpireTimeMS int64 `index:"1" json:",omitempty"`
Unrecognized map[int]any `json:",omitempty"`
}