-
Notifications
You must be signed in to change notification settings - Fork 7
/
constructs.js
4417 lines (4413 loc) · 161 KB
/
constructs.js
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
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
function getrequest(tl_constructor,_flags,vector_type){
var request = null
var i = 0
switch (tl_constructor){
case 0xbc799737: {// boolFalse
request = {}
break
}
case 0x997275b5: {// boolTrue
request = {}
break
}
case 0x3fedd339: {// true
request = {}
break
}
case 0x1cb5c415: { //vector
request = {[i++]:{"0":"uint4"}}
for( i; i<=_flags; i++){
request[i] = Object.fromEntries([[i,vector_type]])
}
break
}
case 0xc4b9f9bb: {// error
request = {[i++]:{code:"int"},[i++]:{text:"string"}}
break
}
case 0x56730bcc: {// null
request = {}
break
}
case 0x7f3b18ea: {// inputPeerEmpty
request = {}
break
}
case 0x7da07ec9: {// inputPeerSelf
request = {}
break
}
case 0x179be863: {// inputPeerChat
request = {[i++]:{chat_id:"int"}}
break
}
case 0xb98886cf: {// inputUserEmpty
request = {}
break
}
case 0xf7c1b13f: {// inputUserSelf
request = {}
break
}
case 0xf392b7f4: {// inputPhoneContact
request = {[i++]:{client_id:"long"},[i++]:{phone:"string"},[i++]:{first_name:"string"},[i++]:{last_name:"string"}}
break
}
case 0xf52ff27f: {// inputFile
request = {[i++]:{id:"long"},[i++]:{parts:"int"},[i++]:{name:"string"},[i++]:{md5_checksum:"string"}}
break
}
case 0x9664f57f: {// inputMediaEmpty
request = {}
break
}
case 0x1e287d04: {// inputMediaUploadedPhoto
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
request[i++]=Object.fromEntries([["file","InputFile"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["stickers","Vector<InputDocument>"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["ttl_seconds","int"]])
break
}
case 0xb3ba0635: {// inputMediaPhoto
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
request[i++]=Object.fromEntries([["id","InputPhoto"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["ttl_seconds","int"]])
break
}
case 0xf9c44144: {// inputMediaGeoPoint
request = {[i++]:{geo_point:"InputGeoPoint"}}
break
}
case 0xf8ab7dfb: {// inputMediaContact
request = {[i++]:{phone_number:"string"},[i++]:{first_name:"string"},[i++]:{last_name:"string"},[i++]:{vcard:"string"}}
break
}
case 0x1ca48f57: {// inputChatPhotoEmpty
request = {}
break
}
case 0x927c55b4: {// inputChatUploadedPhoto
request = {[i++]:{file:"InputFile"}}
break
}
case 0x8953ad37: {// inputChatPhoto
request = {[i++]:{id:"InputPhoto"}}
break
}
case 0xe4c123d6: {// inputGeoPointEmpty
request = {}
break
}
case 0xf3b7acc9: {// inputGeoPoint
request = {[i++]:{lat:"double"},[i++]:{long:"double"}}
break
}
case 0x1cd7bf0d: {// inputPhotoEmpty
request = {}
break
}
case 0x3bb3b94a: {// inputPhoto
request = {[i++]:{id:"long"},[i++]:{access_hash:"long"},[i++]:{file_reference:"bytes"}}
break
}
case 0xdfdaabe1: {// inputFileLocation
request = {[i++]:{volume_id:"long"},[i++]:{local_id:"int"},[i++]:{secret:"long"},[i++]:{file_reference:"bytes"}}
break
}
case 0x9db1bc6d: {// peerUser
request = {[i++]:{user_id:"int"}}
break
}
case 0xbad0e5bb: {// peerChat
request = {[i++]:{chat_id:"int"}}
break
}
case 0xaa963b05: {// storage.fileUnknown
request = {}
break
}
case 0x40bc6f52: {// storage.filePartial
request = {}
break
}
case 0x7efe0e: {// storage.fileJpeg
request = {}
break
}
case 0xcae1aadf: {// storage.fileGif
request = {}
break
}
case 0xa4f63c0: {// storage.filePng
request = {}
break
}
case 0xae1e508d: {// storage.filePdf
request = {}
break
}
case 0x528a0677: {// storage.fileMp3
request = {}
break
}
case 0x4b09ebbc: {// storage.fileMov
request = {}
break
}
case 0xb3cea0e4: {// storage.fileMp4
request = {}
break
}
case 0x1081464c: {// storage.fileWebp
request = {}
break
}
case 0x200250ba: {// userEmpty
request = {[i++]:{id:"int"}}
break
}
case 0x4f11bae1: {// userProfilePhotoEmpty
request = {}
break
}
case 0xecd75d8c: {// userProfilePhoto
request = {[i++]:{photo_id:"long"},[i++]:{photo_small:"FileLocation"},[i++]:{photo_big:"FileLocation"},[i++]:{dc_id:"int"}}
break
}
case 0x9d05049: {// userStatusEmpty
request = {}
break
}
case 0xedb93949: {// userStatusOnline
request = {[i++]:{expires:"int"}}
break
}
case 0x8c703f: {// userStatusOffline
request = {[i++]:{was_online:"int"}}
break
}
case 0x9ba2d800: {// chatEmpty
request = {[i++]:{id:"int"}}
break
}
case 0x3bda1bde: {// chat
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["creator","true"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["kicked","true"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["left","true"]])
if(_flags & (1 << 5)) request[i++]=Object.fromEntries([["deactivated","true"]])
request[i++]=Object.fromEntries([["id","int"]])
request[i++]=Object.fromEntries([["title","string"]])
request[i++]=Object.fromEntries([["photo","ChatPhoto"]])
request[i++]=Object.fromEntries([["participants_count","int"]])
request[i++]=Object.fromEntries([["date","int"]])
request[i++]=Object.fromEntries([["version","int"]])
if(_flags & (1 << 6)) request[i++]=Object.fromEntries([["migrated_to","InputChannel"]])
if(_flags & (1 << 14)) request[i++]=Object.fromEntries([["admin_rights","ChatAdminRights"]])
if(_flags & (1 << 18)) request[i++]=Object.fromEntries([["default_banned_rights","ChatBannedRights"]])
break
}
case 0x7328bdb: {// chatForbidden
request = {[i++]:{id:"int"},[i++]:{title:"string"}}
break
}
case 0x1b7c9db3: {// chatFull
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 7)) request[i++]=Object.fromEntries([["can_set_username","true"]])
if(_flags & (1 << 8)) request[i++]=Object.fromEntries([["has_scheduled","true"]])
request[i++]=Object.fromEntries([["id","int"]])
request[i++]=Object.fromEntries([["about","string"]])
request[i++]=Object.fromEntries([["participants","ChatParticipants"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["chat_photo","Photo"]])
request[i++]=Object.fromEntries([["notify_settings","PeerNotifySettings"]])
request[i++]=Object.fromEntries([["exported_invite","ExportedChatInvite"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["bot_info","Vector<BotInfo>"]])
if(_flags & (1 << 6)) request[i++]=Object.fromEntries([["pinned_msg_id","int"]])
if(_flags & (1 << 11)) request[i++]=Object.fromEntries([["folder_id","int"]])
break
}
case 0xc8d7493e: {// chatParticipant
request = {[i++]:{user_id:"int"},[i++]:{inviter_id:"int"},[i++]:{date:"int"}}
break
}
case 0xfc900c2b: {// chatParticipantsForbidden
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
request[i++]=Object.fromEntries([["chat_id","int"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["self_participant","ChatParticipant"]])
break
}
case 0x3f460fed: {// chatParticipants
request = {[i++]:{chat_id:"int"},[i++]:{participants:"Vector<ChatParticipant>"},[i++]:{version:"int"}}
break
}
case 0x37c1011c: {// chatPhotoEmpty
request = {}
break
}
case 0x475cdbd5: {// chatPhoto
request = {[i++]:{photo_small:"FileLocation"},[i++]:{photo_big:"FileLocation"},[i++]:{dc_id:"int"}}
break
}
case 0x83e5de54: {// messageEmpty
request = {[i++]:{id:"int"}}
break
}
case 0x452c0e65: {// message
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["out","true"]])
if(_flags & (1 << 4)) request[i++]=Object.fromEntries([["mentioned","true"]])
if(_flags & (1 << 5)) request[i++]=Object.fromEntries([["media_unread","true"]])
if(_flags & (1 << 13)) request[i++]=Object.fromEntries([["silent","true"]])
if(_flags & (1 << 14)) request[i++]=Object.fromEntries([["post","true"]])
if(_flags & (1 << 18)) request[i++]=Object.fromEntries([["from_scheduled","true"]])
if(_flags & (1 << 19)) request[i++]=Object.fromEntries([["legacy","true"]])
if(_flags & (1 << 21)) request[i++]=Object.fromEntries([["edit_hide","true"]])
request[i++]=Object.fromEntries([["id","int"]])
if(_flags & (1 << 8)) request[i++]=Object.fromEntries([["from_id","int"]])
request[i++]=Object.fromEntries([["to_id","Peer"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["fwd_from","MessageFwdHeader"]])
if(_flags & (1 << 11)) request[i++]=Object.fromEntries([["via_bot_id","int"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["reply_to_msg_id","int"]])
request[i++]=Object.fromEntries([["date","int"]])
request[i++]=Object.fromEntries([["message","string"]])
if(_flags & (1 << 9)) request[i++]=Object.fromEntries([["media","MessageMedia"]])
if(_flags & (1 << 6)) request[i++]=Object.fromEntries([["reply_markup","ReplyMarkup"]])
if(_flags & (1 << 7)) request[i++]=Object.fromEntries([["entities","Vector<MessageEntity>"]])
if(_flags & (1 << 10)) request[i++]=Object.fromEntries([["views","int"]])
if(_flags & (1 << 15)) request[i++]=Object.fromEntries([["edit_date","int"]])
if(_flags & (1 << 16)) request[i++]=Object.fromEntries([["post_author","string"]])
if(_flags & (1 << 17)) request[i++]=Object.fromEntries([["grouped_id","long"]])
if(_flags & (1 << 22)) request[i++]=Object.fromEntries([["restriction_reason","Vector<RestrictionReason>"]])
break
}
case 0x9e19a1f6: {// messageService
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["out","true"]])
if(_flags & (1 << 4)) request[i++]=Object.fromEntries([["mentioned","true"]])
if(_flags & (1 << 5)) request[i++]=Object.fromEntries([["media_unread","true"]])
if(_flags & (1 << 13)) request[i++]=Object.fromEntries([["silent","true"]])
if(_flags & (1 << 14)) request[i++]=Object.fromEntries([["post","true"]])
if(_flags & (1 << 19)) request[i++]=Object.fromEntries([["legacy","true"]])
request[i++]=Object.fromEntries([["id","int"]])
if(_flags & (1 << 8)) request[i++]=Object.fromEntries([["from_id","int"]])
request[i++]=Object.fromEntries([["to_id","Peer"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["reply_to_msg_id","int"]])
request[i++]=Object.fromEntries([["date","int"]])
request[i++]=Object.fromEntries([["action","MessageAction"]])
break
}
case 0x3ded6320: {// messageMediaEmpty
request = {}
break
}
case 0x695150d7: {// messageMediaPhoto
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["photo","Photo"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["ttl_seconds","int"]])
break
}
case 0x56e0d474: {// messageMediaGeo
request = {[i++]:{geo:"GeoPoint"}}
break
}
case 0xcbf24940: {// messageMediaContact
request = {[i++]:{phone_number:"string"},[i++]:{first_name:"string"},[i++]:{last_name:"string"},[i++]:{vcard:"string"},[i++]:{user_id:"int"}}
break
}
case 0x9f84f49e: {// messageMediaUnsupported
request = {}
break
}
case 0xb6aef7b0: {// messageActionEmpty
request = {}
break
}
case 0xa6638b9a: {// messageActionChatCreate
request = {[i++]:{title:"string"},[i++]:{users:"Vector<int>"}}
break
}
case 0xb5a1ce5a: {// messageActionChatEditTitle
request = {[i++]:{title:"string"}}
break
}
case 0x7fcb13a8: {// messageActionChatEditPhoto
request = {[i++]:{photo:"Photo"}}
break
}
case 0x95e3fbef: {// messageActionChatDeletePhoto
request = {}
break
}
case 0x488a7337: {// messageActionChatAddUser
request = {[i++]:{users:"Vector<int>"}}
break
}
case 0xb2ae9b0c: {// messageActionChatDeleteUser
request = {[i++]:{user_id:"int"}}
break
}
case 0x2c171f72: {// dialog
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["pinned","true"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["unread_mark","true"]])
request[i++]=Object.fromEntries([["peer","Peer"]])
request[i++]=Object.fromEntries([["top_message","int"]])
request[i++]=Object.fromEntries([["read_inbox_max_id","int"]])
request[i++]=Object.fromEntries([["read_outbox_max_id","int"]])
request[i++]=Object.fromEntries([["unread_count","int"]])
request[i++]=Object.fromEntries([["unread_mentions_count","int"]])
request[i++]=Object.fromEntries([["notify_settings","PeerNotifySettings"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["pts","int"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["draft","DraftMessage"]])
if(_flags & (1 << 4)) request[i++]=Object.fromEntries([["folder_id","int"]])
break
}
case 0x2331b22d: {// photoEmpty
request = {[i++]:{id:"long"}}
break
}
case 0xd07504a5: {// photo
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["has_stickers","true"]])
request[i++]=Object.fromEntries([["id","long"]])
request[i++]=Object.fromEntries([["access_hash","long"]])
request[i++]=Object.fromEntries([["file_reference","bytes"]])
request[i++]=Object.fromEntries([["date","int"]])
request[i++]=Object.fromEntries([["sizes","Vector<PhotoSize>"]])
request[i++]=Object.fromEntries([["dc_id","int"]])
break
}
case 0xe17e23c: {// photoSizeEmpty
request = {[i++]:{type:"string"}}
break
}
case 0x77bfb61b: {// photoSize
request = {[i++]:{type:"string"},[i++]:{location:"FileLocation"},[i++]:{w:"int"},[i++]:{h:"int"},[i++]:{size:"int"}}
break
}
case 0xe9a734fa: {// photoCachedSize
request = {[i++]:{type:"string"},[i++]:{location:"FileLocation"},[i++]:{w:"int"},[i++]:{h:"int"},[i++]:{bytes:"bytes"}}
break
}
case 0x1117dd5f: {// geoPointEmpty
request = {}
break
}
case 0x296f104: {// geoPoint
request = {[i++]:{long:"double"},[i++]:{lat:"double"},[i++]:{access_hash:"long"}}
break
}
case 0x5e002502: {// auth.sentCode
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
request[i++]=Object.fromEntries([["type","auth.SentCodeType"]])
request[i++]=Object.fromEntries([["phone_code_hash","string"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["next_type","auth.CodeType"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["timeout","int"]])
break
}
case 0xcd050916: {// auth.authorization
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["tmp_sessions","int"]])
request[i++]=Object.fromEntries([["user","User"]])
break
}
case 0xdf969c2d: {// auth.exportedAuthorization
request = {[i++]:{id:"int"},[i++]:{bytes:"bytes"}}
break
}
case 0xb8bc5b0c: {// inputNotifyPeer
request = {[i++]:{peer:"InputPeer"}}
break
}
case 0x193b4417: {// inputNotifyUsers
request = {}
break
}
case 0x4a95e84e: {// inputNotifyChats
request = {}
break
}
case 0x9c3d198e: {// inputPeerNotifySettings
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["show_previews","Bool"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["silent","Bool"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["mute_until","int"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["sound","string"]])
break
}
case 0xaf509d20: {// peerNotifySettings
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["show_previews","Bool"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["silent","Bool"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["mute_until","int"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["sound","string"]])
break
}
case 0x818426cd: {// peerSettings
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["report_spam","true"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["add_contact","true"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["block_contact","true"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["share_contact","true"]])
if(_flags & (1 << 4)) request[i++]=Object.fromEntries([["need_contacts_exception","true"]])
if(_flags & (1 << 5)) request[i++]=Object.fromEntries([["report_geo","true"]])
break
}
case 0x58dbcab8: {// inputReportReasonSpam
request = {}
break
}
case 0x1e22c78d: {// inputReportReasonViolence
request = {}
break
}
case 0x2e59d922: {// inputReportReasonPornography
request = {}
break
}
case 0xadf44ee3: {// inputReportReasonChildAbuse
request = {}
break
}
case 0xe1746d0a: {// inputReportReasonOther
request = {[i++]:{text:"string"}}
break
}
case 0xedf17c12: {// userFull
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["blocked","true"]])
if(_flags & (1 << 4)) request[i++]=Object.fromEntries([["phone_calls_available","true"]])
if(_flags & (1 << 5)) request[i++]=Object.fromEntries([["phone_calls_private","true"]])
if(_flags & (1 << 7)) request[i++]=Object.fromEntries([["can_pin_message","true"]])
if(_flags & (1 << 12)) request[i++]=Object.fromEntries([["has_scheduled","true"]])
request[i++]=Object.fromEntries([["user","User"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["about","string"]])
request[i++]=Object.fromEntries([["settings","PeerSettings"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["profile_photo","Photo"]])
request[i++]=Object.fromEntries([["notify_settings","PeerNotifySettings"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["bot_info","BotInfo"]])
if(_flags & (1 << 6)) request[i++]=Object.fromEntries([["pinned_msg_id","int"]])
request[i++]=Object.fromEntries([["common_chats_count","int"]])
if(_flags & (1 << 11)) request[i++]=Object.fromEntries([["folder_id","int"]])
break
}
case 0xf911c994: {// contact
request = {[i++]:{user_id:"int"},[i++]:{mutual:"Bool"}}
break
}
case 0xd0028438: {// importedContact
request = {[i++]:{user_id:"int"},[i++]:{client_id:"long"}}
break
}
case 0x561bc879: {// contactBlocked
request = {[i++]:{user_id:"int"},[i++]:{date:"int"}}
break
}
case 0xd3680c61: {// contactStatus
request = {[i++]:{user_id:"int"},[i++]:{status:"UserStatus"}}
break
}
case 0xb74ba9d2: {// contacts.contactsNotModified
request = {}
break
}
case 0xeae87e42: {// contacts.contacts
request = {[i++]:{contacts:"Vector<Contact>"},[i++]:{saved_count:"int"},[i++]:{users:"Vector<User>"}}
break
}
case 0x77d01c3b: {// contacts.importedContacts
request = {[i++]:{imported:"Vector<ImportedContact>"},[i++]:{popular_invites:"Vector<PopularContact>"},[i++]:{retry_contacts:"Vector<long>"},[i++]:{users:"Vector<User>"}}
break
}
case 0x1c138d15: {// contacts.blocked
request = {[i++]:{blocked:"Vector<ContactBlocked>"},[i++]:{users:"Vector<User>"}}
break
}
case 0x900802a1: {// contacts.blockedSlice
request = {[i++]:{count:"int"},[i++]:{blocked:"Vector<ContactBlocked>"},[i++]:{users:"Vector<User>"}}
break
}
case 0x15ba6c40: {// messages.dialogs
request = {[i++]:{dialogs:"Vector<Dialog>"},[i++]:{messages:"Vector<Message>"},[i++]:{chats:"Vector<Chat>"},[i++]:{users:"Vector<User>"}}
break
}
case 0x71e094f3: {// messages.dialogsSlice
request = {[i++]:{count:"int"},[i++]:{dialogs:"Vector<Dialog>"},[i++]:{messages:"Vector<Message>"},[i++]:{chats:"Vector<Chat>"},[i++]:{users:"Vector<User>"}}
break
}
case 0x8c718e87: {// messages.messages
request = {[i++]:{messages:"Vector<Message>"},[i++]:{chats:"Vector<Chat>"},[i++]:{users:"Vector<User>"}}
break
}
case 0xc8edce1e: {// messages.messagesSlice
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["inexact","true"]])
request[i++]=Object.fromEntries([["count","int"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["next_rate","int"]])
request[i++]=Object.fromEntries([["messages","Vector<Message>"]])
request[i++]=Object.fromEntries([["chats","Vector<Chat>"]])
request[i++]=Object.fromEntries([["users","Vector<User>"]])
break
}
case 0x64ff9fd5: {// messages.chats
request = {[i++]:{chats:"Vector<Chat>"}}
break
}
case 0xe5d7d19c: {// messages.chatFull
request = {[i++]:{full_chat:"ChatFull"},[i++]:{chats:"Vector<Chat>"},[i++]:{users:"Vector<User>"}}
break
}
case 0xb45c69d1: {// messages.affectedHistory
request = {[i++]:{pts:"int"},[i++]:{pts_count:"int"},[i++]:{offset:"int"}}
break
}
case 0x57e2f66c: {// inputMessagesFilterEmpty
request = {}
break
}
case 0x9609a51c: {// inputMessagesFilterPhotos
request = {}
break
}
case 0x9fc00e65: {// inputMessagesFilterVideo
request = {}
break
}
case 0x56e9f0e4: {// inputMessagesFilterPhotoVideo
request = {}
break
}
case 0x9eddf188: {// inputMessagesFilterDocument
request = {}
break
}
case 0x7ef0dd87: {// inputMessagesFilterUrl
request = {}
break
}
case 0xffc86587: {// inputMessagesFilterGif
request = {}
break
}
case 0x1f2b0afd: {// updateNewMessage
request = {[i++]:{message:"Message"},[i++]:{pts:"int"},[i++]:{pts_count:"int"}}
break
}
case 0x4e90bfd6: {// updateMessageID
request = {[i++]:{id:"int"},[i++]:{random_id:"long"}}
break
}
case 0xa20db0e5: {// updateDeleteMessages
request = {[i++]:{messages:"Vector<int>"},[i++]:{pts:"int"},[i++]:{pts_count:"int"}}
break
}
case 0x5c486927: {// updateUserTyping
request = {[i++]:{user_id:"int"},[i++]:{action:"SendMessageAction"}}
break
}
case 0x9a65ea1f: {// updateChatUserTyping
request = {[i++]:{chat_id:"int"},[i++]:{user_id:"int"},[i++]:{action:"SendMessageAction"}}
break
}
case 0x7761198: {// updateChatParticipants
request = {[i++]:{participants:"ChatParticipants"}}
break
}
case 0x1bfbd823: {// updateUserStatus
request = {[i++]:{user_id:"int"},[i++]:{status:"UserStatus"}}
break
}
case 0xa7332b73: {// updateUserName
request = {[i++]:{user_id:"int"},[i++]:{first_name:"string"},[i++]:{last_name:"string"},[i++]:{username:"string"}}
break
}
case 0x95313b0c: {// updateUserPhoto
request = {[i++]:{user_id:"int"},[i++]:{date:"int"},[i++]:{photo:"UserProfilePhoto"},[i++]:{previous:"Bool"}}
break
}
case 0xa56c2a3e: {// updates.state
request = {[i++]:{pts:"int"},[i++]:{qts:"int"},[i++]:{date:"int"},[i++]:{seq:"int"},[i++]:{unread_count:"int"}}
break
}
case 0x5d75a138: {// updates.differenceEmpty
request = {[i++]:{date:"int"},[i++]:{seq:"int"}}
break
}
case 0xf49ca0: {// updates.difference
request = {[i++]:{new_messages:"Vector<Message>"},[i++]:{new_encrypted_messages:"Vector<EncryptedMessage>"},[i++]:{other_updates:"Vector<Update>"},[i++]:{chats:"Vector<Chat>"},[i++]:{users:"Vector<User>"},[i++]:{state:"updates.State"}}
break
}
case 0xa8fb1981: {// updates.differenceSlice
request = {[i++]:{new_messages:"Vector<Message>"},[i++]:{new_encrypted_messages:"Vector<EncryptedMessage>"},[i++]:{other_updates:"Vector<Update>"},[i++]:{chats:"Vector<Chat>"},[i++]:{users:"Vector<User>"},[i++]:{intermediate_state:"updates.State"}}
break
}
case 0xe317af7e: {// updatesTooLong
request = {}
break
}
case 0x914fbf11: {// updateShortMessage
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["out","true"]])
if(_flags & (1 << 4)) request[i++]=Object.fromEntries([["mentioned","true"]])
if(_flags & (1 << 5)) request[i++]=Object.fromEntries([["media_unread","true"]])
if(_flags & (1 << 13)) request[i++]=Object.fromEntries([["silent","true"]])
request[i++]=Object.fromEntries([["id","int"]])
request[i++]=Object.fromEntries([["user_id","int"]])
request[i++]=Object.fromEntries([["message","string"]])
request[i++]=Object.fromEntries([["pts","int"]])
request[i++]=Object.fromEntries([["pts_count","int"]])
request[i++]=Object.fromEntries([["date","int"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["fwd_from","MessageFwdHeader"]])
if(_flags & (1 << 11)) request[i++]=Object.fromEntries([["via_bot_id","int"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["reply_to_msg_id","int"]])
if(_flags & (1 << 7)) request[i++]=Object.fromEntries([["entities","Vector<MessageEntity>"]])
break
}
case 0x16812688: {// updateShortChatMessage
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["out","true"]])
if(_flags & (1 << 4)) request[i++]=Object.fromEntries([["mentioned","true"]])
if(_flags & (1 << 5)) request[i++]=Object.fromEntries([["media_unread","true"]])
if(_flags & (1 << 13)) request[i++]=Object.fromEntries([["silent","true"]])
request[i++]=Object.fromEntries([["id","int"]])
request[i++]=Object.fromEntries([["from_id","int"]])
request[i++]=Object.fromEntries([["chat_id","int"]])
request[i++]=Object.fromEntries([["message","string"]])
request[i++]=Object.fromEntries([["pts","int"]])
request[i++]=Object.fromEntries([["pts_count","int"]])
request[i++]=Object.fromEntries([["date","int"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["fwd_from","MessageFwdHeader"]])
if(_flags & (1 << 11)) request[i++]=Object.fromEntries([["via_bot_id","int"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["reply_to_msg_id","int"]])
if(_flags & (1 << 7)) request[i++]=Object.fromEntries([["entities","Vector<MessageEntity>"]])
break
}
case 0x78d4dec1: {// updateShort
request = {[i++]:{update:"Update"},[i++]:{date:"int"}}
break
}
case 0x725b04c3: {// updatesCombined
request = {[i++]:{updates:"Vector<Update>"},[i++]:{users:"Vector<User>"},[i++]:{chats:"Vector<Chat>"},[i++]:{date:"int"},[i++]:{seq_start:"int"},[i++]:{seq:"int"}}
break
}
case 0x74ae4240: {// updates
request = {[i++]:{updates:"Vector<Update>"},[i++]:{users:"Vector<User>"},[i++]:{chats:"Vector<Chat>"},[i++]:{date:"int"},[i++]:{seq:"int"}}
break
}
case 0x8dca6aa5: {// photos.photos
request = {[i++]:{photos:"Vector<Photo>"},[i++]:{users:"Vector<User>"}}
break
}
case 0x15051f54: {// photos.photosSlice
request = {[i++]:{count:"int"},[i++]:{photos:"Vector<Photo>"},[i++]:{users:"Vector<User>"}}
break
}
case 0x20212ca8: {// photos.photo
request = {[i++]:{photo:"Photo"},[i++]:{users:"Vector<User>"}}
break
}
case 0x96a18d5: {// upload.file
request = {[i++]:{type:"storage.FileType"},[i++]:{mtime:"int"},[i++]:{bytes:"bytes"}}
break
}
case 0x18b7a10d: {// dcOption
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["ipv6","true"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["media_only","true"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["tcpo_only","true"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["cdn","true"]])
if(_flags & (1 << 4)) request[i++]=Object.fromEntries([["static","true"]])
request[i++]=Object.fromEntries([["id","int"]])
request[i++]=Object.fromEntries([["ip_address","string"]])
request[i++]=Object.fromEntries([["port","int"]])
if(_flags & (1 << 10)) request[i++]=Object.fromEntries([["secret","bytes"]])
break
}
case 0x330b4067: {// config
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["phonecalls_enabled","true"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["default_p2p_contacts","true"]])
if(_flags & (1 << 4)) request[i++]=Object.fromEntries([["preload_featured_stickers","true"]])
if(_flags & (1 << 5)) request[i++]=Object.fromEntries([["ignore_phone_entities","true"]])
if(_flags & (1 << 6)) request[i++]=Object.fromEntries([["revoke_pm_inbox","true"]])
if(_flags & (1 << 8)) request[i++]=Object.fromEntries([["blocked_mode","true"]])
if(_flags & (1 << 13)) request[i++]=Object.fromEntries([["pfs_enabled","true"]])
request[i++]=Object.fromEntries([["date","int"]])
request[i++]=Object.fromEntries([["expires","int"]])
request[i++]=Object.fromEntries([["test_mode","Bool"]])
request[i++]=Object.fromEntries([["this_dc","int"]])
request[i++]=Object.fromEntries([["dc_options","Vector<DcOption>"]])
request[i++]=Object.fromEntries([["dc_txt_domain_name","string"]])
request[i++]=Object.fromEntries([["chat_size_max","int"]])
request[i++]=Object.fromEntries([["megagroup_size_max","int"]])
request[i++]=Object.fromEntries([["forwarded_count_max","int"]])
request[i++]=Object.fromEntries([["online_update_period_ms","int"]])
request[i++]=Object.fromEntries([["offline_blur_timeout_ms","int"]])
request[i++]=Object.fromEntries([["offline_idle_timeout_ms","int"]])
request[i++]=Object.fromEntries([["online_cloud_timeout_ms","int"]])
request[i++]=Object.fromEntries([["notify_cloud_delay_ms","int"]])
request[i++]=Object.fromEntries([["notify_default_delay_ms","int"]])
request[i++]=Object.fromEntries([["push_chat_period_ms","int"]])
request[i++]=Object.fromEntries([["push_chat_limit","int"]])
request[i++]=Object.fromEntries([["saved_gifs_limit","int"]])
request[i++]=Object.fromEntries([["edit_time_limit","int"]])
request[i++]=Object.fromEntries([["revoke_time_limit","int"]])
request[i++]=Object.fromEntries([["revoke_pm_time_limit","int"]])
request[i++]=Object.fromEntries([["rating_e_decay","int"]])
request[i++]=Object.fromEntries([["stickers_recent_limit","int"]])
request[i++]=Object.fromEntries([["stickers_faved_limit","int"]])
request[i++]=Object.fromEntries([["channels_read_media_period","int"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["tmp_sessions","int"]])
request[i++]=Object.fromEntries([["pinned_dialogs_count_max","int"]])
request[i++]=Object.fromEntries([["pinned_infolder_count_max","int"]])
request[i++]=Object.fromEntries([["call_receive_timeout_ms","int"]])
request[i++]=Object.fromEntries([["call_ring_timeout_ms","int"]])
request[i++]=Object.fromEntries([["call_connect_timeout_ms","int"]])
request[i++]=Object.fromEntries([["call_packet_timeout_ms","int"]])
request[i++]=Object.fromEntries([["me_url_prefix","string"]])
if(_flags & (1 << 7)) request[i++]=Object.fromEntries([["autoupdate_url_prefix","string"]])
if(_flags & (1 << 9)) request[i++]=Object.fromEntries([["gif_search_username","string"]])
if(_flags & (1 << 10)) request[i++]=Object.fromEntries([["venue_search_username","string"]])
if(_flags & (1 << 11)) request[i++]=Object.fromEntries([["img_search_username","string"]])
if(_flags & (1 << 12)) request[i++]=Object.fromEntries([["static_maps_provider","string"]])
request[i++]=Object.fromEntries([["caption_length_max","int"]])
request[i++]=Object.fromEntries([["message_length_max","int"]])
request[i++]=Object.fromEntries([["webfile_dc_id","int"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["suggested_lang_code","string"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["lang_pack_version","int"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["base_lang_pack_version","int"]])
break
}
case 0x8e1a1775: {// nearestDc
request = {[i++]:{country:"string"},[i++]:{this_dc:"int"},[i++]:{nearest_dc:"int"}}
break
}
case 0x1da7158f: {// help.appUpdate
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["can_not_skip","true"]])
request[i++]=Object.fromEntries([["id","int"]])
request[i++]=Object.fromEntries([["version","string"]])
request[i++]=Object.fromEntries([["text","string"]])
request[i++]=Object.fromEntries([["entities","Vector<MessageEntity>"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["document","Document"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["url","string"]])
break
}
case 0xc45a6536: {// help.noAppUpdate
request = {}
break
}
case 0x18cb9f78: {// help.inviteText
request = {[i++]:{message:"string"}}
break
}
case 0x12bcbd9a: {// updateNewEncryptedMessage
request = {[i++]:{message:"EncryptedMessage"},[i++]:{qts:"int"}}
break
}
case 0x1710f156: {// updateEncryptedChatTyping
request = {[i++]:{chat_id:"int"}}
break
}
case 0xb4a2e88d: {// updateEncryption
request = {[i++]:{chat:"EncryptedChat"},[i++]:{date:"int"}}
break
}
case 0x38fe25b7: {// updateEncryptedMessagesRead
request = {[i++]:{chat_id:"int"},[i++]:{max_date:"int"},[i++]:{date:"int"}}
break
}
case 0xab7ec0a0: {// encryptedChatEmpty
request = {[i++]:{id:"int"}}
break
}
case 0x3bf703dc: {// encryptedChatWaiting
request = {[i++]:{id:"int"},[i++]:{access_hash:"long"},[i++]:{date:"int"},[i++]:{admin_id:"int"},[i++]:{participant_id:"int"}}
break
}
case 0xc878527e: {// encryptedChatRequested
request = {[i++]:{id:"int"},[i++]:{access_hash:"long"},[i++]:{date:"int"},[i++]:{admin_id:"int"},[i++]:{participant_id:"int"},[i++]:{g_a:"bytes"}}
break
}
case 0xfa56ce36: {// encryptedChat
request = {[i++]:{id:"int"},[i++]:{access_hash:"long"},[i++]:{date:"int"},[i++]:{admin_id:"int"},[i++]:{participant_id:"int"},[i++]:{g_a_or_b:"bytes"},[i++]:{key_fingerprint:"long"}}
break
}
case 0x13d6dd27: {// encryptedChatDiscarded
request = {[i++]:{id:"int"}}
break
}
case 0xf141b5e1: {// inputEncryptedChat
request = {[i++]:{chat_id:"int"},[i++]:{access_hash:"long"}}
break
}
case 0xc21f497e: {// encryptedFileEmpty
request = {}
break
}
case 0x4a70994c: {// encryptedFile
request = {[i++]:{id:"long"},[i++]:{access_hash:"long"},[i++]:{size:"int"},[i++]:{dc_id:"int"},[i++]:{key_fingerprint:"int"}}
break
}
case 0x1837c364: {// inputEncryptedFileEmpty
request = {}
break
}
case 0x64bd0306: {// inputEncryptedFileUploaded
request = {[i++]:{id:"long"},[i++]:{parts:"int"},[i++]:{md5_checksum:"string"},[i++]:{key_fingerprint:"int"}}
break
}
case 0x5a17b5e5: {// inputEncryptedFile
request = {[i++]:{id:"long"},[i++]:{access_hash:"long"}}
break
}
case 0xf5235d55: {// inputEncryptedFileLocation
request = {[i++]:{id:"long"},[i++]:{access_hash:"long"}}
break
}
case 0xed18c118: {// encryptedMessage
request = {[i++]:{random_id:"long"},[i++]:{chat_id:"int"},[i++]:{date:"int"},[i++]:{bytes:"bytes"},[i++]:{file:"EncryptedFile"}}
break
}
case 0x23734b06: {// encryptedMessageService
request = {[i++]:{random_id:"long"},[i++]:{chat_id:"int"},[i++]:{date:"int"},[i++]:{bytes:"bytes"}}
break
}
case 0xc0e24635: {// messages.dhConfigNotModified
request = {[i++]:{random:"bytes"}}
break
}
case 0x2c221edd: {// messages.dhConfig
request = {[i++]:{g:"int"},[i++]:{p:"bytes"},[i++]:{version:"int"},[i++]:{random:"bytes"}}
break
}
case 0x560f8935: {// messages.sentEncryptedMessage
request = {[i++]:{date:"int"}}
break
}
case 0x9493ff32: {// messages.sentEncryptedFile
request = {[i++]:{date:"int"},[i++]:{file:"EncryptedFile"}}
break
}
case 0xfa4f0bb5: {// inputFileBig
request = {[i++]:{id:"long"},[i++]:{parts:"int"},[i++]:{name:"string"}}
break
}
case 0x2dc173c8: {// inputEncryptedFileBigUploaded
request = {[i++]:{id:"long"},[i++]:{parts:"int"},[i++]:{key_fingerprint:"int"}}
break
}
case 0xea4b0e5c: {// updateChatParticipantAdd
request = {[i++]:{chat_id:"int"},[i++]:{user_id:"int"},[i++]:{inviter_id:"int"},[i++]:{date:"int"},[i++]:{version:"int"}}
break
}
case 0x6e5f8c22: {// updateChatParticipantDelete
request = {[i++]:{chat_id:"int"},[i++]:{user_id:"int"},[i++]:{version:"int"}}
break
}
case 0x8e5e9873: {// updateDcOptions
request = {[i++]:{dc_options:"Vector<DcOption>"}}
break
}
case 0x5b38c6c1: {// inputMediaUploadedDocument
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 3)) request[i++]=Object.fromEntries([["nosound_video","true"]])
request[i++]=Object.fromEntries([["file","InputFile"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["thumb","InputFile"]])
request[i++]=Object.fromEntries([["mime_type","string"]])
request[i++]=Object.fromEntries([["attributes","Vector<DocumentAttribute>"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["stickers","Vector<InputDocument>"]])
if(_flags & (1 << 1)) request[i++]=Object.fromEntries([["ttl_seconds","int"]])
break
}
case 0x23ab23d2: {// inputMediaDocument
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
request[i++]=Object.fromEntries([["id","InputDocument"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["ttl_seconds","int"]])
break
}
case 0x9cb070d7: {// messageMediaDocument
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["document","Document"]])
if(_flags & (1 << 2)) request[i++]=Object.fromEntries([["ttl_seconds","int"]])
break
}
case 0x72f0eaae: {// inputDocumentEmpty
request = {}
break
}
case 0x1abfb575: {// inputDocument
request = {[i++]:{id:"long"},[i++]:{access_hash:"long"},[i++]:{file_reference:"bytes"}}
break
}
case 0xbad07584: {// inputDocumentFileLocation
request = {[i++]:{id:"long"},[i++]:{access_hash:"long"},[i++]:{file_reference:"bytes"},[i++]:{thumb_size:"string"}}
break
}
case 0x36f8c871: {// documentEmpty
request = {[i++]:{id:"long"}}
break
}
case 0x9ba29cc1: {// document
request = {}
request[i++]=Object.fromEntries([["flags","#"]])
request[i++]=Object.fromEntries([["id","long"]])
request[i++]=Object.fromEntries([["access_hash","long"]])
request[i++]=Object.fromEntries([["file_reference","bytes"]])
request[i++]=Object.fromEntries([["date","int"]])
request[i++]=Object.fromEntries([["mime_type","string"]])
request[i++]=Object.fromEntries([["size","int"]])
if(_flags & (1 << 0)) request[i++]=Object.fromEntries([["thumbs","Vector<PhotoSize>"]])
request[i++]=Object.fromEntries([["dc_id","int"]])
request[i++]=Object.fromEntries([["attributes","Vector<DocumentAttribute>"]])
break
}
case 0x17c6b5f6: {// help.support
request = {[i++]:{phone_number:"string"},[i++]:{user:"User"}}
break
}
case 0x9fd40bd8: {// notifyPeer
request = {[i++]:{peer:"Peer"}}
break
}
case 0xb4c83b4c: {// notifyUsers
request = {}
break