Bugfixes
This commit is contained in:
parent
ca4eca2049
commit
6899f7bfbf
@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|USER_CREATOR|You can't leave this channel, because you're its creator|
|
|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|
|
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||||
|
|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -32,6 +32,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -28,7 +28,11 @@ description: stickers.createStickerSet parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|BOT_MISSING|This method can only be run by a bot|
|
|BOT_MISSING|This method can only be run by a bot|
|
||||||
|PACK_SHORT_NAME_INVALID|Short pack name invalid|
|
|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|
|
|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|
|
|STICKERS_EMPTY|No sticker provided|
|
||||||
|USER_ID_INVALID|The provided user ID is invalid|
|
|USER_ID_INVALID|The provided user ID is invalid|
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ $settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb
|
|||||||
$Lua = false;
|
$Lua = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$Lua = new \danog\MadelineProto\API('bot.madeline');
|
$Lua = \danog\MadelineProto\Serialization::deserialize('bot.madeline');
|
||||||
} catch (\danog\MadelineProto\Exception $e) {
|
} catch (\danog\MadelineProto\Exception $e) {
|
||||||
}
|
}
|
||||||
if (!is_object($Lua)) {
|
if (!is_object($Lua)) {
|
||||||
@ -53,7 +53,6 @@ if (!is_object($Lua)) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$offset = 0;
|
$offset = 0;
|
||||||
while (true) {
|
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
|
$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
|
||||||
|
@ -16,7 +16,7 @@ $settings = [];
|
|||||||
$Lua = false;
|
$Lua = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$Lua = new \danog\MadelineProto\API('td.madeline');
|
$Lua = \danog\MadelineProto\Serialization::deserialize('td.madeline');
|
||||||
} catch (\danog\MadelineProto\Exception $e) {
|
} catch (\danog\MadelineProto\Exception $e) {
|
||||||
}
|
}
|
||||||
if (!is_object($Lua)) {
|
if (!is_object($Lua)) {
|
||||||
|
@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -26,6 +26,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -26,6 +26,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -26,6 +26,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -26,6 +26,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -27,6 +27,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|USER_CREATOR|You can't leave this channel, because you're its creator|
|
|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|
|
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||||
|
|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -27,6 +27,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -27,6 +27,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -27,6 +27,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|USER_CREATOR|You can't leave this channel, because you're its creator|
|
|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|
|
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||||
|
|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -30,6 +30,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|USER_CREATOR|You can't leave this channel, because you're its creator|
|
|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|
|
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||||
|
|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -30,6 +30,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|USER_CREATOR|You can't leave this channel, because you're its creator|
|
|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|
|
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||||
|
|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -30,6 +30,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|USER_CREATOR|You can't leave this channel, because you're its creator|
|
|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|
|
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||||
|
|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -30,6 +30,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|USER_CREATOR|You can't leave this channel, because you're its creator|
|
|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|
|
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||||
|
|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -30,6 +30,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|USER_CREATOR|You can't leave this channel, because you're its creator|
|
|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|
|
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||||
|
|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -31,6 +31,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -30,6 +30,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -30,6 +30,7 @@ description: messages.sendMedia parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|CHANNEL_INVALID|The provided channel is invalid|
|
|CHANNEL_INVALID|The provided channel is invalid|
|
||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|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|
|
|EXTERNAL_URL_INVALID|External URL invalid|
|
||||||
|FILE_PART_0_MISSING|File part 0 missing|
|
|FILE_PART_0_MISSING|File part 0 missing|
|
||||||
|FILE_PART_6_MISSING|File part 6 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|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|PHOTO_EXT_INVALID|The extension of the photo 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_BLOCKED|User is blocked|
|
||||||
|USER_IS_BOT|Bots can't send messages to other bots|
|
|USER_IS_BOT|Bots can't send messages to other bots|
|
||||||
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL|
|
||||||
|
@ -26,6 +26,7 @@ description: channels.leaveChannel parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|USER_CREATOR|You can't leave this channel, because you're its creator|
|
|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|
|
|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel|
|
||||||
|
|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -28,6 +28,7 @@ description: invokeWithLayer parameters, return type and example
|
|||||||
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
|CONNECTION_API_ID_INVALID|The provided API id is invalid|
|
||||||
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
|CONNECTION_LANG_PACK_INVALID|Language pack invalid|
|
||||||
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
|INPUT_LAYER_INVALID|The provided layer is invalid|
|
||||||
|
|CHAT_WRITE_FORBIDDEN|You can't write in this chat|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -30,6 +30,7 @@ description: messages.forwardMessages parameters, return type and example
|
|||||||
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
|CHANNEL_PRIVATE|You haven't joined this channel/supergroup|
|
||||||
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this|
|
||||||
|CHAT_ID_INVALID|The provided chat id is invalid|
|
|CHAT_ID_INVALID|The provided chat id is invalid|
|
||||||
|
|GROUPED_MEDIA_INVALID|Invalid grouped media|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|MEDIA_EMPTY|The provided media object is invalid|
|
|MEDIA_EMPTY|The provided media object is invalid|
|
||||||
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
|MESSAGE_ID_INVALID|The provided message id is invalid|
|
||||||
|
@ -24,6 +24,7 @@ description: messages.readHistory parameters, return type and example
|
|||||||
| Error | Description |
|
| Error | Description |
|
||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
|Timeout|A timeout occurred while fetching data from the bot|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
@ -29,6 +29,7 @@ description: messages.search parameters, return type and example
|
|||||||
|
|
||||||
| Error | Description |
|
| 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_CONSTRUCTOR_INVALID|The provided constructor is invalid|
|
||||||
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
|INPUT_USER_DEACTIVATED|The specified user was deleted|
|
||||||
|PEER_ID_INVALID|The provided peer id is invalid|
|
|PEER_ID_INVALID|The provided peer id is invalid|
|
||||||
|
@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example
|
|||||||
|----------|---------------|
|
|----------|---------------|
|
||||||
|DATA_INVALID|Encrypted data invalid|
|
|DATA_INVALID|Encrypted data invalid|
|
||||||
|MSG_WAIT_FAILED|A waiting call returned an error|
|
|MSG_WAIT_FAILED|A waiting call returned an error|
|
||||||
|
|USER_IS_BLOCKED|User is blocked|
|
||||||
|
|
||||||
|
|
||||||
### Example:
|
### Example:
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user