From 6899f7bfbf516f1ffb59b1275b8ab472297dfabb Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 8 Nov 2017 15:04:40 +0300 Subject: [PATCH] Bugfixes --- .../API_docs/methods/channels_leaveChannel.md | 1 + docs/API_docs/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + docs/API_docs/methods/messages_readHistory.md | 1 + docs/API_docs/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + docs/API_docs/methods/messages_sendMedia.md | 3 ++ .../methods/stickers_createStickerSet.md | 4 ++ lua/madeline.php | 3 +- lua/td.php | 2 +- .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v18/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../API_docs_v23/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v23/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../API_docs_v25/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v25/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../API_docs_v27/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v27/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../API_docs_v33/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v33/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v38/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v38/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../API_docs_v40/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v40/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v41/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v41/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v42/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v42/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v44/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v44/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v45/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v45/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v46/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v46/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v51/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v51/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v53/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v53/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v55/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v55/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v57/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v57/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v62/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v62/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v65/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v65/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v66/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v66/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v68/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v68/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/stickers_createStickerSet.md | 4 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v70/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v70/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/stickers_createStickerSet.md | 4 ++ .../methods/channels_leaveChannel.md | 1 + .../API_docs_v71/methods/invokeWithLayer.md | 1 + .../methods/messages_forwardMessages.md | 1 + .../methods/messages_readHistory.md | 1 + .../API_docs_v71/methods/messages_search.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendMedia.md | 3 ++ .../methods/stickers_createStickerSet.md | 4 ++ src/danog/MadelineProto/API.php | 8 ++-- src/danog/MadelineProto/Lua.php | 1 + src/danog/MadelineProto/Serialization.php | 44 ++++++++++++++++++- 163 files changed, 266 insertions(+), 8 deletions(-) diff --git a/docs/API_docs/methods/channels_leaveChannel.md b/docs/API_docs/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/docs/API_docs/methods/channels_leaveChannel.md +++ b/docs/API_docs/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/docs/API_docs/methods/invokeWithLayer.md b/docs/API_docs/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/docs/API_docs/methods/invokeWithLayer.md +++ b/docs/API_docs/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/docs/API_docs/methods/messages_forwardMessages.md b/docs/API_docs/methods/messages_forwardMessages.md index 0f649200..b5e9b7e7 100644 --- a/docs/API_docs/methods/messages_forwardMessages.md +++ b/docs/API_docs/methods/messages_forwardMessages.md @@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/docs/API_docs/methods/messages_readHistory.md b/docs/API_docs/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/docs/API_docs/methods/messages_readHistory.md +++ b/docs/API_docs/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/docs/API_docs/methods/messages_search.md b/docs/API_docs/methods/messages_search.md index ca82742c..14b02f8f 100644 --- a/docs/API_docs/methods/messages_search.md +++ b/docs/API_docs/methods/messages_search.md @@ -32,6 +32,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/docs/API_docs/methods/messages_sendEncryptedService.md b/docs/API_docs/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/docs/API_docs/methods/messages_sendEncryptedService.md +++ b/docs/API_docs/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/docs/API_docs/methods/messages_sendMedia.md b/docs/API_docs/methods/messages_sendMedia.md index 8c22e1c9..6661e661 100644 --- a/docs/API_docs/methods/messages_sendMedia.md +++ b/docs/API_docs/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -40,6 +41,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/docs/API_docs/methods/stickers_createStickerSet.md b/docs/API_docs/methods/stickers_createStickerSet.md index 02ec673b..7c5b6821 100644 --- a/docs/API_docs/methods/stickers_createStickerSet.md +++ b/docs/API_docs/methods/stickers_createStickerSet.md @@ -28,7 +28,11 @@ description: stickers.createStickerSet parameters, return type and example |----------|---------------| |BOT_MISSING|This method can only be run by a bot| |PACK_SHORT_NAME_INVALID|Short pack name invalid| +|PACK_SHORT_NAME_OCCUPIED|A stickerpack with this name already exists| |PEER_ID_INVALID|The provided peer id is invalid| +|STICKER_EMOJI_INVALID|Sticker emoji invalid| +|STICKER_FILE_INVALID|Sticker file invalid| +|STICKER_PNG_DIMENSIONS|Sticker png dimensions invalid| |STICKERS_EMPTY|No sticker provided| |USER_ID_INVALID|The provided user ID is invalid| diff --git a/lua/madeline.php b/lua/madeline.php index 5b780805..be70fd45 100755 --- a/lua/madeline.php +++ b/lua/madeline.php @@ -16,7 +16,7 @@ $settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb $Lua = false; try { - $Lua = new \danog\MadelineProto\API('bot.madeline'); + $Lua = \danog\MadelineProto\Serialization::deserialize('bot.madeline'); } catch (\danog\MadelineProto\Exception $e) { } if (!is_object($Lua)) { @@ -53,7 +53,6 @@ if (!is_object($Lua)) { break; } } - $offset = 0; while (true) { $updates = $Lua->MadelineProto->API->get_updates(['offset' => $offset, 'limit' => 50, 'timeout' => 0]); // Just like in the bot API, you can specify an offset, a limit and a timeout diff --git a/lua/td.php b/lua/td.php index 7e7d8811..a9cef841 100755 --- a/lua/td.php +++ b/lua/td.php @@ -16,7 +16,7 @@ $settings = []; $Lua = false; try { - $Lua = new \danog\MadelineProto\API('td.madeline'); + $Lua = \danog\MadelineProto\Serialization::deserialize('td.madeline'); } catch (\danog\MadelineProto\Exception $e) { } if (!is_object($Lua)) { diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessages.md b/old_docs/API_docs_v18/methods/messages_forwardMessages.md index debfc7cc..8a8845c3 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessages.md @@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v18/methods/messages_readHistory.md b/old_docs/API_docs_v18/methods/messages_readHistory.md index c5dca72d..fc698ca6 100644 --- a/old_docs/API_docs_v18/methods/messages_readHistory.md +++ b/old_docs/API_docs_v18/methods/messages_readHistory.md @@ -26,6 +26,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_search.md b/old_docs/API_docs_v18/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v18/methods/messages_search.md +++ b/old_docs/API_docs_v18/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_sendMedia.md b/old_docs/API_docs_v18/methods/messages_sendMedia.md index 626a78ab..2edd06d1 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v18/methods/messages_sendMedia.md @@ -25,6 +25,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -35,6 +36,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v23/methods/invokeWithLayer.md b/old_docs/API_docs_v23/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v23/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v23/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessages.md b/old_docs/API_docs_v23/methods/messages_forwardMessages.md index debfc7cc..8a8845c3 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessages.md @@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v23/methods/messages_readHistory.md b/old_docs/API_docs_v23/methods/messages_readHistory.md index c5dca72d..fc698ca6 100644 --- a/old_docs/API_docs_v23/methods/messages_readHistory.md +++ b/old_docs/API_docs_v23/methods/messages_readHistory.md @@ -26,6 +26,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_search.md b/old_docs/API_docs_v23/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v23/methods/messages_search.md +++ b/old_docs/API_docs_v23/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_sendMedia.md b/old_docs/API_docs_v23/methods/messages_sendMedia.md index 626a78ab..2edd06d1 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v23/methods/messages_sendMedia.md @@ -25,6 +25,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -35,6 +36,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v25/methods/invokeWithLayer.md b/old_docs/API_docs_v25/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v25/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v25/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessages.md b/old_docs/API_docs_v25/methods/messages_forwardMessages.md index debfc7cc..8a8845c3 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessages.md @@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v25/methods/messages_readHistory.md b/old_docs/API_docs_v25/methods/messages_readHistory.md index d392dbce..da833be8 100644 --- a/old_docs/API_docs_v25/methods/messages_readHistory.md +++ b/old_docs/API_docs_v25/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_search.md b/old_docs/API_docs_v25/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v25/methods/messages_search.md +++ b/old_docs/API_docs_v25/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_sendMedia.md b/old_docs/API_docs_v25/methods/messages_sendMedia.md index 478b2e98..82ca559b 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v25/methods/messages_sendMedia.md @@ -26,6 +26,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -36,6 +37,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v27/methods/invokeWithLayer.md b/old_docs/API_docs_v27/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v27/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v27/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessages.md b/old_docs/API_docs_v27/methods/messages_forwardMessages.md index 4ed1881c..05131a0d 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessages.md @@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v27/methods/messages_readHistory.md b/old_docs/API_docs_v27/methods/messages_readHistory.md index d392dbce..da833be8 100644 --- a/old_docs/API_docs_v27/methods/messages_readHistory.md +++ b/old_docs/API_docs_v27/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_search.md b/old_docs/API_docs_v27/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v27/methods/messages_search.md +++ b/old_docs/API_docs_v27/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_sendMedia.md b/old_docs/API_docs_v27/methods/messages_sendMedia.md index f89461ee..b18cc671 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v27/methods/messages_sendMedia.md @@ -26,6 +26,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -36,6 +37,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v33/methods/invokeWithLayer.md b/old_docs/API_docs_v33/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v33/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v33/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessages.md b/old_docs/API_docs_v33/methods/messages_forwardMessages.md index 4ed1881c..05131a0d 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessages.md @@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v33/methods/messages_readHistory.md b/old_docs/API_docs_v33/methods/messages_readHistory.md index d392dbce..da833be8 100644 --- a/old_docs/API_docs_v33/methods/messages_readHistory.md +++ b/old_docs/API_docs_v33/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_search.md b/old_docs/API_docs_v33/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v33/methods/messages_search.md +++ b/old_docs/API_docs_v33/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_sendMedia.md b/old_docs/API_docs_v33/methods/messages_sendMedia.md index 97b0d557..5fcb3c36 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v33/methods/messages_sendMedia.md @@ -27,6 +27,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -37,6 +38,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v38/methods/channels_leaveChannel.md b/old_docs/API_docs_v38/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v38/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v38/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v38/methods/invokeWithLayer.md b/old_docs/API_docs_v38/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v38/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v38/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessages.md b/old_docs/API_docs_v38/methods/messages_forwardMessages.md index b590503a..baf71832 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessages.md @@ -28,6 +28,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v38/methods/messages_readHistory.md b/old_docs/API_docs_v38/methods/messages_readHistory.md index d392dbce..da833be8 100644 --- a/old_docs/API_docs_v38/methods/messages_readHistory.md +++ b/old_docs/API_docs_v38/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_search.md b/old_docs/API_docs_v38/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v38/methods/messages_search.md +++ b/old_docs/API_docs_v38/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_sendMedia.md b/old_docs/API_docs_v38/methods/messages_sendMedia.md index 97b0d557..5fcb3c36 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v38/methods/messages_sendMedia.md @@ -27,6 +27,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -37,6 +38,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v40/methods/invokeWithLayer.md b/old_docs/API_docs_v40/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v40/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v40/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessages.md b/old_docs/API_docs_v40/methods/messages_forwardMessages.md index 4ed1881c..05131a0d 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessages.md @@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v40/methods/messages_readHistory.md b/old_docs/API_docs_v40/methods/messages_readHistory.md index d392dbce..da833be8 100644 --- a/old_docs/API_docs_v40/methods/messages_readHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_search.md b/old_docs/API_docs_v40/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v40/methods/messages_search.md +++ b/old_docs/API_docs_v40/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_sendMedia.md b/old_docs/API_docs_v40/methods/messages_sendMedia.md index 97b0d557..5fcb3c36 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v40/methods/messages_sendMedia.md @@ -27,6 +27,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -37,6 +38,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v41/methods/channels_leaveChannel.md b/old_docs/API_docs_v41/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v41/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v41/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v41/methods/invokeWithLayer.md b/old_docs/API_docs_v41/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v41/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v41/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessages.md b/old_docs/API_docs_v41/methods/messages_forwardMessages.md index aea62cdf..2ea31ccf 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessages.md @@ -29,6 +29,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v41/methods/messages_readHistory.md b/old_docs/API_docs_v41/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v41/methods/messages_readHistory.md +++ b/old_docs/API_docs_v41/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_search.md b/old_docs/API_docs_v41/methods/messages_search.md index 16d0d853..8ea63f65 100644 --- a/old_docs/API_docs_v41/methods/messages_search.md +++ b/old_docs/API_docs_v41/methods/messages_search.md @@ -30,6 +30,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_sendMedia.md b/old_docs/API_docs_v41/methods/messages_sendMedia.md index 1e4ebdaa..4b5e4d59 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v41/methods/messages_sendMedia.md @@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -38,6 +39,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v42/methods/channels_leaveChannel.md b/old_docs/API_docs_v42/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v42/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v42/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v42/methods/invokeWithLayer.md b/old_docs/API_docs_v42/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v42/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v42/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessages.md b/old_docs/API_docs_v42/methods/messages_forwardMessages.md index aea62cdf..2ea31ccf 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessages.md @@ -29,6 +29,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v42/methods/messages_readHistory.md b/old_docs/API_docs_v42/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v42/methods/messages_readHistory.md +++ b/old_docs/API_docs_v42/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_search.md b/old_docs/API_docs_v42/methods/messages_search.md index 16d0d853..8ea63f65 100644 --- a/old_docs/API_docs_v42/methods/messages_search.md +++ b/old_docs/API_docs_v42/methods/messages_search.md @@ -30,6 +30,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_sendMedia.md b/old_docs/API_docs_v42/methods/messages_sendMedia.md index 1e4ebdaa..4b5e4d59 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v42/methods/messages_sendMedia.md @@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -38,6 +39,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v44/methods/channels_leaveChannel.md b/old_docs/API_docs_v44/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v44/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v44/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v44/methods/invokeWithLayer.md b/old_docs/API_docs_v44/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v44/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v44/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessages.md b/old_docs/API_docs_v44/methods/messages_forwardMessages.md index aea62cdf..2ea31ccf 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessages.md @@ -29,6 +29,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v44/methods/messages_readHistory.md b/old_docs/API_docs_v44/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v44/methods/messages_readHistory.md +++ b/old_docs/API_docs_v44/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_search.md b/old_docs/API_docs_v44/methods/messages_search.md index 16d0d853..8ea63f65 100644 --- a/old_docs/API_docs_v44/methods/messages_search.md +++ b/old_docs/API_docs_v44/methods/messages_search.md @@ -30,6 +30,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_sendMedia.md b/old_docs/API_docs_v44/methods/messages_sendMedia.md index 1e4ebdaa..4b5e4d59 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v44/methods/messages_sendMedia.md @@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -38,6 +39,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v45/methods/channels_leaveChannel.md b/old_docs/API_docs_v45/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v45/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v45/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v45/methods/invokeWithLayer.md b/old_docs/API_docs_v45/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v45/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v45/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessages.md b/old_docs/API_docs_v45/methods/messages_forwardMessages.md index aea62cdf..2ea31ccf 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessages.md @@ -29,6 +29,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v45/methods/messages_readHistory.md b/old_docs/API_docs_v45/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v45/methods/messages_readHistory.md +++ b/old_docs/API_docs_v45/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_search.md b/old_docs/API_docs_v45/methods/messages_search.md index 16d0d853..8ea63f65 100644 --- a/old_docs/API_docs_v45/methods/messages_search.md +++ b/old_docs/API_docs_v45/methods/messages_search.md @@ -30,6 +30,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendMedia.md b/old_docs/API_docs_v45/methods/messages_sendMedia.md index 1e4ebdaa..4b5e4d59 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v45/methods/messages_sendMedia.md @@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -38,6 +39,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v46/methods/channels_leaveChannel.md b/old_docs/API_docs_v46/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v46/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v46/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v46/methods/invokeWithLayer.md b/old_docs/API_docs_v46/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v46/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v46/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessages.md b/old_docs/API_docs_v46/methods/messages_forwardMessages.md index aea62cdf..2ea31ccf 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessages.md @@ -29,6 +29,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v46/methods/messages_readHistory.md b/old_docs/API_docs_v46/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v46/methods/messages_readHistory.md +++ b/old_docs/API_docs_v46/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_search.md b/old_docs/API_docs_v46/methods/messages_search.md index 16d0d853..8ea63f65 100644 --- a/old_docs/API_docs_v46/methods/messages_search.md +++ b/old_docs/API_docs_v46/methods/messages_search.md @@ -30,6 +30,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendMedia.md b/old_docs/API_docs_v46/methods/messages_sendMedia.md index 1e4ebdaa..4b5e4d59 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v46/methods/messages_sendMedia.md @@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -38,6 +39,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v51/methods/channels_leaveChannel.md b/old_docs/API_docs_v51/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v51/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v51/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v51/methods/invokeWithLayer.md b/old_docs/API_docs_v51/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v51/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v51/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessages.md b/old_docs/API_docs_v51/methods/messages_forwardMessages.md index c02ab901..703e1072 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessages.md @@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v51/methods/messages_readHistory.md b/old_docs/API_docs_v51/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v51/methods/messages_readHistory.md +++ b/old_docs/API_docs_v51/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_search.md b/old_docs/API_docs_v51/methods/messages_search.md index 16d0d853..8ea63f65 100644 --- a/old_docs/API_docs_v51/methods/messages_search.md +++ b/old_docs/API_docs_v51/methods/messages_search.md @@ -30,6 +30,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendMedia.md b/old_docs/API_docs_v51/methods/messages_sendMedia.md index b13d1878..6a19fe94 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v51/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -40,6 +41,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v53/methods/channels_leaveChannel.md b/old_docs/API_docs_v53/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v53/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v53/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v53/methods/invokeWithLayer.md b/old_docs/API_docs_v53/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v53/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v53/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessages.md b/old_docs/API_docs_v53/methods/messages_forwardMessages.md index 04d9c02d..3f77a986 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessages.md @@ -30,6 +30,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v53/methods/messages_readHistory.md b/old_docs/API_docs_v53/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v53/methods/messages_readHistory.md +++ b/old_docs/API_docs_v53/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_search.md b/old_docs/API_docs_v53/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v53/methods/messages_search.md +++ b/old_docs/API_docs_v53/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendMedia.md b/old_docs/API_docs_v53/methods/messages_sendMedia.md index 8c22e1c9..6661e661 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v53/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -40,6 +41,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v55/methods/channels_leaveChannel.md b/old_docs/API_docs_v55/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v55/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v55/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v55/methods/invokeWithLayer.md b/old_docs/API_docs_v55/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v55/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v55/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessages.md b/old_docs/API_docs_v55/methods/messages_forwardMessages.md index 04d9c02d..3f77a986 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessages.md @@ -30,6 +30,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v55/methods/messages_readHistory.md b/old_docs/API_docs_v55/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v55/methods/messages_readHistory.md +++ b/old_docs/API_docs_v55/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_search.md b/old_docs/API_docs_v55/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v55/methods/messages_search.md +++ b/old_docs/API_docs_v55/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendMedia.md b/old_docs/API_docs_v55/methods/messages_sendMedia.md index 8c22e1c9..6661e661 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v55/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -40,6 +41,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v57/methods/channels_leaveChannel.md b/old_docs/API_docs_v57/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v57/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v57/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v57/methods/invokeWithLayer.md b/old_docs/API_docs_v57/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v57/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v57/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessages.md b/old_docs/API_docs_v57/methods/messages_forwardMessages.md index 0f649200..b5e9b7e7 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessages.md @@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v57/methods/messages_readHistory.md b/old_docs/API_docs_v57/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v57/methods/messages_readHistory.md +++ b/old_docs/API_docs_v57/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_search.md b/old_docs/API_docs_v57/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v57/methods/messages_search.md +++ b/old_docs/API_docs_v57/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendMedia.md b/old_docs/API_docs_v57/methods/messages_sendMedia.md index 8c22e1c9..6661e661 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v57/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -40,6 +41,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v62/methods/channels_leaveChannel.md b/old_docs/API_docs_v62/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v62/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v62/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v62/methods/invokeWithLayer.md b/old_docs/API_docs_v62/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v62/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v62/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessages.md b/old_docs/API_docs_v62/methods/messages_forwardMessages.md index 0f649200..b5e9b7e7 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessages.md @@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v62/methods/messages_readHistory.md b/old_docs/API_docs_v62/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v62/methods/messages_readHistory.md +++ b/old_docs/API_docs_v62/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_search.md b/old_docs/API_docs_v62/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v62/methods/messages_search.md +++ b/old_docs/API_docs_v62/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendMedia.md b/old_docs/API_docs_v62/methods/messages_sendMedia.md index 8c22e1c9..6661e661 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v62/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -40,6 +41,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v65/methods/channels_leaveChannel.md b/old_docs/API_docs_v65/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v65/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v65/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v65/methods/invokeWithLayer.md b/old_docs/API_docs_v65/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v65/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v65/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessages.md b/old_docs/API_docs_v65/methods/messages_forwardMessages.md index 0f649200..b5e9b7e7 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessages.md @@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v65/methods/messages_readHistory.md b/old_docs/API_docs_v65/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v65/methods/messages_readHistory.md +++ b/old_docs/API_docs_v65/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_search.md b/old_docs/API_docs_v65/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v65/methods/messages_search.md +++ b/old_docs/API_docs_v65/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendMedia.md b/old_docs/API_docs_v65/methods/messages_sendMedia.md index 8c22e1c9..6661e661 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v65/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -40,6 +41,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v66/methods/channels_leaveChannel.md b/old_docs/API_docs_v66/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v66/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v66/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v66/methods/invokeWithLayer.md b/old_docs/API_docs_v66/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v66/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v66/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessages.md b/old_docs/API_docs_v66/methods/messages_forwardMessages.md index 0f649200..b5e9b7e7 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessages.md @@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v66/methods/messages_readHistory.md b/old_docs/API_docs_v66/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v66/methods/messages_readHistory.md +++ b/old_docs/API_docs_v66/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_search.md b/old_docs/API_docs_v66/methods/messages_search.md index 5f49d016..87073d00 100644 --- a/old_docs/API_docs_v66/methods/messages_search.md +++ b/old_docs/API_docs_v66/methods/messages_search.md @@ -29,6 +29,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendMedia.md b/old_docs/API_docs_v66/methods/messages_sendMedia.md index 8c22e1c9..6661e661 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v66/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -40,6 +41,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v68/methods/channels_leaveChannel.md b/old_docs/API_docs_v68/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v68/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v68/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v68/methods/invokeWithLayer.md b/old_docs/API_docs_v68/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v68/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v68/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessages.md b/old_docs/API_docs_v68/methods/messages_forwardMessages.md index 0f649200..b5e9b7e7 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessages.md @@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v68/methods/messages_readHistory.md b/old_docs/API_docs_v68/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v68/methods/messages_readHistory.md +++ b/old_docs/API_docs_v68/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_search.md b/old_docs/API_docs_v68/methods/messages_search.md index 0ae797ca..ea39ef5d 100644 --- a/old_docs/API_docs_v68/methods/messages_search.md +++ b/old_docs/API_docs_v68/methods/messages_search.md @@ -30,6 +30,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendMedia.md b/old_docs/API_docs_v68/methods/messages_sendMedia.md index 8c22e1c9..6661e661 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v68/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -40,6 +41,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md index 02ec673b..7c5b6821 100644 --- a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md @@ -28,7 +28,11 @@ description: stickers.createStickerSet parameters, return type and example |----------|---------------| |BOT_MISSING|This method can only be run by a bot| |PACK_SHORT_NAME_INVALID|Short pack name invalid| +|PACK_SHORT_NAME_OCCUPIED|A stickerpack with this name already exists| |PEER_ID_INVALID|The provided peer id is invalid| +|STICKER_EMOJI_INVALID|Sticker emoji invalid| +|STICKER_FILE_INVALID|Sticker file invalid| +|STICKER_PNG_DIMENSIONS|Sticker png dimensions invalid| |STICKERS_EMPTY|No sticker provided| |USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v70/methods/channels_leaveChannel.md b/old_docs/API_docs_v70/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v70/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v70/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v70/methods/invokeWithLayer.md b/old_docs/API_docs_v70/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v70/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v70/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessages.md b/old_docs/API_docs_v70/methods/messages_forwardMessages.md index 0f649200..b5e9b7e7 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessages.md @@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v70/methods/messages_readHistory.md b/old_docs/API_docs_v70/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v70/methods/messages_readHistory.md +++ b/old_docs/API_docs_v70/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_search.md b/old_docs/API_docs_v70/methods/messages_search.md index 0ae797ca..ea39ef5d 100644 --- a/old_docs/API_docs_v70/methods/messages_search.md +++ b/old_docs/API_docs_v70/methods/messages_search.md @@ -30,6 +30,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendMedia.md b/old_docs/API_docs_v70/methods/messages_sendMedia.md index 8c22e1c9..6661e661 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v70/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -40,6 +41,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md index 02ec673b..7c5b6821 100644 --- a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md @@ -28,7 +28,11 @@ description: stickers.createStickerSet parameters, return type and example |----------|---------------| |BOT_MISSING|This method can only be run by a bot| |PACK_SHORT_NAME_INVALID|Short pack name invalid| +|PACK_SHORT_NAME_OCCUPIED|A stickerpack with this name already exists| |PEER_ID_INVALID|The provided peer id is invalid| +|STICKER_EMOJI_INVALID|Sticker emoji invalid| +|STICKER_FILE_INVALID|Sticker file invalid| +|STICKER_PNG_DIMENSIONS|Sticker png dimensions invalid| |STICKERS_EMPTY|No sticker provided| |USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v71/methods/channels_leaveChannel.md b/old_docs/API_docs_v71/methods/channels_leaveChannel.md index dcb11a21..12902f6d 100644 --- a/old_docs/API_docs_v71/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v71/methods/channels_leaveChannel.md @@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example |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_PUBLIC_GROUP_NA|channel/supergroup not available| ### Example: diff --git a/old_docs/API_docs_v71/methods/invokeWithLayer.md b/old_docs/API_docs_v71/methods/invokeWithLayer.md index b56a7b57..fc587a3f 100644 --- a/old_docs/API_docs_v71/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v71/methods/invokeWithLayer.md @@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example |CONNECTION_API_ID_INVALID|The provided API id is invalid| |CONNECTION_LANG_PACK_INVALID|Language pack invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_forwardMessages.md b/old_docs/API_docs_v71/methods/messages_forwardMessages.md index 0f649200..b5e9b7e7 100644 --- a/old_docs/API_docs_v71/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v71/methods/messages_forwardMessages.md @@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example |CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |CHAT_ID_INVALID|The provided chat id is invalid| +|GROUPED_MEDIA_INVALID|Invalid grouped media| |INPUT_USER_DEACTIVATED|The specified user was deleted| |MEDIA_EMPTY|The provided media object is invalid| |MESSAGE_ID_INVALID|The provided message id is invalid| diff --git a/old_docs/API_docs_v71/methods/messages_readHistory.md b/old_docs/API_docs_v71/methods/messages_readHistory.md index 3c1da836..1aa7830a 100644 --- a/old_docs/API_docs_v71/methods/messages_readHistory.md +++ b/old_docs/API_docs_v71/methods/messages_readHistory.md @@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example | Error | Description | |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_search.md b/old_docs/API_docs_v71/methods/messages_search.md index ca82742c..14b02f8f 100644 --- a/old_docs/API_docs_v71/methods/messages_search.md +++ b/old_docs/API_docs_v71/methods/messages_search.md @@ -32,6 +32,7 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |INPUT_USER_DEACTIVATED|The specified user was deleted| |PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md index f589a382..e9848753 100644 --- a/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |DATA_INVALID|Encrypted data invalid| |MSG_WAIT_FAILED|A waiting call returned an error| +|USER_IS_BLOCKED|User is blocked| ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_sendMedia.md b/old_docs/API_docs_v71/methods/messages_sendMedia.md index 8c22e1c9..6661e661 100644 --- a/old_docs/API_docs_v71/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v71/methods/messages_sendMedia.md @@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example |----------|---------------| |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| |EXTERNAL_URL_INVALID|External URL invalid| |FILE_PART_0_MISSING|File part 0 missing| |FILE_PART_6_MISSING|File part 6 missing| @@ -40,6 +41,8 @@ description: messages.sendMedia parameters, return type and example |MEDIA_EMPTY|The provided media object is invalid| |PEER_ID_INVALID|The provided peer id is invalid| |PHOTO_EXT_INVALID|The extension of the photo is invalid| +|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |USER_IS_BLOCKED|User is blocked| |USER_IS_BOT|Bots can't send messages to other bots| |WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| diff --git a/old_docs/API_docs_v71/methods/stickers_createStickerSet.md b/old_docs/API_docs_v71/methods/stickers_createStickerSet.md index 02ec673b..7c5b6821 100644 --- a/old_docs/API_docs_v71/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v71/methods/stickers_createStickerSet.md @@ -28,7 +28,11 @@ description: stickers.createStickerSet parameters, return type and example |----------|---------------| |BOT_MISSING|This method can only be run by a bot| |PACK_SHORT_NAME_INVALID|Short pack name invalid| +|PACK_SHORT_NAME_OCCUPIED|A stickerpack with this name already exists| |PEER_ID_INVALID|The provided peer id is invalid| +|STICKER_EMOJI_INVALID|Sticker emoji invalid| +|STICKER_FILE_INVALID|Sticker file invalid| +|STICKER_PNG_DIMENSIONS|Sticker png dimensions invalid| |STICKERS_EMPTY|No sticker provided| |USER_ID_INVALID|The provided user ID is invalid| diff --git a/src/danog/MadelineProto/API.php b/src/danog/MadelineProto/API.php index 0dd5709f..02cbf187 100644 --- a/src/danog/MadelineProto/API.php +++ b/src/danog/MadelineProto/API.php @@ -64,10 +64,10 @@ class API extends APIFactory if ($unserialized === false) { throw new Exception(\danog\MadelineProto\Lang::$current_lang['deserialization_error']); } - - $this->API = $unserialized->API; - $this->APIFactory(); - + if (isset($unserialized->API)) { + $this->API = $unserialized->API; + $this->APIFactory(); + } return; } $this->API = new MTProto($params); diff --git a/src/danog/MadelineProto/Lua.php b/src/danog/MadelineProto/Lua.php index 6bb0645a..04d99607 100644 --- a/src/danog/MadelineProto/Lua.php +++ b/src/danog/MadelineProto/Lua.php @@ -41,6 +41,7 @@ class Lua $this->madelineproto_lua = 1; $this->Lua->registerCallback('tdcli_function', [$this, 'tdcli_function']); $this->Lua->registerCallback('madeline_function', [$this, 'madeline_function']); + $this->Lua->registerCallback('var_dump', 'var_dump'); foreach (get_class_methods($this->MadelineProto->API) as $method) { $this->Lua->registerCallback($method, [$this->MadelineProto, $method]); } diff --git a/src/danog/MadelineProto/Serialization.php b/src/danog/MadelineProto/Serialization.php index 5c9c2da6..5d5643e3 100644 --- a/src/danog/MadelineProto/Serialization.php +++ b/src/danog/MadelineProto/Serialization.php @@ -58,6 +58,48 @@ class Serialization */ public static function deserialize($filename, $no_updates = false) { - return new \danog\MadelineProto\API($filename); + if (file_exists($filename)) { + if (!file_exists($lock = $filename.'.lock')) { + touch($lock); + clearstatcache(); + } + $lock = fopen($lock, 'r'); + flock($lock, LOCK_SH); + $unserialized = file_get_contents($filename); + flock($lock, LOCK_UN); + fclose($lock); + + $tounserialize = str_replace('O:26:"danog\MadelineProto\Button":', 'O:35:"danog\MadelineProto\TL\Types\Button":', $unserialized); + foreach (['RSA', 'TL\TLMethod', 'TL\TLConstructor', 'MTProto', 'API', 'DataCenter', 'Connection', 'TL\Types\Button', 'TL\Types\Bytes', 'APIFactory'] as $class) { + class_exists('\danog\MadelineProto\\'.$class); + } + class_exists('\Volatile'); + \danog\MadelineProto\Logger::class_exists(); + + try { + // $unserialized = \danog\Serialization::unserialize($tounserialize); + $unserialized = unserialize($tounserialize); + } catch (\danog\MadelineProto\Bug74586Exception $e) { + $unserialized = \danog\Serialization::unserialize($tounserialize); + } catch (\danog\MadelineProto\Exception $e) { + if (Logger::$constructed) { + Logger::log([(string) $e], Logger::ERROR); + } + if (strpos($e->getMessage(), "Erroneous data format for unserializing 'phpseclib\Math\BigInteger'") === 0) { + $tounserialize = str_replace('phpseclib\Math\BigInteger', 'phpseclib\Math\BigIntegor', $unserialized); + } + $unserialized = \danog\Serialization::unserialize($tounserialize); + } + if ($unserialized instanceof \danog\PlaceHolder) { + $unserialized = \danog\Serialization::unserialize($tounserialize); + } + } else { + throw new Exception(\danog\MadelineProto\Lang::$current_lang['file_not_exist']); + } + if ($unserialized === false) { + throw new Exception(\danog\MadelineProto\Lang::$current_lang['deserialization_error']); + } + if ($unserialized instanceof \danog\MadelineProto\API) $unserialized->session = $filename; + return $unserialized; } }