|
1407 | 1407 | "payments.getPaymentForm",
|
1408 | 1408 | "payments.getPaymentReceipt",
|
1409 | 1409 | "payments.getSavedInfo",
|
1410 |
| - "payments.requestRecurringPayment", |
1411 | 1410 | "payments.sendPaymentForm",
|
1412 | 1411 | "payments.validateRequestedInfo",
|
1413 | 1412 | "phone.acceptCall",
|
|
11236 | 11235 | },
|
11237 | 11236 | "restore": {
|
11238 | 11237 | "name": "restore",
|
11239 |
| - "description": " " |
| 11238 | + "description": "Pass true if this is a restore of a Telegram Premium purchase; only for the App Store" |
11240 | 11239 | }
|
11241 | 11240 | }
|
11242 | 11241 | },
|
|
28560 | 28559 | "type": "AUTH_TOKEN_ALREADY_ACCEPTED",
|
28561 | 28560 | "description": "The specified auth token was already accepted."
|
28562 | 28561 | },
|
| 28562 | + { |
| 28563 | + "code": 400, |
| 28564 | + "type": "AUTH_TOKEN_EXCEPTION", |
| 28565 | + "description": "An error occurred while importing the auth token." |
| 28566 | + }, |
28563 | 28567 | {
|
28564 | 28568 | "code": 400,
|
28565 | 28569 | "type": "AUTH_TOKEN_EXPIRED",
|
|
29404 | 29408 | "errors": [
|
29405 | 29409 | {
|
29406 | 29410 | "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." |
29408 | 29413 | }
|
29409 | 29414 | ],
|
29410 | 29415 | "bot_can_use": true
|
|
29461 | 29466 | "errors": [
|
29462 | 29467 | {
|
29463 | 29468 | "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." |
29465 | 29471 | }
|
29466 | 29472 | ],
|
29467 | 29473 | "bot_can_use": true
|
|
29481 | 29487 | "description": "User ID"
|
29482 | 29488 | }
|
29483 | 29489 | },
|
| 29490 | + "errors": [ |
| 29491 | + { |
| 29492 | + "code": 400, |
| 29493 | + "type": "BUTTON_TEXT_INVALID", |
| 29494 | + "description": "The specified button text is invalid." |
| 29495 | + } |
| 29496 | + ], |
29484 | 29497 | "bot_can_use": true
|
29485 | 29498 | },
|
29486 | 29499 | "channels.checkUsername": {
|
|
31003 | 31016 | "type": "INVITE_REQUEST_SENT",
|
31004 | 31017 | "description": "You have successfully requested to join this chat or channel."
|
31005 | 31018 | },
|
31006 |
| - { |
31007 |
| - "code": 500, |
31008 |
| - "type": "MEMBER_CHAT_ADD_FAILED" |
31009 |
| - }, |
31010 | 31019 | {
|
31011 | 31020 | "code": 400,
|
31012 | 31021 | "type": "MSG_ID_INVALID",
|
|
31334 | 31343 | "name": "enabled",
|
31335 | 31344 | "description": "Toggle"
|
31336 | 31345 | }
|
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 | + ] |
31338 | 31354 | },
|
31339 | 31355 | "channels.togglePreHistoryHidden": {
|
31340 | 31356 | "name": "channels.togglePreHistoryHidden",
|
|
31986 | 32002 | "name": "phone",
|
31987 | 32003 | "description": "Phone number in international format, possibly obtained from a t.me/+number or tg://resolve?phone=number URI."
|
31988 | 32004 | }
|
31989 |
| - }, |
31990 |
| - "errors": [ |
31991 |
| - { |
31992 |
| - "code": 400, |
31993 |
| - "type": "PHONE_NOT_OCCUPIED" |
31994 |
| - } |
31995 |
| - ] |
| 32005 | + } |
31996 | 32006 | },
|
31997 | 32007 | "contacts.resolveUsername": {
|
31998 | 32008 | "name": "contacts.resolveUsername",
|
|
36271 | 36281 | "errors": [
|
36272 | 36282 | {
|
36273 | 36283 | "code": 400,
|
36274 |
| - "type": "EMOTICON_STICKERPACK_MISSING" |
| 36284 | + "type": "EMOTICON_STICKERPACK_MISSING", |
| 36285 | + "description": "inputStickerSetDice.emoji cannot be empty." |
36275 | 36286 | },
|
36276 | 36287 | {
|
36277 | 36288 | "code": 406,
|
|
38230 | 38241 | "type": "USER_BANNED_IN_CHANNEL",
|
38231 | 38242 | "description": "You're banned from sending messages in supergroups/channels."
|
38232 | 38243 | },
|
| 38244 | + { |
| 38245 | + "code": 400, |
| 38246 | + "type": "VOICE_MESSAGES_FORBIDDEN", |
| 38247 | + "description": "This user's privacy settings forbid you from sending voice messages." |
| 38248 | + }, |
38233 | 38249 | {
|
38234 | 38250 | "code": 400,
|
38235 | 38251 | "type": "WEBPAGE_CURL_FAILED",
|
|
38374 | 38390 | },
|
38375 | 38391 | {
|
38376 | 38392 | "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." |
38378 | 38395 | },
|
38379 | 38396 | {
|
38380 | 38397 | "code": 400,
|
|
38451 | 38468 | "type": "FILE_REFERENCE_EXPIRED",
|
38452 | 38469 | "description": "File reference expired, it must be refetched as described in the documentation."
|
38453 | 38470 | },
|
38454 |
| - { |
38455 |
| - "code": 500, |
38456 |
| - "type": "FILE_WRITE_FAILED" |
38457 |
| - }, |
38458 | 38471 | {
|
38459 | 38472 | "code": 400,
|
38460 | 38473 | "type": "GAME_BOT_INVALID",
|
|
38785 | 38798 | },
|
38786 | 38799 | {
|
38787 | 38800 | "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." |
38789 | 38803 | },
|
38790 | 38804 | {
|
38791 | 38805 | "code": 400,
|
|
39854 | 39868 | },
|
39855 | 39869 | {
|
39856 | 39870 | "code": 400,
|
39857 |
| - "type": "RESULT_ID_INVALID" |
| 39871 | + "type": "RESULT_ID_INVALID", |
| 39872 | + "description": "One of the specified result IDs is invalid." |
39858 | 39873 | },
|
39859 | 39874 | {
|
39860 | 39875 | "code": 400,
|
|
40889 | 40904 | "Get saved payment information"
|
40890 | 40905 | ]
|
40891 | 40906 | },
|
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 |
| - }, |
40909 | 40907 | "payments.sendPaymentForm": {
|
40910 | 40908 | "name": "payments.sendPaymentForm",
|
40911 | 40909 | "description": [
|
|
41164 | 41162 | },
|
41165 | 41163 | {
|
41166 | 41164 | "code": 400,
|
41167 |
| - "type": "CREATE_CALL_FAILED" |
| 41165 | + "type": "CREATE_CALL_FAILED", |
| 41166 | + "description": "An error occurred while creating the call." |
41168 | 41167 | },
|
41169 | 41168 | {
|
41170 | 41169 | "code": 400,
|
|
41587 | 41586 | "type": "DATA_JSON_INVALID",
|
41588 | 41587 | "description": "The provided JSON data is invalid."
|
41589 | 41588 | },
|
41590 |
| - { |
41591 |
| - "code": 500, |
41592 |
| - "type": "GROUPCALL_ADD_PARTICIPANTS_FAILED" |
41593 |
| - }, |
41594 | 41589 | {
|
41595 | 41590 | "code": 403,
|
41596 | 41591 | "type": "GROUPCALL_FORBIDDEN",
|
|
41736 | 41731 | "type": "INPUT_USER_DEACTIVATED",
|
41737 | 41732 | "description": "The specified user was deleted."
|
41738 | 41733 | },
|
41739 |
| - { |
41740 |
| - "code": 500, |
41741 |
| - "type": "PARTICIPANT_CALL_FAILED", |
41742 |
| - "description": "Failure while making call." |
41743 |
| - }, |
41744 | 41734 | {
|
41745 | 41735 | "code": 400,
|
41746 | 41736 | "type": "PARTICIPANT_VERSION_OUTDATED",
|
|
43101 | 43091 | "type": "MSG_ID_INVALID",
|
43102 | 43092 | "description": "Invalid message ID provided."
|
43103 | 43093 | },
|
43104 |
| - { |
43105 |
| - "code": 403, |
43106 |
| - "type": "MTPROTO_CLUSTER_INVALID" |
43107 |
| - }, |
43108 | 43094 | {
|
43109 | 43095 | "code": 400,
|
43110 | 43096 | "type": "OFFSET_INVALID",
|
|
43486 | 43472 | "type": "AUTH_TOKEN_ALREADY_ACCEPTED",
|
43487 | 43473 | "description": "The specified auth token was already accepted."
|
43488 | 43474 | },
|
| 43475 | + "AUTH_TOKEN_EXCEPTION": { |
| 43476 | + "code": 400, |
| 43477 | + "type": "AUTH_TOKEN_EXCEPTION", |
| 43478 | + "description": "An error occurred while importing the auth token." |
| 43479 | + }, |
43489 | 43480 | "AUTH_TOKEN_EXPIRED": {
|
43490 | 43481 | "code": 400,
|
43491 | 43482 | "type": "AUTH_TOKEN_EXPIRED",
|
|
43610 | 43601 | "type": "BUTTON_DATA_INVALID",
|
43611 | 43602 | "description": "The data of one or more of the buttons you provided is invalid."
|
43612 | 43603 | },
|
| 43604 | + "BUTTON_TEXT_INVALID": { |
| 43605 | + "code": 400, |
| 43606 | + "type": "BUTTON_TEXT_INVALID", |
| 43607 | + "description": "The specified button text is invalid." |
| 43608 | + }, |
43613 | 43609 | "BUTTON_TYPE_INVALID": {
|
43614 | 43610 | "code": 400,
|
43615 | 43611 | "type": "BUTTON_TYPE_INVALID",
|
|
43734 | 43730 | },
|
43735 | 43731 | "CHAT_GUEST_SEND_FORBIDDEN": {
|
43736 | 43732 | "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." |
43738 | 43735 | },
|
43739 | 43736 | "CHAT_ID_EMPTY": {
|
43740 | 43737 | "code": 400,
|
|
43876 | 43873 | },
|
43877 | 43874 | "CREATE_CALL_FAILED": {
|
43878 | 43875 | "code": 400,
|
43879 |
| - "type": "CREATE_CALL_FAILED" |
| 43876 | + "type": "CREATE_CALL_FAILED", |
| 43877 | + "description": "An error occurred while creating the call." |
43880 | 43878 | },
|
43881 | 43879 | "CURRENCY_TOTAL_AMOUNT_INVALID": {
|
43882 | 43880 | "code": 400,
|
|
43970 | 43968 | },
|
43971 | 43969 | "EMOTICON_STICKERPACK_MISSING": {
|
43972 | 43970 | "code": 400,
|
43973 |
| - "type": "EMOTICON_STICKERPACK_MISSING" |
| 43971 | + "type": "EMOTICON_STICKERPACK_MISSING", |
| 43972 | + "description": "inputStickerSetDice.emoji cannot be empty." |
43974 | 43973 | },
|
43975 | 43974 | "ENCRYPTED_MESSAGE_INVALID": {
|
43976 | 43975 | "code": 400,
|
|
44107 | 44106 | "type": "FILE_TITLE_EMPTY",
|
44108 | 44107 | "description": "An empty file title was specified."
|
44109 | 44108 | },
|
44110 |
| - "FILE_WRITE_FAILED": { |
44111 |
| - "code": 500, |
44112 |
| - "type": "FILE_WRITE_FAILED" |
44113 |
| - }, |
44114 | 44109 | "FILTER_ID_INVALID": {
|
44115 | 44110 | "code": 400,
|
44116 | 44111 | "type": "FILTER_ID_INVALID",
|
|
44206 | 44201 | "type": "GRAPH_OUTDATED_RELOAD",
|
44207 | 44202 | "description": "The graph is outdated, please get a new async token using stats.getBroadcastStats."
|
44208 | 44203 | },
|
44209 |
| - "GROUPCALL_ADD_PARTICIPANTS_FAILED": { |
44210 |
| - "code": 500, |
44211 |
| - "type": "GROUPCALL_ADD_PARTICIPANTS_FAILED" |
44212 |
| - }, |
44213 | 44204 | "GROUPCALL_ALREADY_DISCARDED": {
|
44214 | 44205 | "code": 400,
|
44215 | 44206 | "type": "GROUPCALL_ALREADY_DISCARDED",
|
|
44434 | 44425 | "type": "MEGAGROUP_REQUIRED",
|
44435 | 44426 | "description": "You can only use this method on a supergroup."
|
44436 | 44427 | },
|
44437 |
| - "MEMBER_CHAT_ADD_FAILED": { |
44438 |
| - "code": 500, |
44439 |
| - "type": "MEMBER_CHAT_ADD_FAILED" |
44440 |
| - }, |
44441 | 44428 | "MESSAGE_AUTHOR_REQUIRED": {
|
44442 | 44429 | "code": 403,
|
44443 | 44430 | "type": "MESSAGE_AUTHOR_REQUIRED",
|
|
44498 | 44485 | "type": "MSG_WAIT_FAILED",
|
44499 | 44486 | "description": "A waiting call returned an error."
|
44500 | 44487 | },
|
44501 |
| - "MTPROTO_CLUSTER_INVALID": { |
44502 |
| - "code": 403, |
44503 |
| - "type": "MTPROTO_CLUSTER_INVALID" |
44504 |
| - }, |
44505 | 44488 | "MULTI_MEDIA_TOO_LONG": {
|
44506 | 44489 | "code": 400,
|
44507 | 44490 | "type": "MULTI_MEDIA_TOO_LONG",
|
|
44567 | 44550 | "type": "PARTICIPANTS_TOO_FEW",
|
44568 | 44551 | "description": "Not enough participants."
|
44569 | 44552 | },
|
44570 |
| - "PARTICIPANT_CALL_FAILED": { |
44571 |
| - "code": 500, |
44572 |
| - "type": "PARTICIPANT_CALL_FAILED", |
44573 |
| - "description": "Failure while making call." |
44574 |
| - }, |
44575 | 44553 | "PARTICIPANT_ID_INVALID": {
|
44576 | 44554 | "code": 400,
|
44577 | 44555 | "type": "PARTICIPANT_ID_INVALID",
|
|
44676 | 44654 | "type": "PHONE_CODE_INVALID",
|
44677 | 44655 | "description": "The provided phone code is invalid."
|
44678 | 44656 | },
|
44679 |
| - "PHONE_NOT_OCCUPIED": { |
44680 |
| - "code": 400, |
44681 |
| - "type": "PHONE_NOT_OCCUPIED" |
44682 |
| - }, |
44683 | 44657 | "PHONE_NUMBER_APP_SIGNUP_FORBIDDEN": {
|
44684 | 44658 | "code": 400,
|
44685 | 44659 | "type": "PHONE_NUMBER_APP_SIGNUP_FORBIDDEN",
|
|
44957 | 44931 | },
|
44958 | 44932 | "RESULT_ID_INVALID": {
|
44959 | 44933 | "code": 400,
|
44960 |
| - "type": "RESULT_ID_INVALID" |
| 44934 | + "type": "RESULT_ID_INVALID", |
| 44935 | + "description": "One of the specified result IDs is invalid." |
44961 | 44936 | },
|
44962 | 44937 | "RESULT_TYPE_INVALID": {
|
44963 | 44938 | "code": 400,
|
|
44971 | 44946 | },
|
44972 | 44947 | "RIGHTS_NOT_MODIFIED": {
|
44973 | 44948 | "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." |
44975 | 44951 | },
|
44976 | 44952 | "RIGHT_FORBIDDEN": {
|
44977 | 44953 | "code": 403,
|
|
45491 | 45467 | "type": "VIDEO_TITLE_EMPTY",
|
45492 | 45468 | "description": "The specified video title is empty."
|
45493 | 45469 | },
|
| 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 | + }, |
45494 | 45475 | "WALLPAPER_FILE_INVALID": {
|
45495 | 45476 | "code": 400,
|
45496 | 45477 | "type": "WALLPAPER_FILE_INVALID",
|
|
0 commit comments