Better docs
This commit is contained in:
parent
dfef5e3458
commit
40059c9b3f
@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example
|
||||
|----------|---------------|
|
||||
|USERNAME_INVALID|The provided username is not valid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: account.confirmPhone parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PHONE_CODE_EMPTY|phone_code is missing|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PRIVACY_KEY_INVALID|The privacy key is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: account.getTmpPassword parameters, return type and example
|
||||
|----------|---------------|
|
||||
|TMP_PASSWORD_DISABLED|The temporary password is disabled|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: account.registerDevice parameters, return type and example
|
||||
|----------|---------------|
|
||||
|TOKEN_INVALID|The provided token is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example
|
||||
|----------|---------------|
|
||||
|HASH_INVALID|The provided hash is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -26,6 +26,7 @@ description: account.sendChangePhoneCode parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -26,6 +26,7 @@ description: account.sendConfirmPhoneCode parameters, return type and example
|
||||
|----------|---------------|
|
||||
|HASH_INVALID|The provided hash is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example
|
||||
|----------|---------------|
|
||||
|TTL_DAYS_INVALID|The provided TTL is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PRIVACY_KEY_INVALID|The privacy key is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example
|
||||
|----------|---------------|
|
||||
|TOKEN_INVALID|The provided token is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example
|
||||
|----------|---------------|
|
||||
|NEW_SETTINGS_INVALID|The new settings are invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,7 +24,9 @@ description: account.updateProfile parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid|
|
||||
|ABOUT_TOO_LONG|The provided bio is too long|
|
||||
|FIRSTNAME_INVALID|The first name is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied|
|
||||
|USERNAME_INVALID|The provided username is not valid|
|
||||
|USERNAME_NOT_MODIFIED|The username was not modified|
|
||||
|USERNAME_OCCUPIED|The provided username is already occupied|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big|
|
||||
|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid|
|
||||
|INPUT_REQUEST_TOO_LONG|The request is too big|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: auth.cancelCode parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PASSWORD_HASH_INVALID|The provided password hash is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|NETWORK_MIGRATE_4|memes|
|
||||
|PHONE_MIGRATE_4|memes|
|
||||
|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example
|
||||
|----------|---------------|
|
||||
|DC_ID_INVALID|The provided DC ID is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid|
|
||||
|AUTH_BYTES_INVALID|The provided authorization is invalid|
|
||||
|USER_ID_INVALID|The provided user ID is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CODE_EMPTY|The provided code is empty|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PASSWORD_EMPTY|The provided password is empty|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: auth.resendCode parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PHONE_NUMBER_INVALID|The phone number is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example
|
||||
|----------|---------------|
|
||||
|Timeout|A timeout occurred while fetching data from the bot|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example
|
||||
|----------|---------------|
|
||||
|MESSAGE_EMPTY|The provided message is empty|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: bots.answerWebhookJSONQuery parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|QUERY_ID_INVALID|The query ID is invalid||USER_BOT_INVALID|This method can only be called by a bot|
|
||||
|QUERY_ID_INVALID|The query ID is invalid|
|
||||
|USER_BOT_INVALID|This method can only be called by a bot|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: bots.sendCustomRequest parameters, return type and example
|
||||
|----------|---------------|
|
||||
|USER_BOT_INVALID|This method can only be called by a bot|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example
|
||||
|----------|---------------|
|
||||
|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -24,7 +24,10 @@ description: channels.editBanned parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_ADMIN_INVALID|You're not an admin|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|USER_ADMIN_INVALID|You're not an admin|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: channels.exportMessageLink parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -28,7 +28,9 @@ description: channels.getAdminLog parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example
|
||||
|----------|---------------|
|
||||
|NEED_CHAT_INVALID|The provided chat is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this|
|
||||
|BOT_GROUPS_BLOCKED|This bot can't be added to groups|
|
||||
|BOTS_TOO_MUCH|There are too many bots in this chat/channel|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||
|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels|
|
||||
|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups|
|
||||
|USER_ID_INVALID|The provided user ID is invalid|
|
||||
|USER_KICKED|This user was kicked from this supergroup/channel|
|
||||
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|
||||
|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|USER_CREATOR|You can't leave this channel, because you're its creator|
|
||||
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: channels.readMessageContents parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: channels.setStickers parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: channels.toggleInvites parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: channels.toggleSignatures parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,7 +24,10 @@ description: channels.updatePinnedMessage parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHAT_NOT_MODIFIED|The pinned message wasn't modified|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|USERNAME_INVALID|The provided username is not valid|
|
||||
|USERNAME_OCCUPIED|The provided username is already occupied|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CONTACT_ID_INVALID|The provided contact ID is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CONTACT_ID_INVALID|The provided contact ID is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example
|
||||
|----------|---------------|
|
||||
|NEED_MEMBER_INVALID|The provided member is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -32,6 +32,7 @@ description: contacts.getTopPeers parameters, return type and example
|
||||
|----------|---------------|
|
||||
|TYPES_EMPTY|The types field is empty|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example
|
||||
|----------|---------------|
|
||||
|NEED_MEMBER_INVALID|The provided member is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: contacts.resetTopPeerRating parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty|
|
||||
|QUERY_TOO_SHORT|The query string is too short|
|
||||
|SEARCH_QUERY_EMPTY|The search query is empty|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CONTACT_ID_INVALID|The provided contact ID is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -31,6 +31,7 @@ description: initConnection parameters, return type and example
|
||||
|----------|---------------|
|
||||
|INPUT_FETCH_FAIL|Failed deserializing TL payload|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|AUTH_BYTES_INVALID|The provided authorization is invalid|
|
||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: langpack.getDifference parameters, return type and example
|
||||
|----------|---------------|
|
||||
|LANG_PACK_INVALID|The provided language pack is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: langpack.getLangPack parameters, return type and example
|
||||
|----------|---------------|
|
||||
|LANG_PACK_INVALID|The provided language pack is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -19,6 +19,7 @@ description: langpack.getLanguages parameters, return type and example
|
||||
|----------|---------------|
|
||||
|LANG_PACK_INVALID|The provided language pack is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: langpack.getStrings parameters, return type and example
|
||||
|----------|---------------|
|
||||
|LANG_PACK_INVALID|The provided language pack is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|USER_ALREADY_PARTICIPANT|The user is already in the group|
|
||||
|USER_ID_INVALID|The provided user ID is invalid|
|
||||
|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact|
|
||||
|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this|
|
||||
|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|INVITE_HASH_EMPTY|The invite hash is empty|
|
||||
|INVITE_HASH_EXPIRED|The invite link has expired|
|
||||
|INVITE_HASH_INVALID|The invite hash is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)|
|
||||
|USER_RESTRICTED|You're spamreported, you can't create channels or chats.|
|
||||
|USERS_TOO_FEW|Not enough users (to create a chat, for example)|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -26,6 +26,7 @@ description: messages.deleteHistory parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example
|
||||
|----------|---------------|
|
||||
|NEED_CHAT_INVALID|The provided chat is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -27,7 +27,9 @@ description: messages.editInlineBotMessage parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_NOT_MODIFIED|The message text has not changed|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|MESSAGE_NOT_MODIFIED|The message text has not changed|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -28,7 +28,10 @@ description: messages.editMessage parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|MESSAGE_NOT_MODIFIED|The message text has not changed|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: messages.faveSticker parameters, return type and example
|
||||
|----------|---------------|
|
||||
|STICKER_ID_INVALID|The provided sticker ID is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -27,7 +27,14 @@ description: messages.forwardMessages parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot|
|
||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|MESSAGE_IDS_EMPTY|No message ids were provided|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|RANDOM_ID_DUPLICATE|You provided a random ID that was already used|
|
||||
|Timeout|A timeout occurred while fetching data from the bot|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -25,7 +25,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid||Timeout|A timeout occurred while fetching data from the bot|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|Timeout|A timeout occurred while fetching data from the bot|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -26,6 +26,7 @@ description: messages.getCommonChats parameters, return type and example
|
||||
|----------|---------------|
|
||||
|USER_ID_INVALID|The provided user ID is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example
|
||||
|----------|---------------|
|
||||
|RANDOM_LENGTH_INVALID|Random length invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -26,8 +26,10 @@ description: messages.getDialogs parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid|
|
||||
|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example
|
||||
|----------|---------------|
|
||||
|SHA256_HASH_INVALID|The provided SHA256 hash is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,7 +24,9 @@ description: messages.getGameHighScores parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|USER_BOT_REQUIRED|This method can only be called by a bot|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -28,7 +28,11 @@ description: messages.getHistory parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|CHANNEL_INVALID|The provided channel is invalid|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -26,7 +26,10 @@ description: messages.getInlineBotResults parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot|
|
||||
|BOT_INLINE_DISABLED|This bot can't be used in inline mode|
|
||||
|BOT_INVALID|This is not a valid bot|
|
||||
|Timeout|A timeout occurred while fetching data from the bot|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: messages.getInlineGameHighScores parameters, return type and exampl
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot|
|
||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||
|USER_BOT_REQUIRED|This method can only be called by a bot|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -23,7 +23,9 @@ description: messages.getMessageEditData parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|MESSAGE_AUTHOR_REQUIRED|Message author required||PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|MESSAGE_AUTHOR_REQUIRED|Message author required|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -22,8 +22,10 @@ description: messages.getPeerDialogs parameters, return type and example
|
||||
|
||||
| Error | Description |
|
||||
|----------|---------------|
|
||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
@ -24,6 +24,7 @@ description: messages.getPeerSettings parameters, return type and example
|
||||
|----------|---------------|
|
||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user