Skip to content

Commit 3fddf90

Browse files
Merge pull request #74 from gotd/feat/update-schema
feat(schema): update documentation to the latest layer
2 parents 9e8fc38 + 17dba3d commit 3fddf90

File tree

2 files changed

+132
-170
lines changed

2 files changed

+132
-170
lines changed

_schema/144.json

Lines changed: 66 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,6 @@
14071407
"payments.getPaymentForm",
14081408
"payments.getPaymentReceipt",
14091409
"payments.getSavedInfo",
1410-
"payments.requestRecurringPayment",
14111410
"payments.sendPaymentForm",
14121411
"payments.validateRequestedInfo",
14131412
"phone.acceptCall",
@@ -11236,7 +11235,7 @@
1123611235
},
1123711236
"restore": {
1123811237
"name": "restore",
11239-
"description": " "
11238+
"description": "Pass true if this is a restore of a Telegram Premium purchase; only for the App Store"
1124011239
}
1124111240
}
1124211241
},
@@ -28560,6 +28559,11 @@
2856028559
"type": "AUTH_TOKEN_ALREADY_ACCEPTED",
2856128560
"description": "The specified auth token was already accepted."
2856228561
},
28562+
{
28563+
"code": 400,
28564+
"type": "AUTH_TOKEN_EXCEPTION",
28565+
"description": "An error occurred while importing the auth token."
28566+
},
2856328567
{
2856428568
"code": 400,
2856528569
"type": "AUTH_TOKEN_EXPIRED",
@@ -29404,7 +29408,8 @@
2940429408
"errors": [
2940529409
{
2940629410
"code": 400,
29407-
"type": "RIGHTS_NOT_MODIFIED"
29411+
"type": "RIGHTS_NOT_MODIFIED",
29412+
"description": "The new admin rights are equal to the old rights, no change was made."
2940829413
}
2940929414
],
2941029415
"bot_can_use": true
@@ -29461,7 +29466,8 @@
2946129466
"errors": [
2946229467
{
2946329468
"code": 400,
29464-
"type": "RIGHTS_NOT_MODIFIED"
29469+
"type": "RIGHTS_NOT_MODIFIED",
29470+
"description": "The new admin rights are equal to the old rights, no change was made."
2946529471
}
2946629472
],
2946729473
"bot_can_use": true
@@ -29481,6 +29487,13 @@
2948129487
"description": "User ID"
2948229488
}
2948329489
},
29490+
"errors": [
29491+
{
29492+
"code": 400,
29493+
"type": "BUTTON_TEXT_INVALID",
29494+
"description": "The specified button text is invalid."
29495+
}
29496+
],
2948429497
"bot_can_use": true
2948529498
},
2948629499
"channels.checkUsername": {
@@ -31003,10 +31016,6 @@
3100331016
"type": "INVITE_REQUEST_SENT",
3100431017
"description": "You have successfully requested to join this chat or channel."
3100531018
},
31006-
{
31007-
"code": 500,
31008-
"type": "MEMBER_CHAT_ADD_FAILED"
31009-
},
3101031019
{
3101131020
"code": 400,
3101231021
"type": "MSG_ID_INVALID",
@@ -31334,7 +31343,14 @@
3133431343
"name": "enabled",
3133531344
"description": "Toggle"
3133631345
}
31337-
}
31346+
},
31347+
"errors": [
31348+
{
31349+
"code": 400,
31350+
"type": "CHAT_ADMIN_REQUIRED",
31351+
"description": "You must be an admin in this chat to do this."
31352+
}
31353+
]
3133831354
},
3133931355
"channels.togglePreHistoryHidden": {
3134031356
"name": "channels.togglePreHistoryHidden",
@@ -31986,13 +32002,7 @@
3198632002
"name": "phone",
3198732003
"description": "Phone number in international format, possibly obtained from a t.me/+number or tg://resolve?phone=number URI."
3198832004
}
31989-
},
31990-
"errors": [
31991-
{
31992-
"code": 400,
31993-
"type": "PHONE_NOT_OCCUPIED"
31994-
}
31995-
]
32005+
}
3199632006
},
3199732007
"contacts.resolveUsername": {
3199832008
"name": "contacts.resolveUsername",
@@ -36271,7 +36281,8 @@
3627136281
"errors": [
3627236282
{
3627336283
"code": 400,
36274-
"type": "EMOTICON_STICKERPACK_MISSING"
36284+
"type": "EMOTICON_STICKERPACK_MISSING",
36285+
"description": "inputStickerSetDice.emoji cannot be empty."
3627536286
},
3627636287
{
3627736288
"code": 406,
@@ -38230,6 +38241,11 @@
3823038241
"type": "USER_BANNED_IN_CHANNEL",
3823138242
"description": "You're banned from sending messages in supergroups/channels."
3823238243
},
38244+
{
38245+
"code": 400,
38246+
"type": "VOICE_MESSAGES_FORBIDDEN",
38247+
"description": "This user's privacy settings forbid you from sending voice messages."
38248+
},
3823338249
{
3823438250
"code": 400,
3823538251
"type": "WEBPAGE_CURL_FAILED",
@@ -38374,7 +38390,8 @@
3837438390
},
3837538391
{
3837638392
"code": 403,
38377-
"type": "CHAT_GUEST_SEND_FORBIDDEN"
38393+
"type": "CHAT_GUEST_SEND_FORBIDDEN",
38394+
"description": "You join the discussion group before commenting, see here » for more info."
3837838395
},
3837938396
{
3838038397
"code": 400,
@@ -38451,10 +38468,6 @@
3845138468
"type": "FILE_REFERENCE_EXPIRED",
3845238469
"description": "File reference expired, it must be refetched as described in the documentation."
3845338470
},
38454-
{
38455-
"code": 500,
38456-
"type": "FILE_WRITE_FAILED"
38457-
},
3845838471
{
3845938472
"code": 400,
3846038473
"type": "GAME_BOT_INVALID",
@@ -38785,7 +38798,8 @@
3878538798
},
3878638799
{
3878738800
"code": 403,
38788-
"type": "CHAT_GUEST_SEND_FORBIDDEN"
38801+
"type": "CHAT_GUEST_SEND_FORBIDDEN",
38802+
"description": "You join the discussion group before commenting, see here » for more info."
3878938803
},
3879038804
{
3879138805
"code": 400,
@@ -39854,7 +39868,8 @@
3985439868
},
3985539869
{
3985639870
"code": 400,
39857-
"type": "RESULT_ID_INVALID"
39871+
"type": "RESULT_ID_INVALID",
39872+
"description": "One of the specified result IDs is invalid."
3985839873
},
3985939874
{
3986039875
"code": 400,
@@ -40889,23 +40904,6 @@
4088940904
"Get saved payment information"
4089040905
]
4089140906
},
40892-
"payments.requestRecurringPayment": {
40893-
"name": "payments.requestRecurringPayment",
40894-
"parameters": {
40895-
"invoice_media": {
40896-
"name": "invoice_media",
40897-
"description": " "
40898-
},
40899-
"recurring_init_charge": {
40900-
"name": "recurring_init_charge",
40901-
"description": " "
40902-
},
40903-
"user_id": {
40904-
"name": "user_id",
40905-
"description": " "
40906-
}
40907-
}
40908-
},
4090940907
"payments.sendPaymentForm": {
4091040908
"name": "payments.sendPaymentForm",
4091140909
"description": [
@@ -41164,7 +41162,8 @@
4116441162
},
4116541163
{
4116641164
"code": 400,
41167-
"type": "CREATE_CALL_FAILED"
41165+
"type": "CREATE_CALL_FAILED",
41166+
"description": "An error occurred while creating the call."
4116841167
},
4116941168
{
4117041169
"code": 400,
@@ -41587,10 +41586,6 @@
4158741586
"type": "DATA_JSON_INVALID",
4158841587
"description": "The provided JSON data is invalid."
4158941588
},
41590-
{
41591-
"code": 500,
41592-
"type": "GROUPCALL_ADD_PARTICIPANTS_FAILED"
41593-
},
4159441589
{
4159541590
"code": 403,
4159641591
"type": "GROUPCALL_FORBIDDEN",
@@ -41736,11 +41731,6 @@
4173641731
"type": "INPUT_USER_DEACTIVATED",
4173741732
"description": "The specified user was deleted."
4173841733
},
41739-
{
41740-
"code": 500,
41741-
"type": "PARTICIPANT_CALL_FAILED",
41742-
"description": "Failure while making call."
41743-
},
4174441734
{
4174541735
"code": 400,
4174641736
"type": "PARTICIPANT_VERSION_OUTDATED",
@@ -43101,10 +43091,6 @@
4310143091
"type": "MSG_ID_INVALID",
4310243092
"description": "Invalid message ID provided."
4310343093
},
43104-
{
43105-
"code": 403,
43106-
"type": "MTPROTO_CLUSTER_INVALID"
43107-
},
4310843094
{
4310943095
"code": 400,
4311043096
"type": "OFFSET_INVALID",
@@ -43486,6 +43472,11 @@
4348643472
"type": "AUTH_TOKEN_ALREADY_ACCEPTED",
4348743473
"description": "The specified auth token was already accepted."
4348843474
},
43475+
"AUTH_TOKEN_EXCEPTION": {
43476+
"code": 400,
43477+
"type": "AUTH_TOKEN_EXCEPTION",
43478+
"description": "An error occurred while importing the auth token."
43479+
},
4348943480
"AUTH_TOKEN_EXPIRED": {
4349043481
"code": 400,
4349143482
"type": "AUTH_TOKEN_EXPIRED",
@@ -43610,6 +43601,11 @@
4361043601
"type": "BUTTON_DATA_INVALID",
4361143602
"description": "The data of one or more of the buttons you provided is invalid."
4361243603
},
43604+
"BUTTON_TEXT_INVALID": {
43605+
"code": 400,
43606+
"type": "BUTTON_TEXT_INVALID",
43607+
"description": "The specified button text is invalid."
43608+
},
4361343609
"BUTTON_TYPE_INVALID": {
4361443610
"code": 400,
4361543611
"type": "BUTTON_TYPE_INVALID",
@@ -43734,7 +43730,8 @@
4373443730
},
4373543731
"CHAT_GUEST_SEND_FORBIDDEN": {
4373643732
"code": 403,
43737-
"type": "CHAT_GUEST_SEND_FORBIDDEN"
43733+
"type": "CHAT_GUEST_SEND_FORBIDDEN",
43734+
"description": "You join the discussion group before commenting, see here » for more info."
4373843735
},
4373943736
"CHAT_ID_EMPTY": {
4374043737
"code": 400,
@@ -43876,7 +43873,8 @@
4387643873
},
4387743874
"CREATE_CALL_FAILED": {
4387843875
"code": 400,
43879-
"type": "CREATE_CALL_FAILED"
43876+
"type": "CREATE_CALL_FAILED",
43877+
"description": "An error occurred while creating the call."
4388043878
},
4388143879
"CURRENCY_TOTAL_AMOUNT_INVALID": {
4388243880
"code": 400,
@@ -43970,7 +43968,8 @@
4397043968
},
4397143969
"EMOTICON_STICKERPACK_MISSING": {
4397243970
"code": 400,
43973-
"type": "EMOTICON_STICKERPACK_MISSING"
43971+
"type": "EMOTICON_STICKERPACK_MISSING",
43972+
"description": "inputStickerSetDice.emoji cannot be empty."
4397443973
},
4397543974
"ENCRYPTED_MESSAGE_INVALID": {
4397643975
"code": 400,
@@ -44107,10 +44106,6 @@
4410744106
"type": "FILE_TITLE_EMPTY",
4410844107
"description": "An empty file title was specified."
4410944108
},
44110-
"FILE_WRITE_FAILED": {
44111-
"code": 500,
44112-
"type": "FILE_WRITE_FAILED"
44113-
},
4411444109
"FILTER_ID_INVALID": {
4411544110
"code": 400,
4411644111
"type": "FILTER_ID_INVALID",
@@ -44206,10 +44201,6 @@
4420644201
"type": "GRAPH_OUTDATED_RELOAD",
4420744202
"description": "The graph is outdated, please get a new async token using stats.getBroadcastStats."
4420844203
},
44209-
"GROUPCALL_ADD_PARTICIPANTS_FAILED": {
44210-
"code": 500,
44211-
"type": "GROUPCALL_ADD_PARTICIPANTS_FAILED"
44212-
},
4421344204
"GROUPCALL_ALREADY_DISCARDED": {
4421444205
"code": 400,
4421544206
"type": "GROUPCALL_ALREADY_DISCARDED",
@@ -44434,10 +44425,6 @@
4443444425
"type": "MEGAGROUP_REQUIRED",
4443544426
"description": "You can only use this method on a supergroup."
4443644427
},
44437-
"MEMBER_CHAT_ADD_FAILED": {
44438-
"code": 500,
44439-
"type": "MEMBER_CHAT_ADD_FAILED"
44440-
},
4444144428
"MESSAGE_AUTHOR_REQUIRED": {
4444244429
"code": 403,
4444344430
"type": "MESSAGE_AUTHOR_REQUIRED",
@@ -44498,10 +44485,6 @@
4449844485
"type": "MSG_WAIT_FAILED",
4449944486
"description": "A waiting call returned an error."
4450044487
},
44501-
"MTPROTO_CLUSTER_INVALID": {
44502-
"code": 403,
44503-
"type": "MTPROTO_CLUSTER_INVALID"
44504-
},
4450544488
"MULTI_MEDIA_TOO_LONG": {
4450644489
"code": 400,
4450744490
"type": "MULTI_MEDIA_TOO_LONG",
@@ -44567,11 +44550,6 @@
4456744550
"type": "PARTICIPANTS_TOO_FEW",
4456844551
"description": "Not enough participants."
4456944552
},
44570-
"PARTICIPANT_CALL_FAILED": {
44571-
"code": 500,
44572-
"type": "PARTICIPANT_CALL_FAILED",
44573-
"description": "Failure while making call."
44574-
},
4457544553
"PARTICIPANT_ID_INVALID": {
4457644554
"code": 400,
4457744555
"type": "PARTICIPANT_ID_INVALID",
@@ -44676,10 +44654,6 @@
4467644654
"type": "PHONE_CODE_INVALID",
4467744655
"description": "The provided phone code is invalid."
4467844656
},
44679-
"PHONE_NOT_OCCUPIED": {
44680-
"code": 400,
44681-
"type": "PHONE_NOT_OCCUPIED"
44682-
},
4468344657
"PHONE_NUMBER_APP_SIGNUP_FORBIDDEN": {
4468444658
"code": 400,
4468544659
"type": "PHONE_NUMBER_APP_SIGNUP_FORBIDDEN",
@@ -44957,7 +44931,8 @@
4495744931
},
4495844932
"RESULT_ID_INVALID": {
4495944933
"code": 400,
44960-
"type": "RESULT_ID_INVALID"
44934+
"type": "RESULT_ID_INVALID",
44935+
"description": "One of the specified result IDs is invalid."
4496144936
},
4496244937
"RESULT_TYPE_INVALID": {
4496344938
"code": 400,
@@ -44971,7 +44946,8 @@
4497144946
},
4497244947
"RIGHTS_NOT_MODIFIED": {
4497344948
"code": 400,
44974-
"type": "RIGHTS_NOT_MODIFIED"
44949+
"type": "RIGHTS_NOT_MODIFIED",
44950+
"description": "The new admin rights are equal to the old rights, no change was made."
4497544951
},
4497644952
"RIGHT_FORBIDDEN": {
4497744953
"code": 403,
@@ -45491,6 +45467,11 @@
4549145467
"type": "VIDEO_TITLE_EMPTY",
4549245468
"description": "The specified video title is empty."
4549345469
},
45470+
"VOICE_MESSAGES_FORBIDDEN": {
45471+
"code": 400,
45472+
"type": "VOICE_MESSAGES_FORBIDDEN",
45473+
"description": "This user's privacy settings forbid you from sending voice messages."
45474+
},
4549445475
"WALLPAPER_FILE_INVALID": {
4549545476
"code": 400,
4549645477
"type": "WALLPAPER_FILE_INVALID",

0 commit comments

Comments
 (0)