|
68765 | 68765 | "description": "You can't enable forum topics in a discussion group linked to a channel."
|
68766 | 68766 | },
|
68767 | 68767 | "CHAT_FORWARDS_RESTRICTED": {
|
68768 |
| - "code": 406, |
| 68768 | + "code": 400, |
68769 | 68769 | "type": "CHAT_FORWARDS_RESTRICTED",
|
68770 | 68770 | "description": "You can't forward messages from a protected chat."
|
68771 | 68771 | },
|
|
69830 | 69830 | "description": "The specified offset is longer than 64 bytes."
|
69831 | 69831 | },
|
69832 | 69832 | "NOT_ELIGIBLE": {
|
69833 |
| - "code": 403, |
| 69833 | + "code": 400, |
69834 | 69834 | "type": "NOT_ELIGIBLE",
|
69835 | 69835 | "description": "The current user is not eligible to join the Peer-to-Peer Login Program."
|
69836 | 69836 | },
|
|
70030 | 70030 | "description": "You asked for the code too many times."
|
70031 | 70031 | },
|
70032 | 70032 | "PHONE_NUMBER_INVALID": {
|
70033 |
| - "code": 406, |
| 70033 | + "code": 400, |
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": 400, |
| 70153 | + "code": 403, |
70154 | 70154 | "type": "PREMIUM_ACCOUNT_REQUIRED",
|
70155 | 70155 | "description": "A premium account is required to execute this action."
|
70156 | 70156 | },
|
|
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": 406, |
| 70898 | + "code": 400, |
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": 406, |
| 70908 | + "code": 400, |
70909 | 70909 | "type": "TOPIC_DELETED",
|
70910 | 70910 | "description": "The specified topic was deleted."
|
70911 | 70911 | },
|
|
71090 | 71090 | "description": "This method can only be called by a bot."
|
71091 | 71091 | },
|
71092 | 71092 | "USER_CHANNELS_TOO_MUCH": {
|
71093 |
| - "code": 403, |
| 71093 | + "code": 400, |
71094 | 71094 | "type": "USER_CHANNELS_TOO_MUCH",
|
71095 | 71095 | "description": "One of the users you tried to add is already in too many channels/supergroups."
|
71096 | 71096 | },
|
@@ -71135,12 +71135,12 @@
|
71135 | 71135 | "description": "This user was kicked from this supergroup/channel."
|
71136 | 71136 | },
|
71137 | 71137 | "USER_NOT_MUTUAL_CONTACT": {
|
71138 |
| - "code": 400, |
| 71138 | + "code": 403, |
71139 | 71139 | "type": "USER_NOT_MUTUAL_CONTACT",
|
71140 | 71140 | "description": "The provided user is not a mutual contact."
|
71141 | 71141 | },
|
71142 | 71142 | "USER_NOT_PARTICIPANT": {
|
71143 |
| - "code": 400, |
| 71143 | + "code": 403, |
71144 | 71144 | "type": "USER_NOT_PARTICIPANT",
|
71145 | 71145 | "description": "You're not a member of this supergroup/channel."
|
71146 | 71146 | },
|
|
71195 | 71195 | "description": "The specified video title is empty."
|
71196 | 71196 | },
|
71197 | 71197 | "VOICE_MESSAGES_FORBIDDEN": {
|
71198 |
| - "code": 403, |
| 71198 | + "code": 400, |
71199 | 71199 | "type": "VOICE_MESSAGES_FORBIDDEN",
|
71200 | 71200 | "description": "This user's privacy settings forbid you from sending voice messages."
|
71201 | 71201 | },
|
|
0 commit comments