|
68755 | 68755 | "description": "You do not have the rights to do this."
|
68756 | 68756 | },
|
68757 | 68757 | "CHAT_ADMIN_REQUIRED": {
|
68758 |
| - "code": 400, |
| 68758 | + "code": 403, |
68759 | 68759 | "type": "CHAT_ADMIN_REQUIRED",
|
68760 | 68760 | "description": "You must be an admin in this chat to do this."
|
68761 | 68761 | },
|
|
68790 | 68790 | "description": "The provided chat id is invalid."
|
68791 | 68791 | },
|
68792 | 68792 | "CHAT_INVALID": {
|
68793 |
| - "code": 400, |
| 68793 | + "code": 500, |
68794 | 68794 | "type": "CHAT_INVALID",
|
68795 | 68795 | "description": "Invalid chat."
|
68796 | 68796 | },
|
|
69800 | 69800 | "description": "chat_read_mark_expire_period seconds have passed since the message was sent, read receipts were deleted."
|
69801 | 69801 | },
|
69802 | 69802 | "MSG_WAIT_FAILED": {
|
69803 |
| - "code": 500, |
| 69803 | + "code": 400, |
69804 | 69804 | "type": "MSG_WAIT_FAILED",
|
69805 | 69805 | "description": "A waiting call returned an error."
|
69806 | 69806 | },
|
|
70030 | 70030 | "description": "You asked for the code too many times."
|
70031 | 70031 | },
|
70032 | 70032 | "PHONE_NUMBER_INVALID": {
|
70033 |
| - "code": 400, |
| 70033 | + "code": 406, |
70034 | 70034 | "type": "PHONE_NUMBER_INVALID",
|
70035 | 70035 | "description": "The phone number is invalid."
|
70036 | 70036 | },
|
|
70150 | 70150 | "description": "Cast a vote in the poll before calling this method."
|
70151 | 70151 | },
|
70152 | 70152 | "PREMIUM_ACCOUNT_REQUIRED": {
|
70153 |
| - "code": 403, |
| 70153 | + "code": 400, |
70154 | 70154 | "type": "PREMIUM_ACCOUNT_REQUIRED",
|
70155 | 70155 | "description": "A premium account is required to execute this action."
|
70156 | 70156 | },
|
|
70630 | 70630 | "description": "There are too many stickers in this stickerpack, you can't add any more."
|
70631 | 70631 | },
|
70632 | 70632 | "STICKERSET_INVALID": {
|
70633 |
| - "code": 400, |
| 70633 | + "code": 406, |
70634 | 70634 | "type": "STICKERSET_INVALID",
|
70635 | 70635 | "description": "The provided sticker set is invalid."
|
70636 | 70636 | },
|
|
70802 | 70802 | "TAKEOUT_REQUIRED": {
|
70803 | 70803 | "code": 403,
|
70804 | 70804 | "type": "TAKEOUT_REQUIRED",
|
70805 |
| - "description": "A takeout session needs to be initialized first, see here » for more info." |
| 70805 | + "description": "A takeout¹ session needs to be initialized first, see here » for more info²." |
70806 | 70806 | },
|
70807 | 70807 | "TASK_ALREADY_EXISTS": {
|
70808 | 70808 | "code": 400,
|
|
70895 | 70895 | "description": "You specified no topic IDs."
|
70896 | 70896 | },
|
70897 | 70897 | "TOPIC_CLOSED": {
|
70898 |
| - "code": 400, |
| 70898 | + "code": 406, |
70899 | 70899 | "type": "TOPIC_CLOSED",
|
70900 | 70900 | "description": "This topic was closed, you can't send messages to it anymore."
|
70901 | 70901 | },
|
|
70905 | 70905 | "description": "The close flag cannot be provided together with any of the other flags."
|
70906 | 70906 | },
|
70907 | 70907 | "TOPIC_DELETED": {
|
70908 |
| - "code": 400, |
| 70908 | + "code": 406, |
70909 | 70909 | "type": "TOPIC_DELETED",
|
70910 | 70910 | "description": "The specified topic was deleted."
|
70911 | 70911 | },
|
|
71140 | 71140 | "description": "The provided user is not a mutual contact."
|
71141 | 71141 | },
|
71142 | 71142 | "USER_NOT_PARTICIPANT": {
|
71143 |
| - "code": 403, |
| 71143 | + "code": 400, |
71144 | 71144 | "type": "USER_NOT_PARTICIPANT",
|
71145 | 71145 | "description": "You're not a member of this supergroup/channel."
|
71146 | 71146 | },
|
|
0 commit comments