Repository navigation
Expand file tree
/
Copy patherrors.json
More file actions
5005 lines (5005 loc) · 196 KB
/
Copy patherrors.json
File metadata and controls
5005 lines (5005 loc) · 196 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
{
"errors": [
{
"code": "FILE_MIGRATE_X",
"http": 303,
"category": "Migration",
"message": "The file to be accessed is currently stored in DC %v.",
"why": "The requested file lives on a different DC. Re-issue the upload/download against DC X.",
"parameterized": true
},
{
"code": "NETWORK_MIGRATE_X",
"http": 303,
"category": "Migration",
"message": "The source IP address is associated with DC %v.",
"why": "The auth key/account lives on a different data center. Reconnect to DC X and replay the request; the gogram client handles this transparently.",
"parameterized": true
},
{
"code": "PHONE_MIGRATE_X",
"http": 303,
"category": "Migration",
"message": "The phone number a user is trying to use for authorization is associated with DC %v.",
"why": "The phone number is registered on a different DC. Re-issue the auth call against DC X.",
"parameterized": true
},
{
"code": "STATS_MIGRATE_X",
"http": 303,
"category": "Migration",
"message": "The channel statistics must be fetched from DC %v.",
"why": "Channel statistics for this channel are stored on a different DC. Re-issue the stats call against DC X.",
"parameterized": true
},
{
"code": "USER_MIGRATE_X",
"http": 303,
"category": "Migration",
"message": "The user whose identity is being used to execute queries is associated with DC %v.",
"why": "The current user lives on a different DC. Reconnect to DC X before retrying.",
"parameterized": true
},
{
"code": "2FA_CONFIRM_WAIT_X",
"http": 400,
"category": "Authentication",
"message": "You'll be able to reset your account in %v seconds. If not, account will be deleted in 1 week for security reasons.",
"why": "The server is rate-limiting this operation. Sleep for the duration the server reports before retrying.",
"parameterized": false
},
{
"code": "AUTH_BYTES_INVALID",
"http": 400,
"category": "Authentication",
"message": "The provided authorization is invalid.",
"why": "The supplied auth bytes is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "AUTH_RESTART",
"http": 400,
"category": "Authentication",
"message": "Restart the authorization process.",
"why": "Restart the authorization process. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CODE_EMPTY",
"http": 400,
"category": "Authentication",
"message": "The provided code is empty.",
"why": "A required code was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "CODE_HASH_INVALID",
"http": 400,
"category": "Authentication",
"message": "Code hash invalid.",
"why": "The supplied code hash is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "CODE_INVALID",
"http": 400,
"category": "Authentication",
"message": "Code invalid.",
"why": "The supplied code is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "EMAIL_HASH_EXPIRED",
"http": 400,
"category": "Authentication",
"message": "Email hash expired.",
"why": "The email hash has aged out. Request a fresh one and retry.",
"parameterized": false
},
{
"code": "EMAIL_INSTALL_MISSING",
"http": 400,
"category": "Authentication",
"message": "No email was set up for this account.",
"why": "A required email install was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "EMAIL_INVALID",
"http": 400,
"category": "Authentication",
"message": "The specified email is invalid.",
"why": "The supplied email is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "EMAIL_NOT_SETUP",
"http": 400,
"category": "Authentication",
"message": "Login email not set up.",
"why": "Login email not set up. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "EMAIL_UNCONFIRMED",
"http": 400,
"category": "Authentication",
"message": "Email unconfirmed.",
"why": "Email unconfirmed. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "EMAIL_UNCONFIRMED_X",
"http": 400,
"category": "Authentication",
"message": "Email unconfirmed, the length of the code must be %v.",
"why": "Email unconfirmed, the length of the code must be %v. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": true
},
{
"code": "EMAIL_VERIFY_EXPIRED",
"http": 400,
"category": "Authentication",
"message": "The verification email has expired.",
"why": "The email verify has aged out. Request a fresh one and retry.",
"parameterized": false
},
{
"code": "PASSWORD_EMPTY",
"http": 400,
"category": "Authentication",
"message": "The provided password is empty.",
"why": "A required password was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "PASSWORD_HASH_INVALID",
"http": 400,
"category": "Authentication",
"message": "The provided password hash is invalid.",
"why": "The 2FA password check failed. Either the password is wrong or the SRP parameters were stale — re-fetch account.getPassword and retry.",
"parameterized": false
},
{
"code": "PASSWORD_MISSING",
"http": 400,
"category": "Authentication",
"message": "You must enable 2FA in order to transfer ownership of a channel.",
"why": "A required password was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "PASSWORD_RECOVERY_EXPIRED",
"http": 400,
"category": "Authentication",
"message": "The recovery code has expired.",
"why": "The password recovery has aged out. Request a fresh one and retry.",
"parameterized": false
},
{
"code": "PASSWORD_RECOVERY_NA",
"http": 400,
"category": "Authentication",
"message": "No email was set, can't recover password via email.",
"why": "No email was set, can't recover password via email. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "PASSWORD_REQUIRED",
"http": 400,
"category": "Authentication",
"message": "A 2FA password must be configured to use Telegram Passport.",
"why": "A 2FA password must be configured to use Telegram Passport. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "PASSWORD_TOO_FRESH_X",
"http": 400,
"category": "Authentication",
"message": "The password was modified less than 24 hours ago, try again in %v seconds.",
"why": "The 2FA password was changed recently and is still under cooldown for sensitive operations. Wait the supplied seconds.",
"parameterized": true
},
{
"code": "PHONE_CODE_EMPTY",
"http": 400,
"category": "Authentication",
"message": "phone_code is missing.",
"why": "A required phone code was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "PHONE_CODE_EXPIRED",
"http": 400,
"category": "Authentication",
"message": "The phone code you provided has expired.",
"why": "The login code timed out before SignIn was called. Request a new code via auth.resendCode.",
"parameterized": false
},
{
"code": "PHONE_CODE_HASH_EMPTY",
"http": 400,
"category": "Authentication",
"message": "phone_code_hash is missing.",
"why": "A required phone code hash was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "PHONE_CODE_INVALID",
"http": 400,
"category": "Authentication",
"message": "The provided phone code is invalid.",
"why": "The login code the user entered is wrong. Prompt them again; after several failures the code is invalidated.",
"parameterized": false
},
{
"code": "PHONE_NUMBER_FLOOD",
"http": 400,
"category": "Authentication",
"message": "You asked for the code too many times.",
"why": "You asked for the code too many times. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "PHONE_NUMBER_INVALID",
"http": 400,
"category": "Authentication",
"message": "The phone number is invalid.",
"why": "The phone number does not match the expected E.164 format or is otherwise unrecognized.",
"parameterized": false
},
{
"code": "PHONE_NUMBER_OCCUPIED",
"http": 400,
"category": "Authentication",
"message": "The phone number is already in use.",
"why": "The phone number is already in use. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "PHONE_NUMBER_UNOCCUPIED",
"http": 400,
"category": "Authentication",
"message": "The phone number is not yet being used.",
"why": "The phone number is not yet being used. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "SESSION_TOO_FRESH_X",
"http": 400,
"category": "Authentication",
"message": "This session was created less than 24 hours ago, try again in %v seconds.",
"why": "The current session was created less than 24h ago and is not allowed to perform this sensitive action yet. Wait the supplied seconds.",
"parameterized": true
},
{
"code": "SRP_ID_INVALID",
"http": 400,
"category": "Authentication",
"message": "Invalid SRP ID provided.",
"why": "The supplied srp id is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "SRP_PASSWORD_CHANGED",
"http": 400,
"category": "Authentication",
"message": "Password has changed.",
"why": "Password has changed. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "TOKEN_INVALID",
"http": 400,
"category": "Authentication",
"message": "The provided token is invalid.",
"why": "The supplied token is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "BOOST_NOT_MODIFIED",
"http": 400,
"category": "Boost / Levels",
"message": "You are already boosting the specified channel.",
"why": "The request would not change the current boost — server rejects no-op edits.",
"parameterized": false
},
{
"code": "BOOST_PEER_INVALID",
"http": 400,
"category": "Boost / Levels",
"message": "The specified boost_peer is invalid.",
"why": "The supplied boost peer is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "BOT_APP_INVALID",
"http": 400,
"category": "Bots & Inline",
"message": "The specified bot app is invalid.",
"why": "The supplied bot app is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "BOT_APP_SHORTNAME_INVALID",
"http": 400,
"category": "Bots & Inline",
"message": "The specified bot app short name is invalid.",
"why": "The supplied bot app shortname is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "BOT_CHANNELS_NA",
"http": 400,
"category": "Bots & Inline",
"message": "Bots can't edit admin privileges.",
"why": "Bots can't edit admin privileges. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "BOT_COMMAND_DESCRIPTION_INVALID",
"http": 400,
"category": "Bots & Inline",
"message": "The specified command description is invalid.",
"why": "The supplied bot command description is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "BOT_COMMAND_INVALID",
"http": 400,
"category": "Bots & Inline",
"message": "The specified command is invalid.",
"why": "The supplied bot command is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "BOT_DOMAIN_INVALID",
"http": 400,
"category": "Bots & Inline",
"message": "Bot domain invalid.",
"why": "The supplied bot domain is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "BOT_GAMES_DISABLED",
"http": 400,
"category": "Bots & Inline",
"message": "Bot games cannot be used in this type of chat.",
"why": "Bot games cannot be used in this type of chat. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "BOT_GROUPS_BLOCKED",
"http": 400,
"category": "Bots & Inline",
"message": "This bot can't be added to groups.",
"why": "This bot can't be added to groups. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "BOT_INLINE_DISABLED",
"http": 400,
"category": "Bots & Inline",
"message": "This bot can't be used in inline mode.",
"why": "This bot can't be used in inline mode. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "BOT_INVALID",
"http": 400,
"category": "Bots & Inline",
"message": "This is not a valid bot.",
"why": "The InputUser does not resolve to a bot — passed a regular user where a bot was required.",
"parameterized": false
},
{
"code": "BOT_METHOD_INVALID",
"http": 400,
"category": "Bots & Inline",
"message": "The API access for bot users is restricted. This method cannot be executed as a bot.",
"why": "The current user is a bot, but the called method is not available to bots (or vice-versa).",
"parameterized": false
},
{
"code": "BOT_MISSING",
"http": 400,
"category": "Bots & Inline",
"message": "Only bots can call this method.",
"why": "A required bot was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "BOT_ONESIDE_NOT_AVAIL",
"http": 400,
"category": "Bots & Inline",
"message": "Bots can't pin messages in PM just for themselves.",
"why": "Bots can't pin messages in PM just for themselves. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "BOT_PAYMENTS_DISABLED",
"http": 400,
"category": "Bots & Inline",
"message": "Please enable bot payments in BotFather before calling this method.",
"why": "Please enable bot payments in BotFather before calling this method. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "BOT_POLLS_DISABLED",
"http": 400,
"category": "Bots & Inline",
"message": "You cannot create polls under a bot account.",
"why": "You cannot create polls under a bot account. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "BOT_SCORE_NOT_MODIFIED",
"http": 400,
"category": "Bots & Inline",
"message": "The score wasn't modified.",
"why": "The request would not change the current bot score — server rejects no-op edits.",
"parameterized": false
},
{
"code": "BOT_WEBVIEW_DISABLED",
"http": 400,
"category": "Bots & Inline",
"message": "A webview cannot be opened in the specified conditions.",
"why": "A webview cannot be opened in the specified conditions. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "INLINE_BOT_REQUIRED",
"http": 400,
"category": "Bots & Inline",
"message": "Only the inline bot can edit message.",
"why": "Only the inline bot can edit message. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "INLINE_RESULT_EXPIRED",
"http": 400,
"category": "Bots & Inline",
"message": "The inline query expired.",
"why": "The inline result has aged out. Request a fresh one and retry.",
"parameterized": false
},
{
"code": "QUERY_ID_EMPTY",
"http": 400,
"category": "Bots & Inline",
"message": "The query ID is empty.",
"why": "A required query id was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "QUERY_ID_INVALID",
"http": 400,
"category": "Bots & Inline",
"message": "The query ID is invalid.",
"why": "The supplied query id is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "START_PARAM_EMPTY",
"http": 400,
"category": "Bots & Inline",
"message": "The start parameter is empty.",
"why": "A required start param was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "START_PARAM_INVALID",
"http": 400,
"category": "Bots & Inline",
"message": "Start parameter invalid.",
"why": "The supplied start param is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "START_PARAM_TOO_LONG",
"http": 400,
"category": "Bots & Inline",
"message": "Start parameter is too long.",
"why": "The start param exceeds the maximum length the server accepts. Shorten it.",
"parameterized": false
},
{
"code": "CALL_ALREADY_ACCEPTED",
"http": 400,
"category": "Calls / Voice / Video",
"message": "The call was already accepted.",
"why": "The call is already accepted; the operation would be a no-op.",
"parameterized": false
},
{
"code": "CALL_ALREADY_DECLINED",
"http": 400,
"category": "Calls / Voice / Video",
"message": "The call was already declined.",
"why": "The call is already declined; the operation would be a no-op.",
"parameterized": false
},
{
"code": "CALL_OCCUPY_FAILED",
"http": 400,
"category": "Calls / Voice / Video",
"message": "The call failed because the user is already making another call.",
"why": "The call failed because the user is already making another call. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CALL_PEER_INVALID",
"http": 400,
"category": "Calls / Voice / Video",
"message": "The provided call peer object is invalid.",
"why": "The supplied call peer is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "CALL_PROTOCOL_COMPAT_LAYER_INVALID",
"http": 400,
"category": "Calls / Voice / Video",
"message": "The other side of the call does not support any of the VoIP protocols supported by the local client.",
"why": "The supplied call protocol compat layer is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "CALL_PROTOCOL_FLAGS_INVALID",
"http": 400,
"category": "Calls / Voice / Video",
"message": "Call protocol flags invalid.",
"why": "The supplied call protocol flags is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "GROUPCALL_ADD_PARTICIPANTS_FAILED",
"http": 400,
"category": "Calls / Voice / Video",
"message": "Failed to add participants to the group call.",
"why": "Failed to add participants to the group call. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "GROUPCALL_ALREADY_DISCARDED",
"http": 400,
"category": "Calls / Voice / Video",
"message": "The group call was already discarded.",
"why": "The groupcall is already discarded; the operation would be a no-op.",
"parameterized": false
},
{
"code": "GROUPCALL_ALREADY_STARTED",
"http": 400,
"category": "Calls / Voice / Video",
"message": "The groupcall has already started, you can join directly.",
"why": "The groupcall is already started; the operation would be a no-op.",
"parameterized": false
},
{
"code": "GROUPCALL_INVALID",
"http": 400,
"category": "Calls / Voice / Video",
"message": "The specified group call is invalid.",
"why": "The supplied groupcall is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "GROUPCALL_JOIN_MISSING",
"http": 400,
"category": "Calls / Voice / Video",
"message": "You haven't joined this group call.",
"why": "A required groupcall join was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "GROUPCALL_NOT_MODIFIED",
"http": 400,
"category": "Calls / Voice / Video",
"message": "Group call settings weren't modified.",
"why": "The request would not change the current groupcall — server rejects no-op edits.",
"parameterized": false
},
{
"code": "GROUPCALL_SSRC_DUPLICATE_MUCH",
"http": 400,
"category": "Calls / Voice / Video",
"message": "The app needs to retry joining the group call with a new SSRC value.",
"why": "The app needs to retry joining the group call with a new SSRC value. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "GROUP_CALL_INVALID",
"http": 400,
"category": "Calls / Voice / Video",
"message": "Group call invalid.",
"why": "The supplied group call is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "BROADCAST_CALLS_DISABLED",
"http": 400,
"category": "Channels & Chats",
"message": "Broadcast calls are disabled for this chat/channel.",
"why": "Broadcast calls are disabled for this chat/channel. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "BROADCAST_ID_INVALID",
"http": 400,
"category": "Channels & Chats",
"message": "Broadcast ID invalid.",
"why": "The supplied broadcast id is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "BROADCAST_REQUIRED",
"http": 400,
"category": "Channels & Chats",
"message": "This method can only be called on a channel.",
"why": "This method can only be called on a channel. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CHANNEL_ADD_INVALID",
"http": 400,
"category": "Channels & Chats",
"message": "The specified channel is invalid.",
"why": "The supplied channel add is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "CHANNEL_FORUM_MISSING",
"http": 400,
"category": "Channels & Chats",
"message": "This supergroup is not a forum.",
"why": "A required channel forum was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "CHANNEL_ID_INVALID",
"http": 400,
"category": "Channels & Chats",
"message": "The specified supergroup ID is invalid.",
"why": "The supplied channel id is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "CHANNEL_INVALID",
"http": 400,
"category": "Channels & Chats",
"message": "The provided channel is invalid.",
"why": "The channel id does not point to a real channel — usually a stale or malformed InputChannel.",
"parameterized": false
},
{
"code": "CHANNEL_PARTICIPANT_MISSING",
"http": 400,
"category": "Channels & Chats",
"message": "The current user is not in the channel.",
"why": "A required channel participant was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "CHANNEL_TOO_BIG",
"http": 400,
"category": "Channels & Chats",
"message": "This channel has too many participants (>1000) to be deleted.",
"why": "This channel has too many participants (>1000) to be deleted. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CHANNEL_TOO_LARGE",
"http": 400,
"category": "Channels & Chats",
"message": "Channel is too large to be deleted.",
"why": "Channel is too large to be deleted. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CHAT_ABOUT_NOT_MODIFIED",
"http": 400,
"category": "Channels & Chats",
"message": "About text has not changed.",
"why": "The request would not change the current chat about — server rejects no-op edits.",
"parameterized": false
},
{
"code": "CHAT_ABOUT_TOO_LONG",
"http": 400,
"category": "Channels & Chats",
"message": "Chat about too long.",
"why": "The chat about exceeds the maximum length the server accepts. Shorten it.",
"parameterized": false
},
{
"code": "CHAT_DISCUSSION_UNALLOWED",
"http": 400,
"category": "Channels & Chats",
"message": "You can't enable forum topics in a discussion group linked to a channel.",
"why": "You can't enable forum topics in a discussion group linked to a channel. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CHAT_GET_FAILED",
"http": 400,
"category": "Channels & Chats",
"message": "Chat retrieval failed.",
"why": "Chat retrieval failed. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CHAT_ID_EMPTY",
"http": 400,
"category": "Channels & Chats",
"message": "The provided chat ID is empty.",
"why": "A required chat id was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "CHAT_ID_GENERATE_FAILED",
"http": 400,
"category": "Channels & Chats",
"message": "Failure while generating the chat ID.",
"why": "Failure while generating the chat ID. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CHAT_ID_INVALID",
"http": 400,
"category": "Channels & Chats",
"message": "The provided chat id is invalid.",
"why": "The supplied chat id is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "CHAT_INVALID",
"http": 400,
"category": "Channels & Chats",
"message": "Invalid chat.",
"why": "The supplied chat is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "CHAT_INVITE_PERMANENT",
"http": 400,
"category": "Channels & Chats",
"message": "You can't set an expiration date on permanent invite links.",
"why": "You can't set an expiration date on permanent invite links. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CHAT_LINK_EXISTS",
"http": 400,
"category": "Channels & Chats",
"message": "The chat is public, you can't hide the history to new users.",
"why": "The chat is public, you can't hide the history to new users. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CHAT_PUBLIC_REQUIRED",
"http": 400,
"category": "Channels & Chats",
"message": "You can only enable join requests in public groups.",
"why": "You can only enable join requests in public groups. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CHAT_REVOKE_DATE_UNSUPPORTED",
"http": 400,
"category": "Channels & Chats",
"message": "Date restrictions are not available for using with non-user peers.",
"why": "Date restrictions are not available for using with non-user peers. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "CHAT_TITLE_EMPTY",
"http": 400,
"category": "Channels & Chats",
"message": "No chat title provided.",
"why": "A required chat title was omitted from the request. Populate it and retry.",
"parameterized": false
},
{
"code": "CHAT_TOO_BIG",
"http": 400,
"category": "Channels & Chats",
"message": "This method is not available for groups that are too big.",
"why": "This method is not available for groups that are too big. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "MEGAGROUP_GEO_REQUIRED",
"http": 400,
"category": "Channels & Chats",
"message": "This method can only be invoked on a geogroup.",
"why": "This method can only be invoked on a geogroup. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "MEGAGROUP_ID_INVALID",
"http": 400,
"category": "Channels & Chats",
"message": "Invalid supergroup ID.",
"why": "The supplied megagroup id is malformed, points to nothing the server recognises, or fails a server-side validity check.",
"parameterized": false
},
{
"code": "MEGAGROUP_PREHISTORY_HIDDEN",
"http": 400,
"category": "Channels & Chats",
"message": "Group with hidden history for new members can't be set as discussion groups.",
"why": "Group with hidden history for new members can't be set as discussion groups. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "MEGAGROUP_REQUIRED",
"http": 400,
"category": "Channels & Chats",
"message": "You can only use this method on a supergroup.",
"why": "You can only use this method on a supergroup. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "ADMINS_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "There are too many admins.",
"why": "The chat already has the maximum number of admins permitted by Telegram. Demote someone before promoting a new admin.",
"parameterized": false
},
{
"code": "BOTS_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "There are too many bots in this chat/channel.",
"why": "The account already has the maximum number of bots allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "BOT_COMMANDS_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "The provided commands are too many.",
"why": "The account already has the maximum number of bot commands allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "CHANNELS_ADMIN_LOCATED_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "The user has reached the limit of public geogroups.",
"why": "The account already has the maximum number of channels admin located allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "CHANNELS_ADMIN_PUBLIC_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "You're admin of too many public channels, make some channels private to change the username of this channel.",
"why": "The account already has the maximum number of channels admin public allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "INVITES_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "The maximum number of per-folder invites was reached.",
"why": "The account already has the maximum number of invites allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "OPTIONS_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "Too many options provided.",
"why": "The account already has the maximum number of options allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "PINNED_DIALOGS_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "Too many pinned dialogs.",
"why": "The account already has the maximum number of pinned dialogs allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "QUIZ_CORRECT_ANSWERS_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "You specified too many correct answers in a quiz, quizzes can only have one right answer!",
"why": "The account already has the maximum number of quiz correct answers allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "RESULTS_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "Too many results were provided.",
"why": "The account already has the maximum number of results allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "SCHEDULE_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "There are too many scheduled messages.",
"why": "The account already has the maximum number of schedule allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "SLOWMODE_MULTI_MSGS_DISABLED",
"http": 400,
"category": "Flood / Rate limits",
"message": "Slowmode is enabled, you cannot forward multiple messages to this group.",
"why": "Slowmode is enabled, you cannot forward multiple messages to this group. Treated by gogram as a regular API error; inspect ErrResponseCode.Message for the exact code.",
"parameterized": false
},
{
"code": "SLOWMODE_WAIT_X",
"http": 400,
"category": "Flood / Rate limits",
"message": "Slowmode is enabled in this chat: wait %v seconds before sending another message to this chat.",
"why": "Slow-mode is enabled in this chat; the bot/user must wait the given number of seconds before sending another message there.",
"parameterized": true
},
{
"code": "STICKERPACK_STICKERS_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "There are too many stickers in this stickerpack, you can't add any more.",
"why": "The account already has the maximum number of stickerpack stickers allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "STICKERS_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "There are too many stickers in this stickerpack, you can't add any more.",
"why": "The account already has the maximum number of stickers allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "STORIES_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "You have hit the maximum active stories limit; you should buy a Premium subscription or wait for the oldest story to expire.",
"why": "The account already has the maximum number of stories allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "USERNAMES_ACTIVE_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "The maximum number of active usernames was reached.",
"why": "The account already has the maximum number of usernames active allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "USERS_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "The maximum number of users has been exceeded.",
"why": "The account already has the maximum number of users allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "USER_CHANNELS_TOO_MUCH",
"http": 400,
"category": "Flood / Rate limits",
"message": "One of the users you tried to add is already in too many channels/supergroups.",
"why": "The account already has the maximum number of user channels allowed. Remove some before adding more.",
"parameterized": false
},
{
"code": "FILTER_ID_INVALID",
"http": 400,
"category": "Folders / Filters",
"message": "The specified filter ID is invalid.",
"why": "The supplied filter id is malformed, points to nothing the server recognises, or fails a server-side validity check.",