forked from AmarnathCJD/gogram
/
enums_gen.go
executable file
·429 lines (381 loc) · 13.2 KB
/
enums_gen.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
// Code generated by generate-tl-files; DO NOT EDIT.
package telegram
type AttachMenuPeerType uint32
const (
AttachMenuPeerTypeBotPm AttachMenuPeerType = 0xc32bfa1a
AttachMenuPeerTypeBroadcast AttachMenuPeerType = 0x7bfbdefc
AttachMenuPeerTypeChat AttachMenuPeerType = 0x509113f
AttachMenuPeerTypePm AttachMenuPeerType = 0xf146d31f
AttachMenuPeerTypeSameBotPm AttachMenuPeerType = 0x7d6be90e
)
func (e AttachMenuPeerType) String() string {
switch e {
case AttachMenuPeerType(0xc32bfa1a):
return "attachMenuPeerTypeBotPM"
case AttachMenuPeerType(0x7bfbdefc):
return "attachMenuPeerTypeBroadcast"
case AttachMenuPeerType(0x509113f):
return "attachMenuPeerTypeChat"
case AttachMenuPeerType(0xf146d31f):
return "attachMenuPeerTypePM"
case AttachMenuPeerType(0x7d6be90e):
return "attachMenuPeerTypeSameBotPM"
default:
return "<UNKNOWN AttachMenuPeerType>"
}
}
func (e AttachMenuPeerType) CRC() uint32 { return uint32(e) }
type BaseTheme uint32
const (
BaseThemeArctic BaseTheme = 0x5b11125a
BaseThemeClassic BaseTheme = 0xc3a12462
BaseThemeDay BaseTheme = 0xfbd81688
BaseThemeNight BaseTheme = 0xb7b31ea8
BaseThemeTinted BaseTheme = 0x6d5f77ee
)
func (e BaseTheme) String() string {
switch e {
case BaseTheme(0x5b11125a):
return "baseThemeArctic"
case BaseTheme(0xc3a12462):
return "baseThemeClassic"
case BaseTheme(0xfbd81688):
return "baseThemeDay"
case BaseTheme(0xb7b31ea8):
return "baseThemeNight"
case BaseTheme(0x6d5f77ee):
return "baseThemeTinted"
default:
return "<UNKNOWN BaseTheme>"
}
}
func (e BaseTheme) CRC() uint32 { return uint32(e) }
type InlineQueryPeerType uint32
const (
InlineQueryPeerTypeBotPm InlineQueryPeerType = 0xe3b2d0c
InlineQueryPeerTypeBroadcast InlineQueryPeerType = 0x6334ee9a
InlineQueryPeerTypeChat InlineQueryPeerType = 0xd766c50a
InlineQueryPeerTypeMegagroup InlineQueryPeerType = 0x5ec4be43
InlineQueryPeerTypePm InlineQueryPeerType = 0x833c0fac
InlineQueryPeerTypeSameBotPm InlineQueryPeerType = 0x3081ed9d
)
func (e InlineQueryPeerType) String() string {
switch e {
case InlineQueryPeerType(0xe3b2d0c):
return "inlineQueryPeerTypeBotPM"
case InlineQueryPeerType(0x6334ee9a):
return "inlineQueryPeerTypeBroadcast"
case InlineQueryPeerType(0xd766c50a):
return "inlineQueryPeerTypeChat"
case InlineQueryPeerType(0x5ec4be43):
return "inlineQueryPeerTypeMegagroup"
case InlineQueryPeerType(0x833c0fac):
return "inlineQueryPeerTypePM"
case InlineQueryPeerType(0x3081ed9d):
return "inlineQueryPeerTypeSameBotPM"
default:
return "<UNKNOWN InlineQueryPeerType>"
}
}
func (e InlineQueryPeerType) CRC() uint32 { return uint32(e) }
type InputPrivacyKey uint32
const (
InputPrivacyKeyAbout InputPrivacyKey = 0x3823cc40
InputPrivacyKeyAddedByPhone InputPrivacyKey = 0xd1219bdd
InputPrivacyKeyChatInvite InputPrivacyKey = 0xbdfb0426
InputPrivacyKeyForwards InputPrivacyKey = 0xa4dd4c08
InputPrivacyKeyPhoneCall InputPrivacyKey = 0xfabadc5f
InputPrivacyKeyPhoneNumber InputPrivacyKey = 0x352dafa
InputPrivacyKeyPhoneP2P InputPrivacyKey = 0xdb9e70d2
InputPrivacyKeyProfilePhoto InputPrivacyKey = 0x5719bacc
InputPrivacyKeyStatusTimestamp InputPrivacyKey = 0x4f96cb18
InputPrivacyKeyVoiceMessages InputPrivacyKey = 0xaee69d68
)
func (e InputPrivacyKey) String() string {
switch e {
case InputPrivacyKey(0x3823cc40):
return "inputPrivacyKeyAbout"
case InputPrivacyKey(0xd1219bdd):
return "inputPrivacyKeyAddedByPhone"
case InputPrivacyKey(0xbdfb0426):
return "inputPrivacyKeyChatInvite"
case InputPrivacyKey(0xa4dd4c08):
return "inputPrivacyKeyForwards"
case InputPrivacyKey(0xfabadc5f):
return "inputPrivacyKeyPhoneCall"
case InputPrivacyKey(0x352dafa):
return "inputPrivacyKeyPhoneNumber"
case InputPrivacyKey(0xdb9e70d2):
return "inputPrivacyKeyPhoneP2P"
case InputPrivacyKey(0x5719bacc):
return "inputPrivacyKeyProfilePhoto"
case InputPrivacyKey(0x4f96cb18):
return "inputPrivacyKeyStatusTimestamp"
case InputPrivacyKey(0xaee69d68):
return "inputPrivacyKeyVoiceMessages"
default:
return "<UNKNOWN InputPrivacyKey>"
}
}
func (e InputPrivacyKey) CRC() uint32 { return uint32(e) }
type Null uint32
const NullCrc Null = 0x56730bcc
func (e Null) String() string {
switch e {
case Null(0x56730bcc):
return "null"
default:
return "<UNKNOWN Null>"
}
}
func (e Null) CRC() uint32 { return uint32(0x56730bcc) }
type PhoneCallDiscardReason uint32
const (
PhoneCallDiscardReasonBusy PhoneCallDiscardReason = 0xfaf7e8c9
PhoneCallDiscardReasonDisconnect PhoneCallDiscardReason = 0xe095c1a0
PhoneCallDiscardReasonHangup PhoneCallDiscardReason = 0x57adc690
PhoneCallDiscardReasonMissed PhoneCallDiscardReason = 0x85e42301
)
func (e PhoneCallDiscardReason) String() string {
switch e {
case PhoneCallDiscardReason(0xfaf7e8c9):
return "phoneCallDiscardReasonBusy"
case PhoneCallDiscardReason(0xe095c1a0):
return "phoneCallDiscardReasonDisconnect"
case PhoneCallDiscardReason(0x57adc690):
return "phoneCallDiscardReasonHangup"
case PhoneCallDiscardReason(0x85e42301):
return "phoneCallDiscardReasonMissed"
default:
return "<UNKNOWN PhoneCallDiscardReason>"
}
}
func (e PhoneCallDiscardReason) CRC() uint32 { return uint32(e) }
type PrivacyKey uint32
const (
PrivacyKeyAbout PrivacyKey = 0xa486b761
PrivacyKeyAddedByPhone PrivacyKey = 0x42ffd42b
PrivacyKeyChatInvite PrivacyKey = 0x500e6dfa
PrivacyKeyForwards PrivacyKey = 0x69ec56a3
PrivacyKeyPhoneCall PrivacyKey = 0x3d662b7b
PrivacyKeyPhoneNumber PrivacyKey = 0xd19ae46d
PrivacyKeyPhoneP2P PrivacyKey = 0x39491cc8
PrivacyKeyProfilePhoto PrivacyKey = 0x96151fed
PrivacyKeyStatusTimestamp PrivacyKey = 0xbc2eab30
PrivacyKeyVoiceMessages PrivacyKey = 0x697f414
)
func (e PrivacyKey) String() string {
switch e {
case PrivacyKey(0xa486b761):
return "privacyKeyAbout"
case PrivacyKey(0x42ffd42b):
return "privacyKeyAddedByPhone"
case PrivacyKey(0x500e6dfa):
return "privacyKeyChatInvite"
case PrivacyKey(0x69ec56a3):
return "privacyKeyForwards"
case PrivacyKey(0x3d662b7b):
return "privacyKeyPhoneCall"
case PrivacyKey(0xd19ae46d):
return "privacyKeyPhoneNumber"
case PrivacyKey(0x39491cc8):
return "privacyKeyPhoneP2P"
case PrivacyKey(0x96151fed):
return "privacyKeyProfilePhoto"
case PrivacyKey(0xbc2eab30):
return "privacyKeyStatusTimestamp"
case PrivacyKey(0x697f414):
return "privacyKeyVoiceMessages"
default:
return "<UNKNOWN PrivacyKey>"
}
}
func (e PrivacyKey) CRC() uint32 { return uint32(e) }
type ReportReason uint32
const (
InputReportReasonChildAbuse ReportReason = 0xadf44ee3
InputReportReasonCopyright ReportReason = 0x9b89f93a
InputReportReasonFake ReportReason = 0xf5ddd6e7
InputReportReasonGeoIrrelevant ReportReason = 0xdbd4feed
InputReportReasonIllegalDrugs ReportReason = 0xa8eb2be
InputReportReasonOther ReportReason = 0xc1e4a2b1
InputReportReasonPersonalDetails ReportReason = 0x9ec7863d
InputReportReasonPornography ReportReason = 0x2e59d922
InputReportReasonSpam ReportReason = 0x58dbcab8
InputReportReasonViolence ReportReason = 0x1e22c78d
)
func (e ReportReason) String() string {
switch e {
case ReportReason(0xadf44ee3):
return "inputReportReasonChildAbuse"
case ReportReason(0x9b89f93a):
return "inputReportReasonCopyright"
case ReportReason(0xf5ddd6e7):
return "inputReportReasonFake"
case ReportReason(0xdbd4feed):
return "inputReportReasonGeoIrrelevant"
case ReportReason(0xa8eb2be):
return "inputReportReasonIllegalDrugs"
case ReportReason(0xc1e4a2b1):
return "inputReportReasonOther"
case ReportReason(0x9ec7863d):
return "inputReportReasonPersonalDetails"
case ReportReason(0x2e59d922):
return "inputReportReasonPornography"
case ReportReason(0x58dbcab8):
return "inputReportReasonSpam"
case ReportReason(0x1e22c78d):
return "inputReportReasonViolence"
default:
return "<UNKNOWN ReportReason>"
}
}
func (e ReportReason) CRC() uint32 { return uint32(e) }
type SecureValueType uint32
const (
SecureValueTypeAddress SecureValueType = 0xcbe31e26
SecureValueTypeBankStatement SecureValueType = 0x89137c0d
SecureValueTypeDriverLicense SecureValueType = 0x6e425c4
SecureValueTypeEmail SecureValueType = 0x8e3ca7ee
SecureValueTypeIdentityCard SecureValueType = 0xa0d0744b
SecureValueTypeInternalPassport SecureValueType = 0x99a48f23
SecureValueTypePassport SecureValueType = 0x3dac6a00
SecureValueTypePassportRegistration SecureValueType = 0x99e3806a
SecureValueTypePersonalDetails SecureValueType = 0x9d2a81e3
SecureValueTypePhone SecureValueType = 0xb320aadb
SecureValueTypeRentalAgreement SecureValueType = 0x8b883488
SecureValueTypeTemporaryRegistration SecureValueType = 0xea02ec33
SecureValueTypeUtilityBill SecureValueType = 0xfc36954e
)
func (e SecureValueType) String() string {
switch e {
case SecureValueType(0xcbe31e26):
return "secureValueTypeAddress"
case SecureValueType(0x89137c0d):
return "secureValueTypeBankStatement"
case SecureValueType(0x6e425c4):
return "secureValueTypeDriverLicense"
case SecureValueType(0x8e3ca7ee):
return "secureValueTypeEmail"
case SecureValueType(0xa0d0744b):
return "secureValueTypeIdentityCard"
case SecureValueType(0x99a48f23):
return "secureValueTypeInternalPassport"
case SecureValueType(0x3dac6a00):
return "secureValueTypePassport"
case SecureValueType(0x99e3806a):
return "secureValueTypePassportRegistration"
case SecureValueType(0x9d2a81e3):
return "secureValueTypePersonalDetails"
case SecureValueType(0xb320aadb):
return "secureValueTypePhone"
case SecureValueType(0x8b883488):
return "secureValueTypeRentalAgreement"
case SecureValueType(0xea02ec33):
return "secureValueTypeTemporaryRegistration"
case SecureValueType(0xfc36954e):
return "secureValueTypeUtilityBill"
default:
return "<UNKNOWN SecureValueType>"
}
}
func (e SecureValueType) CRC() uint32 { return uint32(e) }
type TopPeerCategory uint32
const (
TopPeerCategoryBotsInline TopPeerCategory = 0x148677e2
TopPeerCategoryBotsPm TopPeerCategory = 0xab661b5b
TopPeerCategoryChannels TopPeerCategory = 0x161d9628
TopPeerCategoryCorrespondents TopPeerCategory = 0x637b7ed
TopPeerCategoryForwardChats TopPeerCategory = 0xfbeec0f0
TopPeerCategoryForwardUsers TopPeerCategory = 0xa8406ca9
TopPeerCategoryGroups TopPeerCategory = 0xbd17a14a
TopPeerCategoryPhoneCalls TopPeerCategory = 0x1e76a78c
)
func (e TopPeerCategory) String() string {
switch e {
case TopPeerCategory(0x148677e2):
return "topPeerCategoryBotsInline"
case TopPeerCategory(0xab661b5b):
return "topPeerCategoryBotsPM"
case TopPeerCategory(0x161d9628):
return "topPeerCategoryChannels"
case TopPeerCategory(0x637b7ed):
return "topPeerCategoryCorrespondents"
case TopPeerCategory(0xfbeec0f0):
return "topPeerCategoryForwardChats"
case TopPeerCategory(0xa8406ca9):
return "topPeerCategoryForwardUsers"
case TopPeerCategory(0xbd17a14a):
return "topPeerCategoryGroups"
case TopPeerCategory(0x1e76a78c):
return "topPeerCategoryPhoneCalls"
default:
return "<UNKNOWN TopPeerCategory>"
}
}
func (e TopPeerCategory) CRC() uint32 { return uint32(e) }
type AuthCodeType uint32
const (
AuthCodeTypeCall AuthCodeType = 0x741cd3e3
AuthCodeTypeFlashCall AuthCodeType = 0x226ccefb
AuthCodeTypeFragmentSms AuthCodeType = 0x6ed998c
AuthCodeTypeMissedCall AuthCodeType = 0xd61ad6ee
AuthCodeTypeSms AuthCodeType = 0x72a3158c
)
func (e AuthCodeType) String() string {
switch e {
case AuthCodeType(0x741cd3e3):
return "auth.codeTypeCall"
case AuthCodeType(0x226ccefb):
return "auth.codeTypeFlashCall"
case AuthCodeType(0x6ed998c):
return "auth.codeTypeFragmentSms"
case AuthCodeType(0xd61ad6ee):
return "auth.codeTypeMissedCall"
case AuthCodeType(0x72a3158c):
return "auth.codeTypeSms"
default:
return "<UNKNOWN auth.CodeType>"
}
}
func (e AuthCodeType) CRC() uint32 { return uint32(e) }
type StorageFileType uint32
const (
StorageFileGif StorageFileType = 0xcae1aadf
StorageFileJpeg StorageFileType = 0x7efe0e
StorageFileMov StorageFileType = 0x4b09ebbc
StorageFileMp3 StorageFileType = 0x528a0677
StorageFileMp4 StorageFileType = 0xb3cea0e4
StorageFilePartial StorageFileType = 0x40bc6f52
StorageFilePdf StorageFileType = 0xae1e508d
StorageFilePng StorageFileType = 0xa4f63c0
StorageFileUnknown StorageFileType = 0xaa963b05
StorageFileWebp StorageFileType = 0x1081464c
)
func (e StorageFileType) String() string {
switch e {
case StorageFileType(0xcae1aadf):
return "storage.fileGif"
case StorageFileType(0x7efe0e):
return "storage.fileJpeg"
case StorageFileType(0x4b09ebbc):
return "storage.fileMov"
case StorageFileType(0x528a0677):
return "storage.fileMp3"
case StorageFileType(0xb3cea0e4):
return "storage.fileMp4"
case StorageFileType(0x40bc6f52):
return "storage.filePartial"
case StorageFileType(0xae1e508d):
return "storage.filePdf"
case StorageFileType(0xa4f63c0):
return "storage.filePng"
case StorageFileType(0xaa963b05):
return "storage.fileUnknown"
case StorageFileType(0x1081464c):
return "storage.fileWebp"
default:
return "<UNKNOWN storage.FileType>"
}
}
func (e StorageFileType) CRC() uint32 { return uint32(e) }