diff --git a/docs/API_docs/methods/channels_getParticipant.md b/docs/API_docs/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/docs/API_docs/methods/channels_getParticipant.md +++ b/docs/API_docs/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/docs/API_docs/methods/channels_updatePinnedMessage.md b/docs/API_docs/methods/channels_updatePinnedMessage.md index 7376df10..6dcabf71 100644 --- a/docs/API_docs/methods/channels_updatePinnedMessage.md +++ b/docs/API_docs/methods/channels_updatePinnedMessage.md @@ -26,6 +26,7 @@ description: channels.updatePinnedMessage parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/docs/API_docs/methods/channels_updateUsername.md b/docs/API_docs/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/docs/API_docs/methods/channels_updateUsername.md +++ b/docs/API_docs/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/docs/API_docs/methods/invokeWithLayer.md b/docs/API_docs/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/docs/API_docs/methods/invokeWithLayer.md +++ b/docs/API_docs/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/docs/API_docs/methods/messages_getBotCallbackAnswer.md b/docs/API_docs/methods/messages_getBotCallbackAnswer.md index 433144c3..e905723f 100644 --- a/docs/API_docs/methods/messages_getBotCallbackAnswer.md +++ b/docs/API_docs/methods/messages_getBotCallbackAnswer.md @@ -25,6 +25,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| |DATA_INVALID|Encrypted data invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/docs/API_docs/methods/messages_sendMedia.md b/docs/API_docs/methods/messages_sendMedia.md index 6661e661..b3ceb5d4 100644 --- a/docs/API_docs/methods/messages_sendMedia.md +++ b/docs/API_docs/methods/messages_sendMedia.md @@ -33,6 +33,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -48,7 +49,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/docs/index.md b/docs/index.md index 1032d30c..cca62570 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,3 +1,7 @@ +--- +title: MadelineProto documentation +description: PHP implementation of telegram's MTProto protocol +--- # MadelineProto, a PHP MTProto telegram client Do join the official channel, [@MadelineProto](https://t.me/MadelineProto)! diff --git a/old_docs/API_docs_v18/methods/messages_sendMedia.md b/old_docs/API_docs_v18/methods/messages_sendMedia.md index 2edd06d1..1da82820 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v18/methods/messages_sendMedia.md @@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -43,7 +44,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v23/methods/invokeWithLayer.md b/old_docs/API_docs_v23/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v23/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v23/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v23/methods/messages_sendMedia.md b/old_docs/API_docs_v23/methods/messages_sendMedia.md index 2edd06d1..1da82820 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v23/methods/messages_sendMedia.md @@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -43,7 +44,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v25/methods/invokeWithLayer.md b/old_docs/API_docs_v25/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v25/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v25/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v25/methods/messages_sendMedia.md b/old_docs/API_docs_v25/methods/messages_sendMedia.md index 82ca559b..2c65b180 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v25/methods/messages_sendMedia.md @@ -29,6 +29,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -44,7 +45,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v27/methods/invokeWithLayer.md b/old_docs/API_docs_v27/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v27/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v27/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v27/methods/messages_sendMedia.md b/old_docs/API_docs_v27/methods/messages_sendMedia.md index b18cc671..153ceded 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v27/methods/messages_sendMedia.md @@ -29,6 +29,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -44,7 +45,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v33/methods/invokeWithLayer.md b/old_docs/API_docs_v33/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v33/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v33/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v33/methods/messages_sendMedia.md b/old_docs/API_docs_v33/methods/messages_sendMedia.md index 5fcb3c36..ba40b16f 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v33/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -45,7 +46,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_getParticipant.md b/old_docs/API_docs_v38/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v38/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v38/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v38/methods/channels_updateUsername.md b/old_docs/API_docs_v38/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v38/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v38/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v38/methods/invokeWithLayer.md b/old_docs/API_docs_v38/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v38/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v38/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v38/methods/messages_sendMedia.md b/old_docs/API_docs_v38/methods/messages_sendMedia.md index 5fcb3c36..ba40b16f 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v38/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -45,7 +46,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v40/methods/invokeWithLayer.md b/old_docs/API_docs_v40/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v40/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v40/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v40/methods/messages_sendMedia.md b/old_docs/API_docs_v40/methods/messages_sendMedia.md index 5fcb3c36..ba40b16f 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v40/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -45,7 +46,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_getParticipant.md b/old_docs/API_docs_v41/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v41/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v41/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v41/methods/channels_updateUsername.md b/old_docs/API_docs_v41/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v41/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v41/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v41/methods/invokeWithLayer.md b/old_docs/API_docs_v41/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v41/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v41/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v41/methods/messages_sendMedia.md b/old_docs/API_docs_v41/methods/messages_sendMedia.md index 4b5e4d59..4b924e7e 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v41/methods/messages_sendMedia.md @@ -31,6 +31,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -46,7 +47,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_getParticipant.md b/old_docs/API_docs_v42/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v42/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v42/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v42/methods/channels_updateUsername.md b/old_docs/API_docs_v42/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v42/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v42/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v42/methods/invokeWithLayer.md b/old_docs/API_docs_v42/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v42/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v42/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v42/methods/messages_sendMedia.md b/old_docs/API_docs_v42/methods/messages_sendMedia.md index 4b5e4d59..4b924e7e 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v42/methods/messages_sendMedia.md @@ -31,6 +31,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -46,7 +47,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_getParticipant.md b/old_docs/API_docs_v44/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v44/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v44/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v44/methods/channels_updateUsername.md b/old_docs/API_docs_v44/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v44/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v44/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v44/methods/invokeWithLayer.md b/old_docs/API_docs_v44/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v44/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v44/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v44/methods/messages_sendMedia.md b/old_docs/API_docs_v44/methods/messages_sendMedia.md index 4b5e4d59..4b924e7e 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v44/methods/messages_sendMedia.md @@ -31,6 +31,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -46,7 +47,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_getParticipant.md b/old_docs/API_docs_v45/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v45/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v45/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v45/methods/channels_updateUsername.md b/old_docs/API_docs_v45/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v45/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v45/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v45/methods/invokeWithLayer.md b/old_docs/API_docs_v45/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v45/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v45/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v45/methods/messages_sendMedia.md b/old_docs/API_docs_v45/methods/messages_sendMedia.md index 4b5e4d59..4b924e7e 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v45/methods/messages_sendMedia.md @@ -31,6 +31,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -46,7 +47,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_getParticipant.md b/old_docs/API_docs_v46/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v46/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v46/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v46/methods/channels_updateUsername.md b/old_docs/API_docs_v46/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v46/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v46/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v46/methods/invokeWithLayer.md b/old_docs/API_docs_v46/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v46/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v46/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v46/methods/messages_sendMedia.md b/old_docs/API_docs_v46/methods/messages_sendMedia.md index 4b5e4d59..4b924e7e 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v46/methods/messages_sendMedia.md @@ -31,6 +31,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -46,7 +47,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_getParticipant.md b/old_docs/API_docs_v51/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v51/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v51/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md index 7376df10..6dcabf71 100644 --- a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md @@ -26,6 +26,7 @@ description: channels.updatePinnedMessage parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v51/methods/channels_updateUsername.md b/old_docs/API_docs_v51/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v51/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v51/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v51/methods/invokeWithLayer.md b/old_docs/API_docs_v51/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v51/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v51/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md index 9afb2e6a..66299f58 100644 --- a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md @@ -24,6 +24,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| |DATA_INVALID|Encrypted data invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v51/methods/messages_sendMedia.md b/old_docs/API_docs_v51/methods/messages_sendMedia.md index 6a19fe94..7dd36764 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v51/methods/messages_sendMedia.md @@ -33,6 +33,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -48,7 +49,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_getParticipant.md b/old_docs/API_docs_v53/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v53/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v53/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md index 7376df10..6dcabf71 100644 --- a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md @@ -26,6 +26,7 @@ description: channels.updatePinnedMessage parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v53/methods/channels_updateUsername.md b/old_docs/API_docs_v53/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v53/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v53/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v53/methods/invokeWithLayer.md b/old_docs/API_docs_v53/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v53/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v53/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md index 9afb2e6a..66299f58 100644 --- a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md @@ -24,6 +24,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| |DATA_INVALID|Encrypted data invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v53/methods/messages_sendMedia.md b/old_docs/API_docs_v53/methods/messages_sendMedia.md index 6661e661..b3ceb5d4 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v53/methods/messages_sendMedia.md @@ -33,6 +33,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -48,7 +49,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_getParticipant.md b/old_docs/API_docs_v55/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v55/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v55/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md index 7376df10..6dcabf71 100644 --- a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md @@ -26,6 +26,7 @@ description: channels.updatePinnedMessage parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v55/methods/channels_updateUsername.md b/old_docs/API_docs_v55/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v55/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v55/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v55/methods/invokeWithLayer.md b/old_docs/API_docs_v55/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v55/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v55/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md index 9afb2e6a..66299f58 100644 --- a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md @@ -24,6 +24,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| |DATA_INVALID|Encrypted data invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v55/methods/messages_sendMedia.md b/old_docs/API_docs_v55/methods/messages_sendMedia.md index 6661e661..b3ceb5d4 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v55/methods/messages_sendMedia.md @@ -33,6 +33,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -48,7 +49,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_getParticipant.md b/old_docs/API_docs_v57/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v57/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v57/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md index 7376df10..6dcabf71 100644 --- a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md @@ -26,6 +26,7 @@ description: channels.updatePinnedMessage parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v57/methods/channels_updateUsername.md b/old_docs/API_docs_v57/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v57/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v57/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v57/methods/invokeWithLayer.md b/old_docs/API_docs_v57/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v57/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v57/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md index 433144c3..e905723f 100644 --- a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md @@ -25,6 +25,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| |DATA_INVALID|Encrypted data invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v57/methods/messages_sendMedia.md b/old_docs/API_docs_v57/methods/messages_sendMedia.md index 6661e661..b3ceb5d4 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v57/methods/messages_sendMedia.md @@ -33,6 +33,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -48,7 +49,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_getParticipant.md b/old_docs/API_docs_v62/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v62/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v62/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md index 7376df10..6dcabf71 100644 --- a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md @@ -26,6 +26,7 @@ description: channels.updatePinnedMessage parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v62/methods/channels_updateUsername.md b/old_docs/API_docs_v62/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v62/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v62/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v62/methods/invokeWithLayer.md b/old_docs/API_docs_v62/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v62/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v62/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md index 433144c3..e905723f 100644 --- a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md @@ -25,6 +25,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| |DATA_INVALID|Encrypted data invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v62/methods/messages_sendMedia.md b/old_docs/API_docs_v62/methods/messages_sendMedia.md index 6661e661..b3ceb5d4 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v62/methods/messages_sendMedia.md @@ -33,6 +33,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -48,7 +49,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_getParticipant.md b/old_docs/API_docs_v65/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v65/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v65/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md index 7376df10..6dcabf71 100644 --- a/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md @@ -26,6 +26,7 @@ description: channels.updatePinnedMessage parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v65/methods/channels_updateUsername.md b/old_docs/API_docs_v65/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v65/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v65/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v65/methods/invokeWithLayer.md b/old_docs/API_docs_v65/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v65/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v65/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md index 433144c3..e905723f 100644 --- a/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md @@ -25,6 +25,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| |DATA_INVALID|Encrypted data invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v65/methods/messages_sendMedia.md b/old_docs/API_docs_v65/methods/messages_sendMedia.md index 6661e661..b3ceb5d4 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v65/methods/messages_sendMedia.md @@ -33,6 +33,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -48,7 +49,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_getParticipant.md b/old_docs/API_docs_v66/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v66/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v66/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md index 7376df10..6dcabf71 100644 --- a/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md @@ -26,6 +26,7 @@ description: channels.updatePinnedMessage parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v66/methods/channels_updateUsername.md b/old_docs/API_docs_v66/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v66/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v66/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v66/methods/invokeWithLayer.md b/old_docs/API_docs_v66/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v66/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v66/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md index 433144c3..e905723f 100644 --- a/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md @@ -25,6 +25,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| |DATA_INVALID|Encrypted data invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v66/methods/messages_sendMedia.md b/old_docs/API_docs_v66/methods/messages_sendMedia.md index 6661e661..b3ceb5d4 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v66/methods/messages_sendMedia.md @@ -33,6 +33,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -48,7 +49,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_getParticipant.md b/old_docs/API_docs_v68/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v68/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v68/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md index 7376df10..6dcabf71 100644 --- a/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md @@ -26,6 +26,7 @@ description: channels.updatePinnedMessage parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v68/methods/channels_updateUsername.md b/old_docs/API_docs_v68/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v68/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v68/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v68/methods/invokeWithLayer.md b/old_docs/API_docs_v68/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v68/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v68/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md index 433144c3..e905723f 100644 --- a/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md @@ -25,6 +25,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| |DATA_INVALID|Encrypted data invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v68/methods/messages_sendMedia.md b/old_docs/API_docs_v68/methods/messages_sendMedia.md index 6661e661..b3ceb5d4 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v68/methods/messages_sendMedia.md @@ -33,6 +33,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -48,7 +49,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_getParticipant.md b/old_docs/API_docs_v70/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v70/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v70/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md index 7376df10..6dcabf71 100644 --- a/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md @@ -26,6 +26,7 @@ description: channels.updatePinnedMessage parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v70/methods/channels_updateUsername.md b/old_docs/API_docs_v70/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v70/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v70/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v70/methods/invokeWithLayer.md b/old_docs/API_docs_v70/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v70/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v70/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md index 433144c3..e905723f 100644 --- a/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md @@ -25,6 +25,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| |DATA_INVALID|Encrypted data invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v70/methods/messages_sendMedia.md b/old_docs/API_docs_v70/methods/messages_sendMedia.md index 6661e661..b3ceb5d4 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v70/methods/messages_sendMedia.md @@ -33,6 +33,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -48,7 +49,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_getParticipant.md b/old_docs/API_docs_v71/methods/channels_getParticipant.md index d2c78746..8c7e3cbd 100644 --- a/old_docs/API_docs_v71/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v71/methods/channels_getParticipant.md @@ -24,6 +24,7 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| |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| |USER_ID_INVALID|The provided user ID is invalid| |USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| diff --git a/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md index 7376df10..6dcabf71 100644 --- a/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md @@ -26,6 +26,7 @@ description: channels.updatePinnedMessage parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_ID_INVALID|The provided chat id is invalid| |CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v71/methods/channels_updateUsername.md b/old_docs/API_docs_v71/methods/channels_updateUsername.md index 4e0b9053..c2ede724 100644 --- a/old_docs/API_docs_v71/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v71/methods/channels_updateUsername.md @@ -24,6 +24,7 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| +|CHANNELS_ADMIN_PUBLIC_TOO_MUCH|You're admin of too many public channels, make some channels private to change the username of this channel| |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| diff --git a/old_docs/API_docs_v71/methods/invokeWithLayer.md b/old_docs/API_docs_v71/methods/invokeWithLayer.md index fc587a3f..780b7d3f 100644 --- a/old_docs/API_docs_v71/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v71/methods/invokeWithLayer.md @@ -26,8 +26,11 @@ description: invokeWithLayer parameters, return type and example |AUTH_BYTES_INVALID|The provided authorization is invalid| |CDN_METHOD_INVALID|You can't call this method in a CDN DC| |CONNECTION_API_ID_INVALID|The provided API id is invalid| +|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| +|CONNECTION_SYSTEM_EMPTY|Connection system empty| |INPUT_LAYER_INVALID|The provided layer is invalid| +|INVITE_HASH_EXPIRED|The invite link has expired| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md index 433144c3..e905723f 100644 --- a/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md @@ -25,6 +25,7 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_INVALID|The provided channel is invalid| |DATA_INVALID|Encrypted data invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v71/methods/messages_sendMedia.md b/old_docs/API_docs_v71/methods/messages_sendMedia.md index 6661e661..b3ceb5d4 100644 --- a/old_docs/API_docs_v71/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v71/methods/messages_sendMedia.md @@ -33,6 +33,7 @@ description: messages.sendMedia parameters, return type and example |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| +|FILE_PART_154_MISSING|| |FILE_PART_6_MISSING|File part 6 missing| |FILE_PART_LENGTH_INVALID|The length of a file part is invalid| |FILE_PARTS_INVALID|The number of file parts is invalid| @@ -48,7 +49,9 @@ description: messages.sendMedia parameters, return type and example |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |WEBPAGE_MEDIA_EMPTY|Webpage media empty| |STORAGE_CHECK_FAILED|Server storage check failed| +|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: