-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathtypes.tl.proto
More file actions
6620 lines (5793 loc) · 155 KB
/
types.tl.proto
File metadata and controls
6620 lines (5793 loc) · 155 KB
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
syntax = "proto3";
package mtproto;
import "google/protobuf/any.proto";
// Types
message TypeBool {
oneof Value {
PredBoolFalse BoolFalse = 1;
PredBoolTrue BoolTrue = 2;
}
}
message TypeError {
PredError Value = 1;
}
message TypeNull {
PredNull Value = 1;
}
message TypeInputPeer {
oneof Value {
PredInputPeerEmpty InputPeerEmpty = 1;
PredInputPeerSelf InputPeerSelf = 2;
PredInputPeerChat InputPeerChat = 3;
PredInputPeerUser InputPeerUser = 4;
PredInputPeerChannel InputPeerChannel = 5;
}
}
message TypeInputUser {
oneof Value {
PredInputUserEmpty InputUserEmpty = 1;
PredInputUserSelf InputUserSelf = 2;
PredInputUser InputUser = 3;
}
}
message TypeInputContact {
PredInputPhoneContact Value = 1;
}
message TypeInputFile {
oneof Value {
PredInputFile InputFile = 1;
PredInputFileBig InputFileBig = 2;
}
}
message TypeInputMedia {
oneof Value {
PredInputMediaEmpty InputMediaEmpty = 1;
PredInputMediaUploadedPhoto InputMediaUploadedPhoto = 2;
PredInputMediaPhoto InputMediaPhoto = 3;
PredInputMediaGeoPoint InputMediaGeoPoint = 4;
PredInputMediaContact InputMediaContact = 5;
PredInputMediaUploadedDocument InputMediaUploadedDocument = 6;
PredInputMediaDocument InputMediaDocument = 7;
PredInputMediaVenue InputMediaVenue = 8;
PredInputMediaGifExternal InputMediaGifExternal = 9;
PredInputMediaPhotoExternal InputMediaPhotoExternal = 10;
PredInputMediaDocumentExternal InputMediaDocumentExternal = 11;
PredInputMediaGame InputMediaGame = 12;
PredInputMediaInvoice InputMediaInvoice = 13;
}
}
message TypeInputChatPhoto {
oneof Value {
PredInputChatPhotoEmpty InputChatPhotoEmpty = 1;
PredInputChatUploadedPhoto InputChatUploadedPhoto = 2;
PredInputChatPhoto InputChatPhoto = 3;
}
}
message TypeInputGeoPoint {
oneof Value {
PredInputGeoPointEmpty InputGeoPointEmpty = 1;
PredInputGeoPoint InputGeoPoint = 2;
}
}
message TypeInputPhoto {
oneof Value {
PredInputPhotoEmpty InputPhotoEmpty = 1;
PredInputPhoto InputPhoto = 2;
}
}
message TypeInputFileLocation {
oneof Value {
PredInputFileLocation InputFileLocation = 1;
PredInputEncryptedFileLocation InputEncryptedFileLocation = 2;
PredInputDocumentFileLocation InputDocumentFileLocation = 3;
}
}
message TypeInputAppEvent {
PredInputAppEvent Value = 1;
}
message TypePeer {
oneof Value {
PredPeerUser PeerUser = 1;
PredPeerChat PeerChat = 2;
PredPeerChannel PeerChannel = 3;
}
}
message TypeStorageFileType {
oneof Value {
PredStorageFileUnknown StorageFileUnknown = 1;
PredStorageFileJpeg StorageFileJpeg = 2;
PredStorageFileGif StorageFileGif = 3;
PredStorageFilePng StorageFilePng = 4;
PredStorageFileMp3 StorageFileMp3 = 5;
PredStorageFileMov StorageFileMov = 6;
PredStorageFilePartial StorageFilePartial = 7;
PredStorageFileMp4 StorageFileMp4 = 8;
PredStorageFileWebp StorageFileWebp = 9;
PredStorageFilePdf StorageFilePdf = 10;
}
}
message TypeFileLocation {
oneof Value {
PredFileLocationUnavailable FileLocationUnavailable = 1;
PredFileLocation FileLocation = 2;
}
}
message TypeUser {
oneof Value {
PredUserEmpty UserEmpty = 1;
PredUser User = 2;
}
}
message TypeUserProfilePhoto {
oneof Value {
PredUserProfilePhotoEmpty UserProfilePhotoEmpty = 1;
PredUserProfilePhoto UserProfilePhoto = 2;
}
}
message TypeUserStatus {
oneof Value {
PredUserStatusEmpty UserStatusEmpty = 1;
PredUserStatusOnline UserStatusOnline = 2;
PredUserStatusOffline UserStatusOffline = 3;
PredUserStatusRecently UserStatusRecently = 4;
PredUserStatusLastWeek UserStatusLastWeek = 5;
PredUserStatusLastMonth UserStatusLastMonth = 6;
}
}
message TypeChat {
oneof Value {
PredChatEmpty ChatEmpty = 1;
PredChat Chat = 2;
PredChatForbidden ChatForbidden = 3;
PredChannel Channel = 4;
PredChannelForbidden ChannelForbidden = 5;
}
}
message TypeChatFull {
oneof Value {
PredChatFull ChatFull = 1;
PredChannelFull ChannelFull = 2;
}
}
message TypeChatParticipant {
oneof Value {
PredChatParticipant ChatParticipant = 1;
PredChatParticipantCreator ChatParticipantCreator = 2;
PredChatParticipantAdmin ChatParticipantAdmin = 3;
}
}
message TypeChatParticipants {
oneof Value {
PredChatParticipantsForbidden ChatParticipantsForbidden = 1;
PredChatParticipants ChatParticipants = 2;
}
}
message TypeChatPhoto {
oneof Value {
PredChatPhotoEmpty ChatPhotoEmpty = 1;
PredChatPhoto ChatPhoto = 2;
}
}
message TypeMessage {
oneof Value {
PredMessageEmpty MessageEmpty = 1;
PredMessage Message = 2;
PredMessageService MessageService = 3;
}
}
message TypeMessageMedia {
oneof Value {
PredMessageMediaEmpty MessageMediaEmpty = 1;
PredMessageMediaPhoto MessageMediaPhoto = 2;
PredMessageMediaGeo MessageMediaGeo = 3;
PredMessageMediaContact MessageMediaContact = 4;
PredMessageMediaUnsupported MessageMediaUnsupported = 5;
PredMessageMediaDocument MessageMediaDocument = 6;
PredMessageMediaWebPage MessageMediaWebPage = 7;
PredMessageMediaVenue MessageMediaVenue = 8;
PredMessageMediaGame MessageMediaGame = 9;
PredMessageMediaInvoice MessageMediaInvoice = 10;
}
}
message TypeMessageAction {
oneof Value {
PredMessageActionEmpty MessageActionEmpty = 1;
PredMessageActionChatCreate MessageActionChatCreate = 2;
PredMessageActionChatEditTitle MessageActionChatEditTitle = 3;
PredMessageActionChatEditPhoto MessageActionChatEditPhoto = 4;
PredMessageActionChatDeletePhoto MessageActionChatDeletePhoto = 5;
PredMessageActionChatAddUser MessageActionChatAddUser = 6;
PredMessageActionChatDeleteUser MessageActionChatDeleteUser = 7;
PredMessageActionChatJoinedByLink MessageActionChatJoinedByLink = 8;
PredMessageActionChannelCreate MessageActionChannelCreate = 9;
PredMessageActionChatMigrateTo MessageActionChatMigrateTo = 10;
PredMessageActionChannelMigrateFrom MessageActionChannelMigrateFrom = 11;
PredMessageActionPinMessage MessageActionPinMessage = 12;
PredMessageActionHistoryClear MessageActionHistoryClear = 13;
PredMessageActionGameScore MessageActionGameScore = 14;
PredMessageActionPhoneCall MessageActionPhoneCall = 15;
PredMessageActionPaymentSentMe MessageActionPaymentSentMe = 16;
PredMessageActionPaymentSent MessageActionPaymentSent = 17;
PredMessageActionScreenshotTaken MessageActionScreenshotTaken = 18;
}
}
message TypeDialog {
PredDialog Value = 1;
}
message TypePhoto {
oneof Value {
PredPhotoEmpty PhotoEmpty = 1;
PredPhoto Photo = 2;
}
}
message TypePhotoSize {
oneof Value {
PredPhotoSizeEmpty PhotoSizeEmpty = 1;
PredPhotoSize PhotoSize = 2;
PredPhotoCachedSize PhotoCachedSize = 3;
}
}
message TypeGeoPoint {
oneof Value {
PredGeoPointEmpty GeoPointEmpty = 1;
PredGeoPoint GeoPoint = 2;
}
}
message TypeAuthCheckedPhone {
PredAuthCheckedPhone Value = 1;
}
message TypeAuthSentCode {
PredAuthSentCode Value = 1;
}
message TypeAuthAuthorization {
PredAuthAuthorization Value = 1;
}
message TypeAuthExportedAuthorization {
PredAuthExportedAuthorization Value = 1;
}
message TypeInputNotifyPeer {
oneof Value {
PredInputNotifyPeer InputNotifyPeer = 1;
PredInputNotifyUsers InputNotifyUsers = 2;
PredInputNotifyChats InputNotifyChats = 3;
PredInputNotifyAll InputNotifyAll = 4;
}
}
message TypeInputPeerNotifySettings {
PredInputPeerNotifySettings Value = 1;
}
message TypePeerNotifyEvents {
oneof Value {
PredPeerNotifyEventsEmpty PeerNotifyEventsEmpty = 1;
PredPeerNotifyEventsAll PeerNotifyEventsAll = 2;
}
}
message TypePeerNotifySettings {
oneof Value {
PredPeerNotifySettingsEmpty PeerNotifySettingsEmpty = 1;
PredPeerNotifySettings PeerNotifySettings = 2;
}
}
message TypeWallPaper {
oneof Value {
PredWallPaper WallPaper = 1;
PredWallPaperSolid WallPaperSolid = 2;
}
}
message TypeUserFull {
PredUserFull Value = 1;
}
message TypeContact {
PredContact Value = 1;
}
message TypeImportedContact {
PredImportedContact Value = 1;
}
message TypeContactBlocked {
PredContactBlocked Value = 1;
}
message TypeContactStatus {
PredContactStatus Value = 1;
}
message TypeContactsLink {
PredContactsLink Value = 1;
}
message TypeContactsContacts {
oneof Value {
PredContactsContacts ContactsContacts = 1;
PredContactsContactsNotModified ContactsContactsNotModified = 2;
}
}
message TypeContactsImportedContacts {
PredContactsImportedContacts Value = 1;
}
message TypeContactsBlocked {
oneof Value {
PredContactsBlocked ContactsBlocked = 1;
PredContactsBlockedSlice ContactsBlockedSlice = 2;
}
}
message TypeContactsFound {
PredContactsFound Value = 1;
}
message TypeMessagesDialogs {
oneof Value {
PredMessagesDialogs MessagesDialogs = 1;
PredMessagesDialogsSlice MessagesDialogsSlice = 2;
}
}
message TypeMessagesMessages {
oneof Value {
PredMessagesMessages MessagesMessages = 1;
PredMessagesMessagesSlice MessagesMessagesSlice = 2;
PredMessagesChannelMessages MessagesChannelMessages = 3;
}
}
message TypeMessagesChats {
oneof Value {
PredMessagesChats MessagesChats = 1;
PredMessagesChatsSlice MessagesChatsSlice = 2;
}
}
message TypeMessagesChatFull {
PredMessagesChatFull Value = 1;
}
message TypeMessagesAffectedHistory {
PredMessagesAffectedHistory Value = 1;
}
message TypeMessagesFilter {
oneof Value {
PredInputMessagesFilterEmpty InputMessagesFilterEmpty = 1;
PredInputMessagesFilterPhotos InputMessagesFilterPhotos = 2;
PredInputMessagesFilterVideo InputMessagesFilterVideo = 3;
PredInputMessagesFilterPhotoVideo InputMessagesFilterPhotoVideo = 4;
PredInputMessagesFilterDocument InputMessagesFilterDocument = 5;
PredInputMessagesFilterPhotoVideoDocuments InputMessagesFilterPhotoVideoDocuments = 6;
PredInputMessagesFilterUrl InputMessagesFilterUrl = 7;
PredInputMessagesFilterGif InputMessagesFilterGif = 8;
PredInputMessagesFilterVoice InputMessagesFilterVoice = 9;
PredInputMessagesFilterMusic InputMessagesFilterMusic = 10;
PredInputMessagesFilterChatPhotos InputMessagesFilterChatPhotos = 11;
PredInputMessagesFilterPhoneCalls InputMessagesFilterPhoneCalls = 12;
PredInputMessagesFilterRoundVoice InputMessagesFilterRoundVoice = 13;
PredInputMessagesFilterRoundVideo InputMessagesFilterRoundVideo = 14;
PredInputMessagesFilterMyMentions InputMessagesFilterMyMentions = 15;
PredInputMessagesFilterMyMentionsUnread InputMessagesFilterMyMentionsUnread = 16;
}
}
message TypeUpdate {
oneof Value {
PredUpdateNewMessage UpdateNewMessage = 1;
PredUpdateMessageID UpdateMessageID = 2;
PredUpdateDeleteMessages UpdateDeleteMessages = 3;
PredUpdateUserTyping UpdateUserTyping = 4;
PredUpdateChatUserTyping UpdateChatUserTyping = 5;
PredUpdateChatParticipants UpdateChatParticipants = 6;
PredUpdateUserStatus UpdateUserStatus = 7;
PredUpdateUserName UpdateUserName = 8;
PredUpdateUserPhoto UpdateUserPhoto = 9;
PredUpdateContactRegistered UpdateContactRegistered = 10;
PredUpdateContactLink UpdateContactLink = 11;
PredUpdateNewEncryptedMessage UpdateNewEncryptedMessage = 12;
PredUpdateEncryptedChatTyping UpdateEncryptedChatTyping = 13;
PredUpdateEncryption UpdateEncryption = 14;
PredUpdateEncryptedMessagesRead UpdateEncryptedMessagesRead = 15;
PredUpdateChatParticipantAdd UpdateChatParticipantAdd = 16;
PredUpdateChatParticipantDelete UpdateChatParticipantDelete = 17;
PredUpdateDcOptions UpdateDcOptions = 18;
PredUpdateUserBlocked UpdateUserBlocked = 19;
PredUpdateNotifySettings UpdateNotifySettings = 20;
PredUpdateServiceNotification UpdateServiceNotification = 21;
PredUpdatePrivacy UpdatePrivacy = 22;
PredUpdateUserPhone UpdateUserPhone = 23;
PredUpdateReadHistoryInbox UpdateReadHistoryInbox = 24;
PredUpdateReadHistoryOutbox UpdateReadHistoryOutbox = 25;
PredUpdateWebPage UpdateWebPage = 26;
PredUpdateReadMessagesContents UpdateReadMessagesContents = 27;
PredUpdateChannelTooLong UpdateChannelTooLong = 28;
PredUpdateChannel UpdateChannel = 29;
PredUpdateNewChannelMessage UpdateNewChannelMessage = 30;
PredUpdateReadChannelInbox UpdateReadChannelInbox = 31;
PredUpdateDeleteChannelMessages UpdateDeleteChannelMessages = 32;
PredUpdateChannelMessageViews UpdateChannelMessageViews = 33;
PredUpdateChatAdmins UpdateChatAdmins = 34;
PredUpdateChatParticipantAdmin UpdateChatParticipantAdmin = 35;
PredUpdateNewStickerSet UpdateNewStickerSet = 36;
PredUpdateStickerSetsOrder UpdateStickerSetsOrder = 37;
PredUpdateStickerSets UpdateStickerSets = 38;
PredUpdateSavedGifs UpdateSavedGifs = 39;
PredUpdateBotInlineQuery UpdateBotInlineQuery = 40;
PredUpdateBotInlineSend UpdateBotInlineSend = 41;
PredUpdateEditChannelMessage UpdateEditChannelMessage = 42;
PredUpdateChannelPinnedMessage UpdateChannelPinnedMessage = 43;
PredUpdateBotCallbackQuery UpdateBotCallbackQuery = 44;
PredUpdateEditMessage UpdateEditMessage = 45;
PredUpdateInlineBotCallbackQuery UpdateInlineBotCallbackQuery = 46;
PredUpdateReadChannelOutbox UpdateReadChannelOutbox = 47;
PredUpdateDraftMessage UpdateDraftMessage = 48;
PredUpdateReadFeaturedStickers UpdateReadFeaturedStickers = 49;
PredUpdateRecentStickers UpdateRecentStickers = 50;
PredUpdateConfig UpdateConfig = 51;
PredUpdatePtsChanged UpdatePtsChanged = 52;
PredUpdateChannelWebPage UpdateChannelWebPage = 53;
PredUpdatePhoneCall UpdatePhoneCall = 54;
PredUpdateDialogPinned UpdateDialogPinned = 55;
PredUpdatePinnedDialogs UpdatePinnedDialogs = 56;
PredUpdateBotWebhookJSON UpdateBotWebhookJSON = 57;
PredUpdateBotWebhookJSONQuery UpdateBotWebhookJSONQuery = 58;
PredUpdateBotShippingQuery UpdateBotShippingQuery = 59;
PredUpdateBotPrecheckoutQuery UpdateBotPrecheckoutQuery = 60;
PredUpdateLangPackTooLong UpdateLangPackTooLong = 61;
PredUpdateLangPack UpdateLangPack = 62;
PredUpdateContactsReset UpdateContactsReset = 63;
PredUpdateFavedStickers UpdateFavedStickers = 64;
PredUpdateChannelReadMessagesContents UpdateChannelReadMessagesContents = 65;
}
}
message TypeUpdatesState {
PredUpdatesState Value = 1;
}
message TypeUpdatesDifference {
oneof Value {
PredUpdatesDifferenceEmpty UpdatesDifferenceEmpty = 1;
PredUpdatesDifference UpdatesDifference = 2;
PredUpdatesDifferenceSlice UpdatesDifferenceSlice = 3;
PredUpdatesDifferenceTooLong UpdatesDifferenceTooLong = 4;
}
}
message TypeUpdates {
oneof Value {
PredUpdatesTooLong UpdatesTooLong = 1;
PredUpdateShortMessage UpdateShortMessage = 2;
PredUpdateShortChatMessage UpdateShortChatMessage = 3;
PredUpdateShort UpdateShort = 4;
PredUpdatesCombined UpdatesCombined = 5;
PredUpdates Updates = 6;
PredUpdateShortSentMessage UpdateShortSentMessage = 7;
}
}
message TypePhotosPhoto {
PredPhotosPhoto Value = 1;
}
message TypeUploadFile {
oneof Value {
PredUploadFile UploadFile = 1;
PredUploadFileCdnRedirect UploadFileCdnRedirect = 2;
}
}
message TypeDcOption {
PredDcOption Value = 1;
}
message TypeConfig {
PredConfig Value = 1;
}
message TypeNearestDc {
PredNearestDc Value = 1;
}
message TypeHelpAppUpdate {
oneof Value {
PredHelpAppUpdate HelpAppUpdate = 1;
PredHelpNoAppUpdate HelpNoAppUpdate = 2;
}
}
message TypeHelpInviteText {
PredHelpInviteText Value = 1;
}
message TypeInputPeerNotifyEvents {
oneof Value {
PredInputPeerNotifyEventsEmpty InputPeerNotifyEventsEmpty = 1;
PredInputPeerNotifyEventsAll InputPeerNotifyEventsAll = 2;
}
}
message TypePhotosPhotos {
oneof Value {
PredPhotosPhotos PhotosPhotos = 1;
PredPhotosPhotosSlice PhotosPhotosSlice = 2;
}
}
message TypeEncryptedChat {
oneof Value {
PredEncryptedChatEmpty EncryptedChatEmpty = 1;
PredEncryptedChatWaiting EncryptedChatWaiting = 2;
PredEncryptedChatRequested EncryptedChatRequested = 3;
PredEncryptedChat EncryptedChat = 4;
PredEncryptedChatDiscarded EncryptedChatDiscarded = 5;
}
}
message TypeInputEncryptedChat {
PredInputEncryptedChat Value = 1;
}
message TypeEncryptedFile {
oneof Value {
PredEncryptedFileEmpty EncryptedFileEmpty = 1;
PredEncryptedFile EncryptedFile = 2;
}
}
message TypeInputEncryptedFile {
oneof Value {
PredInputEncryptedFileEmpty InputEncryptedFileEmpty = 1;
PredInputEncryptedFileUploaded InputEncryptedFileUploaded = 2;
PredInputEncryptedFile InputEncryptedFile = 3;
PredInputEncryptedFileBigUploaded InputEncryptedFileBigUploaded = 4;
}
}
message TypeEncryptedMessage {
oneof Value {
PredEncryptedMessage EncryptedMessage = 1;
PredEncryptedMessageService EncryptedMessageService = 2;
}
}
message TypeMessagesDhConfig {
oneof Value {
PredMessagesDhConfigNotModified MessagesDhConfigNotModified = 1;
PredMessagesDhConfig MessagesDhConfig = 2;
}
}
message TypeMessagesSentEncryptedMessage {
oneof Value {
PredMessagesSentEncryptedMessage MessagesSentEncryptedMessage = 1;
PredMessagesSentEncryptedFile MessagesSentEncryptedFile = 2;
}
}
message TypeInputDocument {
oneof Value {
PredInputDocumentEmpty InputDocumentEmpty = 1;
PredInputDocument InputDocument = 2;
}
}
message TypeDocument {
oneof Value {
PredDocumentEmpty DocumentEmpty = 1;
PredDocument Document = 2;
}
}
message TypeHelpSupport {
PredHelpSupport Value = 1;
}
message TypeNotifyPeer {
oneof Value {
PredNotifyAll NotifyAll = 1;
PredNotifyChats NotifyChats = 2;
PredNotifyPeer NotifyPeer = 3;
PredNotifyUsers NotifyUsers = 4;
}
}
message TypeSendMessageAction {
oneof Value {
PredSendMessageTypingAction SendMessageTypingAction = 1;
PredSendMessageCancelAction SendMessageCancelAction = 2;
PredSendMessageRecordVideoAction SendMessageRecordVideoAction = 3;
PredSendMessageUploadVideoAction SendMessageUploadVideoAction = 4;
PredSendMessageRecordAudioAction SendMessageRecordAudioAction = 5;
PredSendMessageUploadAudioAction SendMessageUploadAudioAction = 6;
PredSendMessageUploadPhotoAction SendMessageUploadPhotoAction = 7;
PredSendMessageUploadDocumentAction SendMessageUploadDocumentAction = 8;
PredSendMessageGeoLocationAction SendMessageGeoLocationAction = 9;
PredSendMessageChooseContactAction SendMessageChooseContactAction = 10;
PredSendMessageGamePlayAction SendMessageGamePlayAction = 11;
PredSendMessageRecordRoundAction SendMessageRecordRoundAction = 12;
PredSendMessageUploadRoundAction SendMessageUploadRoundAction = 13;
}
}
message TypeInputPrivacyKey {
oneof Value {
PredInputPrivacyKeyStatusTimestamp InputPrivacyKeyStatusTimestamp = 1;
PredInputPrivacyKeyChatInvite InputPrivacyKeyChatInvite = 2;
PredInputPrivacyKeyPhoneCall InputPrivacyKeyPhoneCall = 3;
}
}
message TypePrivacyKey {
oneof Value {
PredPrivacyKeyStatusTimestamp PrivacyKeyStatusTimestamp = 1;
PredPrivacyKeyChatInvite PrivacyKeyChatInvite = 2;
PredPrivacyKeyPhoneCall PrivacyKeyPhoneCall = 3;
}
}
message TypeInputPrivacyRule {
oneof Value {
PredInputPrivacyValueAllowContacts InputPrivacyValueAllowContacts = 1;
PredInputPrivacyValueAllowAll InputPrivacyValueAllowAll = 2;
PredInputPrivacyValueAllowUsers InputPrivacyValueAllowUsers = 3;
PredInputPrivacyValueDisallowContacts InputPrivacyValueDisallowContacts = 4;
PredInputPrivacyValueDisallowAll InputPrivacyValueDisallowAll = 5;
PredInputPrivacyValueDisallowUsers InputPrivacyValueDisallowUsers = 6;
}
}
message TypePrivacyRule {
oneof Value {
PredPrivacyValueAllowContacts PrivacyValueAllowContacts = 1;
PredPrivacyValueAllowAll PrivacyValueAllowAll = 2;
PredPrivacyValueAllowUsers PrivacyValueAllowUsers = 3;
PredPrivacyValueDisallowContacts PrivacyValueDisallowContacts = 4;
PredPrivacyValueDisallowAll PrivacyValueDisallowAll = 5;
PredPrivacyValueDisallowUsers PrivacyValueDisallowUsers = 6;
}
}
message TypeAccountPrivacyRules {
PredAccountPrivacyRules Value = 1;
}
message TypeAccountDaysTTL {
PredAccountDaysTTL Value = 1;
}
message TypeDisabledFeature {
PredDisabledFeature Value = 1;
}
message TypeDocumentAttribute {
oneof Value {
PredDocumentAttributeImageSize DocumentAttributeImageSize = 1;
PredDocumentAttributeAnimated DocumentAttributeAnimated = 2;
PredDocumentAttributeSticker DocumentAttributeSticker = 3;
PredDocumentAttributeVideo DocumentAttributeVideo = 4;
PredDocumentAttributeAudio DocumentAttributeAudio = 5;
PredDocumentAttributeFilename DocumentAttributeFilename = 6;
PredDocumentAttributeHasStickers DocumentAttributeHasStickers = 7;
}
}
message TypeMessagesStickers {
oneof Value {
PredMessagesStickersNotModified MessagesStickersNotModified = 1;
PredMessagesStickers MessagesStickers = 2;
}
}
message TypeStickerPack {
PredStickerPack Value = 1;
}
message TypeMessagesAllStickers {
oneof Value {
PredMessagesAllStickersNotModified MessagesAllStickersNotModified = 1;
PredMessagesAllStickers MessagesAllStickers = 2;
}
}
message TypeAccountPassword {
oneof Value {
PredAccountNoPassword AccountNoPassword = 1;
PredAccountPassword AccountPassword = 2;
}
}
message TypeMessagesAffectedMessages {
PredMessagesAffectedMessages Value = 1;
}
message TypeContactLink {
oneof Value {
PredContactLinkUnknown ContactLinkUnknown = 1;
PredContactLinkNone ContactLinkNone = 2;
PredContactLinkHasPhone ContactLinkHasPhone = 3;
PredContactLinkContact ContactLinkContact = 4;
}
}
message TypeWebPage {
oneof Value {
PredWebPageEmpty WebPageEmpty = 1;
PredWebPagePending WebPagePending = 2;
PredWebPage WebPage = 3;
PredWebPageNotModified WebPageNotModified = 4;
}
}
message TypeAuthorization {
PredAuthorization Value = 1;
}
message TypeAccountAuthorizations {
PredAccountAuthorizations Value = 1;
}
message TypeAccountPasswordSettings {
PredAccountPasswordSettings Value = 1;
}
message TypeAccountPasswordInputSettings {
PredAccountPasswordInputSettings Value = 1;
}
message TypeAuthPasswordRecovery {
PredAuthPasswordRecovery Value = 1;
}
message TypeReceivedNotifyMessage {
PredReceivedNotifyMessage Value = 1;
}
message TypeExportedChatInvite {
oneof Value {
PredChatInviteEmpty ChatInviteEmpty = 1;
PredChatInviteExported ChatInviteExported = 2;
}
}
message TypeChatInvite {
oneof Value {
PredChatInviteAlready ChatInviteAlready = 1;
PredChatInvite ChatInvite = 2;
}
}
message TypeInputStickerSet {
oneof Value {
PredInputStickerSetEmpty InputStickerSetEmpty = 1;
PredInputStickerSetID InputStickerSetID = 2;
PredInputStickerSetShortName InputStickerSetShortName = 3;
}
}
message TypeStickerSet {
PredStickerSet Value = 1;
}
message TypeMessagesStickerSet {
PredMessagesStickerSet Value = 1;
}
message TypeBotCommand {
PredBotCommand Value = 1;
}
message TypeBotInfo {
PredBotInfo Value = 1;
}
message TypeKeyboardButton {
oneof Value {
PredKeyboardButton KeyboardButton = 1;
PredKeyboardButtonUrl KeyboardButtonUrl = 2;
PredKeyboardButtonCallback KeyboardButtonCallback = 3;
PredKeyboardButtonRequestPhone KeyboardButtonRequestPhone = 4;
PredKeyboardButtonRequestGeoLocation KeyboardButtonRequestGeoLocation = 5;
PredKeyboardButtonSwitchInline KeyboardButtonSwitchInline = 6;
PredKeyboardButtonGame KeyboardButtonGame = 7;
PredKeyboardButtonBuy KeyboardButtonBuy = 8;
}
}
message TypeKeyboardButtonRow {
PredKeyboardButtonRow Value = 1;
}
message TypeReplyMarkup {
oneof Value {
PredReplyKeyboardHide ReplyKeyboardHide = 1;
PredReplyKeyboardForceReply ReplyKeyboardForceReply = 2;
PredReplyKeyboardMarkup ReplyKeyboardMarkup = 3;
PredReplyInlineMarkup ReplyInlineMarkup = 4;
}
}
message TypeMessageEntity {
oneof Value {
PredMessageEntityUnknown MessageEntityUnknown = 1;
PredMessageEntityMention MessageEntityMention = 2;
PredMessageEntityHashtag MessageEntityHashtag = 3;
PredMessageEntityBotCommand MessageEntityBotCommand = 4;
PredMessageEntityUrl MessageEntityUrl = 5;
PredMessageEntityEmail MessageEntityEmail = 6;
PredMessageEntityBold MessageEntityBold = 7;
PredMessageEntityItalic MessageEntityItalic = 8;
PredMessageEntityCode MessageEntityCode = 9;
PredMessageEntityPre MessageEntityPre = 10;
PredMessageEntityTextUrl MessageEntityTextUrl = 11;
PredMessageEntityMentionName MessageEntityMentionName = 12;
PredInputMessageEntityMentionName InputMessageEntityMentionName = 13;
}
}
message TypeInputChannel {
oneof Value {
PredInputChannelEmpty InputChannelEmpty = 1;
PredInputChannel InputChannel = 2;
}
}
message TypeContactsResolvedPeer {
PredContactsResolvedPeer Value = 1;
}
message TypeMessageRange {
PredMessageRange Value = 1;
}
message TypeUpdatesChannelDifference {
oneof Value {
PredUpdatesChannelDifferenceEmpty UpdatesChannelDifferenceEmpty = 1;
PredUpdatesChannelDifferenceTooLong UpdatesChannelDifferenceTooLong = 2;
PredUpdatesChannelDifference UpdatesChannelDifference = 3;
}
}
message TypeChannelMessagesFilter {
oneof Value {
PredChannelMessagesFilterEmpty ChannelMessagesFilterEmpty = 1;
PredChannelMessagesFilter ChannelMessagesFilter = 2;
}
}
message TypeChannelParticipant {
oneof Value {
PredChannelParticipant ChannelParticipant = 1;
PredChannelParticipantSelf ChannelParticipantSelf = 2;
PredChannelParticipantCreator ChannelParticipantCreator = 3;
PredChannelParticipantAdmin ChannelParticipantAdmin = 4;
PredChannelParticipantBanned ChannelParticipantBanned = 5;
}
}
message TypeChannelParticipantsFilter {
oneof Value {
PredChannelParticipantsRecent ChannelParticipantsRecent = 1;
PredChannelParticipantsAdmins ChannelParticipantsAdmins = 2;
PredChannelParticipantsKicked ChannelParticipantsKicked = 3;
PredChannelParticipantsBots ChannelParticipantsBots = 4;
PredChannelParticipantsBanned ChannelParticipantsBanned = 5;
PredChannelParticipantsSearch ChannelParticipantsSearch = 6;
}
}
message TypeChannelsChannelParticipants {
PredChannelsChannelParticipants Value = 1;
}
message TypeChannelsChannelParticipant {
PredChannelsChannelParticipant Value = 1;
}
message TypeTrue {
PredTrue Value = 1;
}
message TypeReportReason {
oneof Value {
PredInputReportReasonSpam InputReportReasonSpam = 1;
PredInputReportReasonViolence InputReportReasonViolence = 2;
PredInputReportReasonPornography InputReportReasonPornography = 3;
PredInputReportReasonOther InputReportReasonOther = 4;
}
}
message TypeHelpTermsOfService {
PredHelpTermsOfService Value = 1;
}
message TypeFoundGif {
oneof Value {
PredFoundGif FoundGif = 1;
PredFoundGifCached FoundGifCached = 2;
}
}
message TypeMessagesFoundGifs {
PredMessagesFoundGifs Value = 1;
}
message TypeMessagesSavedGifs {
oneof Value {
PredMessagesSavedGifsNotModified MessagesSavedGifsNotModified = 1;
PredMessagesSavedGifs MessagesSavedGifs = 2;
}
}
message TypeInputBotInlineMessage {
oneof Value {
PredInputBotInlineMessageMediaAuto InputBotInlineMessageMediaAuto = 1;
PredInputBotInlineMessageText InputBotInlineMessageText = 2;
PredInputBotInlineMessageMediaGeo InputBotInlineMessageMediaGeo = 3;
PredInputBotInlineMessageMediaVenue InputBotInlineMessageMediaVenue = 4;
PredInputBotInlineMessageMediaContact InputBotInlineMessageMediaContact = 5;
PredInputBotInlineMessageGame InputBotInlineMessageGame = 6;
}
}
message TypeInputBotInlineResult {
oneof Value {
PredInputBotInlineResult InputBotInlineResult = 1;
PredInputBotInlineResultPhoto InputBotInlineResultPhoto = 2;
PredInputBotInlineResultDocument InputBotInlineResultDocument = 3;
PredInputBotInlineResultGame InputBotInlineResultGame = 4;
}
}
message TypeBotInlineMessage {
oneof Value {
PredBotInlineMessageMediaAuto BotInlineMessageMediaAuto = 1;
PredBotInlineMessageText BotInlineMessageText = 2;
PredBotInlineMessageMediaGeo BotInlineMessageMediaGeo = 3;
PredBotInlineMessageMediaVenue BotInlineMessageMediaVenue = 4;
PredBotInlineMessageMediaContact BotInlineMessageMediaContact = 5;
}
}
message TypeBotInlineResult {
oneof Value {
PredBotInlineResult BotInlineResult = 1;
PredBotInlineMediaResult BotInlineMediaResult = 2;
}
}
message TypeMessagesBotResults {
PredMessagesBotResults Value = 1;
}
message TypeExportedMessageLink {
PredExportedMessageLink Value = 1;
}
message TypeMessageFwdHeader {
PredMessageFwdHeader Value = 1;
}
message TypePeerSettings {
PredPeerSettings Value = 1;
}
message TypeAuthCodeType {
oneof Value {
PredAuthCodeTypeSms AuthCodeTypeSms = 1;
PredAuthCodeTypeCall AuthCodeTypeCall = 2;
PredAuthCodeTypeFlashCall AuthCodeTypeFlashCall = 3;
}
}
message TypeAuthSentCodeType {
oneof Value {
PredAuthSentCodeTypeApp AuthSentCodeTypeApp = 1;
PredAuthSentCodeTypeSms AuthSentCodeTypeSms = 2;
PredAuthSentCodeTypeCall AuthSentCodeTypeCall = 3;
PredAuthSentCodeTypeFlashCall AuthSentCodeTypeFlashCall = 4;
}
}
message TypeMessagesBotCallbackAnswer {
PredMessagesBotCallbackAnswer Value = 1;
}
message TypeMessagesMessageEditData {
PredMessagesMessageEditData Value = 1;
}
message TypeInputBotInlineMessageID {
PredInputBotInlineMessageID Value = 1;
}
message TypeInlineBotSwitchPM {
PredInlineBotSwitchPM Value = 1;
}
message TypeMessagesPeerDialogs {
PredMessagesPeerDialogs Value = 1;
}
message TypeTopPeer {
PredTopPeer Value = 1;
}
message TypeTopPeerCategory {
oneof Value {
PredTopPeerCategoryBotsPM TopPeerCategoryBotsPM = 1;
PredTopPeerCategoryBotsInline TopPeerCategoryBotsInline = 2;
PredTopPeerCategoryCorrespondents TopPeerCategoryCorrespondents = 3;
PredTopPeerCategoryGroups TopPeerCategoryGroups = 4;
PredTopPeerCategoryChannels TopPeerCategoryChannels = 5;
PredTopPeerCategoryPhoneCalls TopPeerCategoryPhoneCalls = 6;
}
}
message TypeTopPeerCategoryPeers {
PredTopPeerCategoryPeers Value = 1;
}
message TypeContactsTopPeers {
oneof Value {
PredContactsTopPeersNotModified ContactsTopPeersNotModified = 1;
PredContactsTopPeers ContactsTopPeers = 2;
}
}
message TypeDraftMessage {
oneof Value {
PredDraftMessageEmpty DraftMessageEmpty = 1;
PredDraftMessage DraftMessage = 2;
}
}
message TypeMessagesFeaturedStickers {
oneof Value {
PredMessagesFeaturedStickersNotModified MessagesFeaturedStickersNotModified = 1;
PredMessagesFeaturedStickers MessagesFeaturedStickers = 2;
}
}
message TypeMessagesRecentStickers {
oneof Value {
PredMessagesRecentStickersNotModified MessagesRecentStickersNotModified = 1;
PredMessagesRecentStickers MessagesRecentStickers = 2;
}
}
message TypeMessagesArchivedStickers {
PredMessagesArchivedStickers Value = 1;
}
message TypeMessagesStickerSetInstallResult {
oneof Value {
PredMessagesStickerSetInstallResultSuccess MessagesStickerSetInstallResultSuccess = 1;
PredMessagesStickerSetInstallResultArchive MessagesStickerSetInstallResultArchive = 2;
}
}
message TypeStickerSetCovered {
oneof Value {
PredStickerSetCovered StickerSetCovered = 1;
PredStickerSetMultiCovered StickerSetMultiCovered = 2;
}
}
message TypeMaskCoords {
PredMaskCoords Value = 1;
}
message TypeInputStickeredMedia {
oneof Value {
PredInputStickeredMediaPhoto InputStickeredMediaPhoto = 1;
PredInputStickeredMediaDocument InputStickeredMediaDocument = 2;
}
}
message TypeGame {
PredGame Value = 1;
}
message TypeInputGame {
oneof Value {
PredInputGameID InputGameID = 1;
PredInputGameShortName InputGameShortName = 2;
}
}
message TypeHighScore {
PredHighScore Value = 1;
}
message TypeMessagesHighScores {
PredMessagesHighScores Value = 1;
}
message TypeRichText {
oneof Value {
PredTextEmpty TextEmpty = 1;
PredTextPlain TextPlain = 2;
PredTextBold TextBold = 3;
PredTextItalic TextItalic = 4;
PredTextUnderline TextUnderline = 5;
PredTextStrike TextStrike = 6;
PredTextFixed TextFixed = 7;
PredTextUrl TextUrl = 8;
PredTextEmail TextEmail = 9;