From e5da891ac2e3fc11f45d85be38001db245a012f6 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 3 Nov 2017 15:02:01 +0300 Subject: [PATCH] Docufix, changed deserialization API, added php 7 check --- README.md | 162 ++++++++++++++++-- bot.php | 2 +- docs/API_docs/methods/account_changePhone.md | 7 - .../API_docs/methods/account_checkUsername.md | 7 - docs/API_docs/methods/account_confirmPhone.md | 8 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - docs/API_docs/methods/account_getPrivacy.md | 7 - .../methods/account_getTmpPassword.md | 7 - .../methods/account_registerDevice.md | 7 - docs/API_docs/methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_sendConfirmPhoneCode.md | 7 - .../API_docs/methods/account_setAccountTTL.md | 7 - docs/API_docs/methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../API_docs/methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - docs/API_docs/methods/auth_bindTempAuthKey.md | 9 - docs/API_docs/methods/auth_cancelCode.md | 7 - docs/API_docs/methods/auth_checkPassword.md | 7 - docs/API_docs/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - docs/API_docs/methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - docs/API_docs/methods/auth_resendCode.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - docs/API_docs/methods/auth_sendInvites.md | 7 - .../methods/bots_answerWebhookJSONQuery.md | 8 - .../methods/bots_sendCustomRequest.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - docs/API_docs/methods/channels_editAbout.md | 9 - docs/API_docs/methods/channels_editAdmin.md | 14 -- docs/API_docs/methods/channels_editBanned.md | 11 -- docs/API_docs/methods/channels_editPhoto.md | 7 - docs/API_docs/methods/channels_editTitle.md | 9 - .../API_docs/methods/channels_exportInvite.md | 9 - .../methods/channels_exportMessageLink.md | 7 - docs/API_docs/methods/channels_getAdminLog.md | 8 - docs/API_docs/methods/channels_getChannels.md | 9 - docs/API_docs/methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- docs/API_docs/methods/channels_joinChannel.md | 9 - .../API_docs/methods/channels_leaveChannel.md | 10 -- docs/API_docs/methods/channels_readHistory.md | 7 - .../methods/channels_readMessageContents.md | 7 - docs/API_docs/methods/channels_reportSpam.md | 7 - docs/API_docs/methods/channels_setStickers.md | 8 - .../methods/channels_toggleInvites.md | 8 - .../methods/channels_toggleSignatures.md | 7 - .../methods/channels_updatePinnedMessage.md | 9 - .../methods/channels_updateUsername.md | 10 -- docs/API_docs/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - docs/API_docs/methods/contacts_getTopPeers.md | 7 - docs/API_docs/methods/contacts_importCard.md | 8 - .../methods/contacts_resetTopPeerRating.md | 7 - docs/API_docs/methods/contacts_search.md | 8 - docs/API_docs/methods/contacts_unblock.md | 7 - docs/API_docs/methods/index.md | 2 +- docs/API_docs/methods/initConnection.md | 8 - docs/API_docs/methods/invokeWithLayer.md | 10 -- .../methods/langpack_getDifference.md | 7 - docs/API_docs/methods/langpack_getLangPack.md | 7 - .../API_docs/methods/langpack_getLanguages.md | 7 - docs/API_docs/methods/langpack_getStrings.md | 7 - docs/API_docs/methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - docs/API_docs/methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_editInlineBotMessage.md | 8 - docs/API_docs/methods/messages_editMessage.md | 14 -- .../methods/messages_exportChatInvite.md | 7 - docs/API_docs/methods/messages_faveSticker.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../methods/messages_getBotCallbackAnswer.md | 10 -- docs/API_docs/methods/messages_getChats.md | 8 - .../methods/messages_getCommonChats.md | 7 - docs/API_docs/methods/messages_getDhConfig.md | 7 - docs/API_docs/methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getGameHighScores.md | 8 - docs/API_docs/methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../messages_getInlineGameHighScores.md | 8 - .../methods/messages_getMessageEditData.md | 8 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getPeerDialogs.md | 8 - .../methods/messages_getPeerSettings.md | 8 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_getUnreadMentions.md | 7 - .../methods/messages_hideReportSpam.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - docs/API_docs/methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - docs/API_docs/methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reorderPinnedDialogs.md | 7 - .../methods/messages_reportEncryptedSpam.md | 7 - docs/API_docs/methods/messages_reportSpam.md | 7 - docs/API_docs/methods/messages_saveDraft.md | 7 - docs/API_docs/methods/messages_saveGif.md | 7 - .../methods/messages_saveRecentSticker.md | 7 - docs/API_docs/methods/messages_search.md | 11 -- docs/API_docs/methods/messages_searchGifs.md | 7 - .../API_docs/methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - docs/API_docs/methods/messages_sendMedia.md | 21 --- docs/API_docs/methods/messages_sendMessage.md | 25 --- .../messages_sendScreenshotNotification.md | 7 - .../methods/messages_setBotCallbackAnswer.md | 7 - .../messages_setBotPrecheckoutResults.md | 7 - .../methods/messages_setBotShippingResults.md | 7 - .../methods/messages_setEncryptedTyping.md | 7 - .../API_docs/methods/messages_setGameScore.md | 8 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setInlineGameScore.md | 8 - docs/API_docs/methods/messages_setTyping.md | 11 -- docs/API_docs/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_toggleDialogPin.md | 7 - .../methods/messages_uninstallStickerSet.md | 7 - docs/API_docs/methods/messages_uploadMedia.md | 8 - .../methods/payments_getPaymentForm.md | 7 - .../methods/payments_getPaymentReceipt.md | 7 - .../methods/payments_sendPaymentForm.md | 7 - .../methods/payments_validateRequestedInfo.md | 7 - docs/API_docs/methods/phone_receivedCall.md | 8 - docs/API_docs/methods/phone_saveCallDebug.md | 8 - docs/API_docs/methods/phone_setCallRating.md | 7 - docs/API_docs/methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../methods/stickers_addStickerToSet.md | 8 - .../methods/stickers_changeStickerPosition.md | 8 - .../methods/stickers_createStickerSet.md | 11 -- .../methods/stickers_removeStickerFromSet.md | 8 - docs/API_docs/methods/upload_getWebFile.md | 7 - docs/API_docs/methods/users_getUsers.md | 8 - docs/MTProto_docs/methods/index.md | 2 +- docs/TD_docs/methods/index.md | 2 +- docs/index.md | 162 ++++++++++++++++-- lua/madeline.php | 2 +- lua/td.php | 2 +- magna.php | 2 +- old_docs/API_docs_v18/methods/README.md | 2 +- .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v18/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v18/methods/auth_sendInvites.md | 7 - .../API_docs_v18/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v18/methods/contacts_search.md | 8 - .../API_docs_v18/methods/contacts_unblock.md | 7 - .../API_docs_v18/methods/initConnection.md | 8 - .../methods/messages_addChatUser.md | 14 -- .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v18/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../API_docs_v18/methods/messages_search.md | 11 -- .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setTyping.md | 11 -- .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v18/methods/users_getUsers.md | 8 - old_docs/API_docs_v23/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v23/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v23/methods/auth_sendInvites.md | 7 - .../API_docs_v23/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v23/methods/contacts_search.md | 8 - .../API_docs_v23/methods/contacts_unblock.md | 7 - .../API_docs_v23/methods/initConnection.md | 8 - .../API_docs_v23/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v23/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../API_docs_v23/methods/messages_search.md | 11 -- .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setTyping.md | 11 -- .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v23/methods/users_getUsers.md | 8 - old_docs/API_docs_v25/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v25/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v25/methods/auth_sendInvites.md | 7 - .../API_docs_v25/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v25/methods/contacts_search.md | 8 - .../API_docs_v25/methods/contacts_unblock.md | 7 - .../API_docs_v25/methods/initConnection.md | 8 - .../API_docs_v25/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v25/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../API_docs_v25/methods/messages_search.md | 11 -- .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setTyping.md | 11 -- .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v25/methods/users_getUsers.md | 8 - old_docs/API_docs_v27/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v27/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v27/methods/auth_sendInvites.md | 7 - .../API_docs_v27/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v27/methods/contacts_search.md | 8 - .../API_docs_v27/methods/contacts_unblock.md | 7 - .../API_docs_v27/methods/initConnection.md | 8 - .../API_docs_v27/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v27/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../API_docs_v27/methods/messages_search.md | 11 -- .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setTyping.md | 11 -- .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v27/methods/users_getUsers.md | 8 - old_docs/API_docs_v33/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v33/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v33/methods/auth_sendInvites.md | 7 - .../API_docs_v33/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v33/methods/contacts_search.md | 8 - .../API_docs_v33/methods/contacts_unblock.md | 7 - .../API_docs_v33/methods/initConnection.md | 8 - .../API_docs_v33/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v33/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getStickerSet.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../API_docs_v33/methods/messages_search.md | 11 -- .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v33/methods/messages_startBot.md | 9 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v33/methods/users_getUsers.md | 8 - old_docs/API_docs_v38/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v38/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v38/methods/auth_sendInvites.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v38/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v38/methods/contacts_search.md | 8 - .../API_docs_v38/methods/contacts_unblock.md | 7 - .../API_docs_v38/methods/initConnection.md | 8 - .../API_docs_v38/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v38/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../API_docs_v38/methods/messages_search.md | 11 -- .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v38/methods/messages_startBot.md | 9 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v38/methods/users_getUsers.md | 8 - old_docs/API_docs_v40/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v40/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v40/methods/auth_sendInvites.md | 7 - .../API_docs_v40/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v40/methods/contacts_search.md | 8 - .../API_docs_v40/methods/contacts_unblock.md | 7 - .../API_docs_v40/methods/initConnection.md | 8 - .../API_docs_v40/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v40/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getStickerSet.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../API_docs_v40/methods/messages_search.md | 11 -- .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v40/methods/messages_startBot.md | 9 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v40/methods/users_getUsers.md | 8 - old_docs/API_docs_v41/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v41/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v41/methods/auth_sendInvites.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v41/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v41/methods/contacts_search.md | 8 - .../API_docs_v41/methods/contacts_unblock.md | 7 - .../API_docs_v41/methods/initConnection.md | 8 - .../API_docs_v41/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v41/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../API_docs_v41/methods/messages_search.md | 11 -- .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v41/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v41/methods/users_getUsers.md | 8 - old_docs/API_docs_v42/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v42/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v42/methods/auth_sendInvites.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v42/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v42/methods/contacts_search.md | 8 - .../API_docs_v42/methods/contacts_unblock.md | 7 - .../API_docs_v42/methods/initConnection.md | 8 - .../API_docs_v42/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v42/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../API_docs_v42/methods/messages_search.md | 11 -- .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v42/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v42/methods/users_getUsers.md | 8 - old_docs/API_docs_v44/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v44/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v44/methods/auth_sendInvites.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v44/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v44/methods/contacts_search.md | 8 - .../API_docs_v44/methods/contacts_unblock.md | 7 - .../API_docs_v44/methods/initConnection.md | 8 - .../API_docs_v44/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v44/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../API_docs_v44/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v44/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v44/methods/users_getUsers.md | 8 - old_docs/API_docs_v45/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v45/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v45/methods/auth_sendInvites.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v45/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v45/methods/contacts_search.md | 8 - .../API_docs_v45/methods/contacts_unblock.md | 7 - .../API_docs_v45/methods/initConnection.md | 8 - .../API_docs_v45/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v45/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../API_docs_v45/methods/messages_saveGif.md | 7 - .../API_docs_v45/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setTyping.md | 11 -- .../API_docs_v45/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v45/methods/users_getUsers.md | 8 - old_docs/API_docs_v46/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v46/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v46/methods/auth_sendInvites.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v46/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v46/methods/contacts_search.md | 8 - .../API_docs_v46/methods/contacts_unblock.md | 7 - .../API_docs_v46/methods/initConnection.md | 8 - .../API_docs_v46/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../API_docs_v46/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../API_docs_v46/methods/messages_saveGif.md | 7 - .../API_docs_v46/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setTyping.md | 11 -- .../API_docs_v46/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v46/methods/users_getUsers.md | 8 - old_docs/API_docs_v51/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v51/methods/auth_cancelCode.md | 7 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v51/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../API_docs_v51/methods/auth_resendCode.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v51/methods/auth_sendInvites.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_exportMessageLink.md | 7 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_toggleInvites.md | 8 - .../methods/channels_toggleSignatures.md | 7 - .../methods/channels_updatePinnedMessage.md | 9 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v51/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_importCard.md | 8 - .../API_docs_v51/methods/contacts_search.md | 8 - .../API_docs_v51/methods/contacts_unblock.md | 7 - .../API_docs_v51/methods/initConnection.md | 8 - .../API_docs_v51/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_editInlineBotMessage.md | 8 - .../methods/messages_editMessage.md | 14 -- .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../methods/messages_getBotCallbackAnswer.md | 10 -- .../API_docs_v51/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../methods/messages_getMessageEditData.md | 8 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getPeerSettings.md | 8 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_hideReportSpam.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../API_docs_v51/methods/messages_saveGif.md | 7 - .../API_docs_v51/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setBotCallbackAnswer.md | 7 - .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setTyping.md | 11 -- .../API_docs_v51/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v51/methods/users_getUsers.md | 8 - old_docs/API_docs_v53/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v53/methods/auth_cancelCode.md | 7 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v53/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../API_docs_v53/methods/auth_resendCode.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v53/methods/auth_sendInvites.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_exportMessageLink.md | 7 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_toggleInvites.md | 8 - .../methods/channels_toggleSignatures.md | 7 - .../methods/channels_updatePinnedMessage.md | 9 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v53/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_getTopPeers.md | 7 - .../methods/contacts_importCard.md | 8 - .../methods/contacts_resetTopPeerRating.md | 7 - .../API_docs_v53/methods/contacts_search.md | 8 - .../API_docs_v53/methods/contacts_unblock.md | 7 - .../API_docs_v53/methods/initConnection.md | 8 - .../API_docs_v53/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_editInlineBotMessage.md | 8 - .../methods/messages_editMessage.md | 14 -- .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../methods/messages_getBotCallbackAnswer.md | 10 -- .../API_docs_v53/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../methods/messages_getMessageEditData.md | 8 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getPeerDialogs.md | 8 - .../methods/messages_getPeerSettings.md | 8 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_hideReportSpam.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../methods/messages_saveDraft.md | 7 - .../API_docs_v53/methods/messages_saveGif.md | 7 - .../API_docs_v53/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setBotCallbackAnswer.md | 7 - .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setTyping.md | 11 -- .../API_docs_v53/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v53/methods/users_getUsers.md | 8 - old_docs/API_docs_v55/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_confirmPhone.md | 8 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_sendConfirmPhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v55/methods/auth_cancelCode.md | 7 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v55/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../API_docs_v55/methods/auth_resendCode.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v55/methods/auth_sendInvites.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_exportMessageLink.md | 7 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_toggleInvites.md | 8 - .../methods/channels_toggleSignatures.md | 7 - .../methods/channels_updatePinnedMessage.md | 9 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v55/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_getTopPeers.md | 7 - .../methods/contacts_importCard.md | 8 - .../methods/contacts_resetTopPeerRating.md | 7 - .../API_docs_v55/methods/contacts_search.md | 8 - .../API_docs_v55/methods/contacts_unblock.md | 7 - .../API_docs_v55/methods/initConnection.md | 8 - .../API_docs_v55/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_editInlineBotMessage.md | 8 - .../methods/messages_editMessage.md | 14 -- .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../methods/messages_getBotCallbackAnswer.md | 10 -- .../API_docs_v55/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../methods/messages_getMessageEditData.md | 8 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getPeerDialogs.md | 8 - .../methods/messages_getPeerSettings.md | 8 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_hideReportSpam.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../methods/messages_saveDraft.md | 7 - .../API_docs_v55/methods/messages_saveGif.md | 7 - .../methods/messages_saveRecentSticker.md | 7 - .../API_docs_v55/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setBotCallbackAnswer.md | 7 - .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setTyping.md | 11 -- .../API_docs_v55/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v55/methods/users_getUsers.md | 8 - old_docs/API_docs_v57/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_confirmPhone.md | 8 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_sendConfirmPhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v57/methods/auth_cancelCode.md | 7 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v57/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../API_docs_v57/methods/auth_resendCode.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v57/methods/auth_sendInvites.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_exportMessageLink.md | 7 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_toggleInvites.md | 8 - .../methods/channels_toggleSignatures.md | 7 - .../methods/channels_updatePinnedMessage.md | 9 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v57/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_getTopPeers.md | 7 - .../methods/contacts_importCard.md | 8 - .../methods/contacts_resetTopPeerRating.md | 7 - .../API_docs_v57/methods/contacts_search.md | 8 - .../API_docs_v57/methods/contacts_unblock.md | 7 - .../API_docs_v57/methods/initConnection.md | 8 - .../API_docs_v57/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_editInlineBotMessage.md | 8 - .../methods/messages_editMessage.md | 14 -- .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../methods/messages_getBotCallbackAnswer.md | 10 -- .../API_docs_v57/methods/messages_getChats.md | 8 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getGameHighScores.md | 8 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../messages_getInlineGameHighScores.md | 8 - .../methods/messages_getMessageEditData.md | 8 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getPeerDialogs.md | 8 - .../methods/messages_getPeerSettings.md | 8 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_hideReportSpam.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reportSpam.md | 7 - .../methods/messages_saveDraft.md | 7 - .../API_docs_v57/methods/messages_saveGif.md | 7 - .../methods/messages_saveRecentSticker.md | 7 - .../API_docs_v57/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setBotCallbackAnswer.md | 7 - .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setGameScore.md | 8 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setInlineGameScore.md | 8 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v57/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v57/methods/users_getUsers.md | 8 - old_docs/API_docs_v62/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_confirmPhone.md | 8 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_sendConfirmPhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v62/methods/auth_cancelCode.md | 7 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v62/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../API_docs_v62/methods/auth_resendCode.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v62/methods/auth_sendInvites.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_exportMessageLink.md | 7 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_toggleInvites.md | 8 - .../methods/channels_toggleSignatures.md | 7 - .../methods/channels_updatePinnedMessage.md | 9 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v62/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_getTopPeers.md | 7 - .../methods/contacts_importCard.md | 8 - .../methods/contacts_resetTopPeerRating.md | 7 - .../API_docs_v62/methods/contacts_search.md | 8 - .../API_docs_v62/methods/contacts_unblock.md | 7 - .../API_docs_v62/methods/initConnection.md | 8 - .../API_docs_v62/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_editInlineBotMessage.md | 8 - .../methods/messages_editMessage.md | 14 -- .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../methods/messages_getBotCallbackAnswer.md | 10 -- .../API_docs_v62/methods/messages_getChats.md | 8 - .../methods/messages_getCommonChats.md | 7 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getGameHighScores.md | 8 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../messages_getInlineGameHighScores.md | 8 - .../methods/messages_getMessageEditData.md | 8 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getPeerDialogs.md | 8 - .../methods/messages_getPeerSettings.md | 8 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_hideReportSpam.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reorderPinnedDialogs.md | 7 - .../methods/messages_reportEncryptedSpam.md | 7 - .../methods/messages_reportSpam.md | 7 - .../methods/messages_saveDraft.md | 7 - .../API_docs_v62/methods/messages_saveGif.md | 7 - .../methods/messages_saveRecentSticker.md | 7 - .../API_docs_v62/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setBotCallbackAnswer.md | 7 - .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setGameScore.md | 8 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setInlineGameScore.md | 8 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v62/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_toggleDialogPin.md | 7 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/phone_receivedCall.md | 8 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v62/methods/users_getUsers.md | 8 - old_docs/API_docs_v65/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_confirmPhone.md | 8 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_getTmpPassword.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_sendConfirmPhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v65/methods/auth_cancelCode.md | 7 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v65/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../API_docs_v65/methods/auth_resendCode.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v65/methods/auth_sendInvites.md | 7 - .../methods/bots_answerWebhookJSONQuery.md | 8 - .../methods/bots_sendCustomRequest.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_exportMessageLink.md | 7 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_toggleInvites.md | 8 - .../methods/channels_toggleSignatures.md | 7 - .../methods/channels_updatePinnedMessage.md | 9 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v65/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_getTopPeers.md | 7 - .../methods/contacts_importCard.md | 8 - .../methods/contacts_resetTopPeerRating.md | 7 - .../API_docs_v65/methods/contacts_search.md | 8 - .../API_docs_v65/methods/contacts_unblock.md | 7 - .../API_docs_v65/methods/initConnection.md | 8 - .../API_docs_v65/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_editInlineBotMessage.md | 8 - .../methods/messages_editMessage.md | 14 -- .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../methods/messages_getBotCallbackAnswer.md | 10 -- .../API_docs_v65/methods/messages_getChats.md | 8 - .../methods/messages_getCommonChats.md | 7 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getGameHighScores.md | 8 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../messages_getInlineGameHighScores.md | 8 - .../methods/messages_getMessageEditData.md | 8 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getPeerDialogs.md | 8 - .../methods/messages_getPeerSettings.md | 8 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_hideReportSpam.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reorderPinnedDialogs.md | 7 - .../methods/messages_reportEncryptedSpam.md | 7 - .../methods/messages_reportSpam.md | 7 - .../methods/messages_saveDraft.md | 7 - .../API_docs_v65/methods/messages_saveGif.md | 7 - .../methods/messages_saveRecentSticker.md | 7 - .../API_docs_v65/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setBotCallbackAnswer.md | 7 - .../messages_setBotPrecheckoutResults.md | 7 - .../methods/messages_setBotShippingResults.md | 7 - .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setGameScore.md | 8 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setInlineGameScore.md | 8 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v65/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_toggleDialogPin.md | 7 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/payments_getPaymentForm.md | 7 - .../methods/payments_getPaymentReceipt.md | 7 - .../methods/payments_sendPaymentForm.md | 7 - .../methods/payments_validateRequestedInfo.md | 7 - .../methods/phone_receivedCall.md | 8 - .../methods/phone_saveCallDebug.md | 8 - .../methods/phone_setCallRating.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v65/methods/upload_getWebFile.md | 7 - .../API_docs_v65/methods/users_getUsers.md | 8 - old_docs/API_docs_v66/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_confirmPhone.md | 8 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_getTmpPassword.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_sendConfirmPhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v66/methods/auth_cancelCode.md | 7 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v66/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../API_docs_v66/methods/auth_resendCode.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v66/methods/auth_sendInvites.md | 7 - .../methods/bots_answerWebhookJSONQuery.md | 8 - .../methods/bots_sendCustomRequest.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_exportMessageLink.md | 7 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_toggleInvites.md | 8 - .../methods/channels_toggleSignatures.md | 7 - .../methods/channels_updatePinnedMessage.md | 9 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v66/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_getTopPeers.md | 7 - .../methods/contacts_importCard.md | 8 - .../methods/contacts_resetTopPeerRating.md | 7 - .../API_docs_v66/methods/contacts_search.md | 8 - .../API_docs_v66/methods/contacts_unblock.md | 7 - .../API_docs_v66/methods/initConnection.md | 8 - .../API_docs_v66/methods/invokeWithLayer.md | 10 -- .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_editInlineBotMessage.md | 8 - .../methods/messages_editMessage.md | 14 -- .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../methods/messages_getBotCallbackAnswer.md | 10 -- .../API_docs_v66/methods/messages_getChats.md | 8 - .../methods/messages_getCommonChats.md | 7 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getGameHighScores.md | 8 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../messages_getInlineGameHighScores.md | 8 - .../methods/messages_getMessageEditData.md | 8 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getPeerDialogs.md | 8 - .../methods/messages_getPeerSettings.md | 8 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_hideReportSpam.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reorderPinnedDialogs.md | 7 - .../methods/messages_reportEncryptedSpam.md | 7 - .../methods/messages_reportSpam.md | 7 - .../methods/messages_saveDraft.md | 7 - .../API_docs_v66/methods/messages_saveGif.md | 7 - .../methods/messages_saveRecentSticker.md | 7 - .../API_docs_v66/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setBotCallbackAnswer.md | 7 - .../messages_setBotPrecheckoutResults.md | 7 - .../methods/messages_setBotShippingResults.md | 7 - .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setGameScore.md | 8 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setInlineGameScore.md | 8 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v66/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_toggleDialogPin.md | 7 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/payments_getPaymentForm.md | 7 - .../methods/payments_getPaymentReceipt.md | 7 - .../methods/payments_sendPaymentForm.md | 7 - .../methods/payments_validateRequestedInfo.md | 7 - .../methods/phone_receivedCall.md | 8 - .../methods/phone_saveCallDebug.md | 8 - .../methods/phone_setCallRating.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../API_docs_v66/methods/upload_getWebFile.md | 7 - .../API_docs_v66/methods/users_getUsers.md | 8 - old_docs/API_docs_v68/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_confirmPhone.md | 8 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_getTmpPassword.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_sendConfirmPhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v68/methods/auth_cancelCode.md | 7 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v68/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../API_docs_v68/methods/auth_resendCode.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v68/methods/auth_sendInvites.md | 7 - .../methods/bots_answerWebhookJSONQuery.md | 8 - .../methods/bots_sendCustomRequest.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editBanned.md | 11 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_exportMessageLink.md | 7 - .../methods/channels_getAdminLog.md | 8 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_toggleInvites.md | 8 - .../methods/channels_toggleSignatures.md | 7 - .../methods/channels_updatePinnedMessage.md | 9 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v68/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_getTopPeers.md | 7 - .../methods/contacts_importCard.md | 8 - .../methods/contacts_resetTopPeerRating.md | 7 - .../API_docs_v68/methods/contacts_search.md | 8 - .../API_docs_v68/methods/contacts_unblock.md | 7 - .../API_docs_v68/methods/initConnection.md | 8 - .../API_docs_v68/methods/invokeWithLayer.md | 10 -- .../methods/langpack_getDifference.md | 7 - .../methods/langpack_getLangPack.md | 7 - .../methods/langpack_getLanguages.md | 7 - .../methods/langpack_getStrings.md | 7 - .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_editInlineBotMessage.md | 8 - .../methods/messages_editMessage.md | 14 -- .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../methods/messages_getBotCallbackAnswer.md | 10 -- .../API_docs_v68/methods/messages_getChats.md | 8 - .../methods/messages_getCommonChats.md | 7 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getGameHighScores.md | 8 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../messages_getInlineGameHighScores.md | 8 - .../methods/messages_getMessageEditData.md | 8 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getPeerDialogs.md | 8 - .../methods/messages_getPeerSettings.md | 8 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_hideReportSpam.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reorderPinnedDialogs.md | 7 - .../methods/messages_reportEncryptedSpam.md | 7 - .../methods/messages_reportSpam.md | 7 - .../methods/messages_saveDraft.md | 7 - .../API_docs_v68/methods/messages_saveGif.md | 7 - .../methods/messages_saveRecentSticker.md | 7 - .../API_docs_v68/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../methods/messages_setBotCallbackAnswer.md | 7 - .../messages_setBotPrecheckoutResults.md | 7 - .../methods/messages_setBotShippingResults.md | 7 - .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setGameScore.md | 8 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setInlineGameScore.md | 8 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v68/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_toggleDialogPin.md | 7 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/messages_uploadMedia.md | 8 - .../methods/payments_getPaymentForm.md | 7 - .../methods/payments_getPaymentReceipt.md | 7 - .../methods/payments_sendPaymentForm.md | 7 - .../methods/payments_validateRequestedInfo.md | 7 - .../methods/phone_receivedCall.md | 8 - .../methods/phone_saveCallDebug.md | 8 - .../methods/phone_setCallRating.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../methods/stickers_addStickerToSet.md | 8 - .../methods/stickers_changeStickerPosition.md | 8 - .../methods/stickers_createStickerSet.md | 11 -- .../methods/stickers_removeStickerFromSet.md | 8 - .../API_docs_v68/methods/upload_getWebFile.md | 7 - .../API_docs_v68/methods/users_getUsers.md | 8 - old_docs/API_docs_v70/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_confirmPhone.md | 8 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_getTmpPassword.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_sendConfirmPhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v70/methods/auth_cancelCode.md | 7 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v70/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../API_docs_v70/methods/auth_resendCode.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v70/methods/auth_sendInvites.md | 7 - .../methods/bots_answerWebhookJSONQuery.md | 8 - .../methods/bots_sendCustomRequest.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editBanned.md | 11 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_exportMessageLink.md | 7 - .../methods/channels_getAdminLog.md | 8 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_toggleInvites.md | 8 - .../methods/channels_toggleSignatures.md | 7 - .../methods/channels_updatePinnedMessage.md | 9 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v70/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_getTopPeers.md | 7 - .../methods/contacts_importCard.md | 8 - .../methods/contacts_resetTopPeerRating.md | 7 - .../API_docs_v70/methods/contacts_search.md | 8 - .../API_docs_v70/methods/contacts_unblock.md | 7 - .../API_docs_v70/methods/initConnection.md | 8 - .../API_docs_v70/methods/invokeWithLayer.md | 10 -- .../methods/langpack_getDifference.md | 7 - .../methods/langpack_getLangPack.md | 7 - .../methods/langpack_getLanguages.md | 7 - .../methods/langpack_getStrings.md | 7 - .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_editInlineBotMessage.md | 8 - .../methods/messages_editMessage.md | 14 -- .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../methods/messages_getBotCallbackAnswer.md | 10 -- .../API_docs_v70/methods/messages_getChats.md | 8 - .../methods/messages_getCommonChats.md | 7 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getGameHighScores.md | 8 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../messages_getInlineGameHighScores.md | 8 - .../methods/messages_getMessageEditData.md | 8 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getPeerDialogs.md | 8 - .../methods/messages_getPeerSettings.md | 8 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_hideReportSpam.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reorderPinnedDialogs.md | 7 - .../methods/messages_reportEncryptedSpam.md | 7 - .../methods/messages_reportSpam.md | 7 - .../methods/messages_saveDraft.md | 7 - .../API_docs_v70/methods/messages_saveGif.md | 7 - .../methods/messages_saveRecentSticker.md | 7 - .../API_docs_v70/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../messages_sendScreenshotNotification.md | 7 - .../methods/messages_setBotCallbackAnswer.md | 7 - .../messages_setBotPrecheckoutResults.md | 7 - .../methods/messages_setBotShippingResults.md | 7 - .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setGameScore.md | 8 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setInlineGameScore.md | 8 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v70/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_toggleDialogPin.md | 7 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/messages_uploadMedia.md | 8 - .../methods/payments_getPaymentForm.md | 7 - .../methods/payments_getPaymentReceipt.md | 7 - .../methods/payments_sendPaymentForm.md | 7 - .../methods/payments_validateRequestedInfo.md | 7 - .../methods/phone_receivedCall.md | 8 - .../methods/phone_saveCallDebug.md | 8 - .../methods/phone_setCallRating.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../methods/stickers_addStickerToSet.md | 8 - .../methods/stickers_changeStickerPosition.md | 8 - .../methods/stickers_createStickerSet.md | 11 -- .../methods/stickers_removeStickerFromSet.md | 8 - .../API_docs_v70/methods/upload_getWebFile.md | 7 - .../API_docs_v70/methods/users_getUsers.md | 8 - old_docs/API_docs_v71/methods/README.md | 2 +- .../methods/account_changePhone.md | 7 - .../methods/account_checkUsername.md | 7 - .../methods/account_confirmPhone.md | 8 - .../methods/account_getNotifySettings.md | 7 - .../methods/account_getPasswordSettings.md | 7 - .../methods/account_getPrivacy.md | 7 - .../methods/account_getTmpPassword.md | 7 - .../methods/account_registerDevice.md | 7 - .../methods/account_reportPeer.md | 7 - .../methods/account_resetAuthorization.md | 7 - .../methods/account_sendChangePhoneCode.md | 7 - .../methods/account_sendConfirmPhoneCode.md | 7 - .../methods/account_setAccountTTL.md | 7 - .../methods/account_setPrivacy.md | 7 - .../methods/account_unregisterDevice.md | 7 - .../methods/account_updateNotifySettings.md | 7 - .../methods/account_updatePasswordSettings.md | 9 - .../methods/account_updateProfile.md | 8 - .../methods/account_updateUsername.md | 9 - .../methods/auth_bindTempAuthKey.md | 9 - .../API_docs_v71/methods/auth_cancelCode.md | 7 - .../methods/auth_checkPassword.md | 7 - .../API_docs_v71/methods/auth_checkPhone.md | 9 - .../methods/auth_exportAuthorization.md | 7 - .../methods/auth_importAuthorization.md | 8 - .../methods/auth_recoverPassword.md | 7 - .../methods/auth_requestPasswordRecovery.md | 7 - .../API_docs_v71/methods/auth_resendCode.md | 7 - .../methods/auth_resetAuthorizations.md | 7 - .../API_docs_v71/methods/auth_sendInvites.md | 7 - .../methods/bots_answerWebhookJSONQuery.md | 8 - .../methods/bots_sendCustomRequest.md | 7 - .../methods/channels_checkUsername.md | 9 - .../methods/channels_createChannel.md | 8 - .../methods/channels_deleteChannel.md | 8 - .../methods/channels_deleteMessages.md | 9 - .../methods/channels_deleteUserHistory.md | 8 - .../methods/channels_editAbout.md | 9 - .../methods/channels_editAdmin.md | 14 -- .../methods/channels_editBanned.md | 11 -- .../methods/channels_editPhoto.md | 7 - .../methods/channels_editTitle.md | 9 - .../methods/channels_exportInvite.md | 9 - .../methods/channels_exportMessageLink.md | 7 - .../methods/channels_getAdminLog.md | 8 - .../methods/channels_getChannels.md | 9 - .../methods/channels_getMessages.md | 8 - .../methods/channels_getParticipant.md | 10 -- .../methods/channels_inviteToChannel.md | 22 --- .../methods/channels_joinChannel.md | 9 - .../methods/channels_leaveChannel.md | 10 -- .../methods/channels_readHistory.md | 7 - .../methods/channels_readMessageContents.md | 7 - .../methods/channels_reportSpam.md | 7 - .../methods/channels_setStickers.md | 8 - .../methods/channels_toggleInvites.md | 8 - .../methods/channels_toggleSignatures.md | 7 - .../methods/channels_updatePinnedMessage.md | 9 - .../methods/channels_updateUsername.md | 10 -- .../API_docs_v71/methods/contacts_block.md | 7 - .../methods/contacts_deleteContact.md | 7 - .../methods/contacts_deleteContacts.md | 8 - .../methods/contacts_getTopPeers.md | 7 - .../methods/contacts_importCard.md | 8 - .../methods/contacts_resetTopPeerRating.md | 7 - .../API_docs_v71/methods/contacts_search.md | 8 - .../API_docs_v71/methods/contacts_unblock.md | 7 - .../API_docs_v71/methods/initConnection.md | 8 - .../API_docs_v71/methods/invokeWithLayer.md | 10 -- .../methods/langpack_getDifference.md | 7 - .../methods/langpack_getLangPack.md | 7 - .../methods/langpack_getLanguages.md | 7 - .../methods/langpack_getStrings.md | 7 - .../methods/messages_addChatUser.md | 14 -- .../methods/messages_checkChatInvite.md | 9 - .../methods/messages_createChat.md | 8 - .../methods/messages_deleteChatUser.md | 9 - .../methods/messages_deleteHistory.md | 7 - .../methods/messages_deleteMessages.md | 7 - .../methods/messages_editChatAdmin.md | 7 - .../methods/messages_editChatPhoto.md | 8 - .../methods/messages_editChatTitle.md | 7 - .../methods/messages_editInlineBotMessage.md | 8 - .../methods/messages_editMessage.md | 14 -- .../methods/messages_exportChatInvite.md | 7 - .../methods/messages_faveSticker.md | 7 - .../methods/messages_forwardMessage.md | 10 -- .../methods/messages_forwardMessages.md | 25 --- .../methods/messages_getBotCallbackAnswer.md | 10 -- .../API_docs_v71/methods/messages_getChats.md | 8 - .../methods/messages_getCommonChats.md | 7 - .../methods/messages_getDhConfig.md | 7 - .../methods/messages_getDialogs.md | 9 - .../methods/messages_getDocumentByHash.md | 7 - .../methods/messages_getGameHighScores.md | 8 - .../methods/messages_getHistory.md | 12 -- .../methods/messages_getInlineBotResults.md | 9 - .../messages_getInlineGameHighScores.md | 8 - .../methods/messages_getMessageEditData.md | 8 - .../methods/messages_getMessagesViews.md | 9 - .../methods/messages_getPeerDialogs.md | 8 - .../methods/messages_getPeerSettings.md | 8 - .../methods/messages_getStickerSet.md | 7 - .../methods/messages_getUnreadMentions.md | 7 - .../methods/messages_hideReportSpam.md | 7 - .../methods/messages_importChatInvite.md | 11 -- .../methods/messages_installStickerSet.md | 7 - .../methods/messages_migrateChat.md | 9 - .../methods/messages_readEncryptedHistory.md | 7 - .../methods/messages_readHistory.md | 7 - .../methods/messages_receivedQueue.md | 7 - .../methods/messages_reorderPinnedDialogs.md | 7 - .../methods/messages_reportEncryptedSpam.md | 7 - .../methods/messages_reportSpam.md | 7 - .../methods/messages_saveDraft.md | 7 - .../API_docs_v71/methods/messages_saveGif.md | 7 - .../methods/messages_saveRecentSticker.md | 7 - .../API_docs_v71/methods/messages_search.md | 11 -- .../methods/messages_searchGifs.md | 7 - .../methods/messages_searchGlobal.md | 7 - .../methods/messages_sendEncrypted.md | 9 - .../methods/messages_sendEncryptedFile.md | 7 - .../methods/messages_sendEncryptedService.md | 8 - .../methods/messages_sendInlineBotResult.md | 9 - .../methods/messages_sendMedia.md | 21 --- .../methods/messages_sendMessage.md | 25 --- .../messages_sendScreenshotNotification.md | 7 - .../methods/messages_setBotCallbackAnswer.md | 7 - .../messages_setBotPrecheckoutResults.md | 7 - .../methods/messages_setBotShippingResults.md | 7 - .../methods/messages_setEncryptedTyping.md | 7 - .../methods/messages_setGameScore.md | 8 - .../methods/messages_setInlineBotResults.md | 17 -- .../methods/messages_setInlineGameScore.md | 8 - .../methods/messages_setTyping.md | 11 -- .../API_docs_v71/methods/messages_startBot.md | 9 - .../methods/messages_toggleChatAdmins.md | 8 - .../methods/messages_toggleDialogPin.md | 7 - .../methods/messages_uninstallStickerSet.md | 7 - .../methods/messages_uploadMedia.md | 8 - .../methods/payments_getPaymentForm.md | 7 - .../methods/payments_getPaymentReceipt.md | 7 - .../methods/payments_sendPaymentForm.md | 7 - .../methods/payments_validateRequestedInfo.md | 7 - .../methods/phone_receivedCall.md | 8 - .../methods/phone_saveCallDebug.md | 8 - .../methods/phone_setCallRating.md | 7 - .../methods/photos_getUserPhotos.md | 8 - .../methods/photos_uploadProfilePhoto.md | 11 -- .../methods/stickers_addStickerToSet.md | 8 - .../methods/stickers_changeStickerPosition.md | 8 - .../methods/stickers_createStickerSet.md | 11 -- .../methods/stickers_removeStickerFromSet.md | 8 - .../API_docs_v71/methods/upload_getWebFile.md | 7 - .../API_docs_v71/methods/users_getUsers.md | 8 - secret_bot.php | 2 +- src/Socket.php | 3 + src/danog/MadelineProto/API.php | 51 +++++- src/danog/MadelineProto/Serialization.php | 45 +---- tests/testing.php | 5 +- userbots/MadelineProto_bot.php | 2 +- userbots/pipesbot.php | 4 +- userbots/pwrtelegram_debug_bot.php | 2 +- 2428 files changed, 383 insertions(+), 20814 deletions(-) diff --git a/README.md b/README.md index 14971f01..03ec0745 100644 --- a/README.md +++ b/README.md @@ -155,31 +155,18 @@ You can find examples for nearly every MadelineProto function in VERY IMPORTANT: An istance of MadelineProto MUST be serialized every time an update is fetched, and on shutdown. To serialize MadelineProto to a file, you must use the `\danog\MadelineProto\Serialization` class: ``` -$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); // Do stuff \danog\MadelineProto\Serialization::serialize('session.madeline', $MadelineProto); // or $MadelineProto->serialize('session.madeline'); ``` -Or, to serialize automatically every time and update is fetched and on shutdown: - -``` -$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); -$MadelineProto->session = 'session.madeline'; -``` - This way, if the scripts shutsdown normally (without ctrl+c or fatal errors/exceptions), the session will also be serialized automatically. It is still recommended to serialize the session at every update. -The deserialize method accepts a second optional parameter, `$no_updates`, that can be set to true to avoid fetching updates on deserialization, and postpone parsing of updates received through the socket until the next deserialization. -That class serializes using [MagicalSerializer](https://github.com/danog/MagicalSerializer). -The same should be done when serializing to another destination manually, to avoid conflicts with other PHP scripts that are trying to serialize another instance of the class. - - - ## Methods A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 71)](https://daniil.it/MadelineProto/API_docs/). @@ -296,7 +283,148 @@ If you're selling a MadelineProto base too, you really should consider donating ### Settings The constructor accepts an optional parameter, which is the settings array. This array contains some other arrays, which are the settings for a specific MadelineProto function. -See [here](https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/MTProto.php#L448) for the default values for the settings arrays and explanations for every setting. +Here are the default values for the settings arrays and explanations for every setting: + +``` +[ + 'authorization' => [ // Authorization settings + 'default_temp_auth_key_expires_in' => 31557600, // validity of temporary keys and the binding of the temporary and permanent keys + 'rsa_keys' => [ + "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAwVACPi9w23mF3tBkdZz+zwrzKOaaQdr01vAbU4E1pvkfj4sqDsm6\nlyDONS789sVoD/xCS9Y0hkkC3gtL1tSfTlgCMOOul9lcixlEKzwKENj1Yz/s7daS\nan9tqw3bfUV/nqgbhGX81v/+7RFAEd+RwFnK7a+XYl9sluzHRyVVaTTveB2GazTw\nEfzk2DWgkBluml8OREmvfraX3bkHZJTKX4EQSjBbbdJ2ZXIsRrYOXfaA+xayEGB+\n8hdlLmAjbCVfaigxX0CDqWeR1yFL9kwd9P0NsZRPsmoqVwMbMu7mStFai6aIhc3n\nSlv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB\n-----END RSA PUBLIC KEY-----", + "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAxq7aeLAqJR20tkQQMfRn+ocfrtMlJsQ2Uksfs7Xcoo77jAid0bRt\nksiVmT2HEIJUlRxfABoPBV8wY9zRTUMaMA654pUX41mhyVN+XoerGxFvrs9dF1Ru\nvCHbI02dM2ppPvyytvvMoefRoL5BTcpAihFgm5xCaakgsJ/tH5oVl74CdhQw8J5L\nxI/K++KJBUyZ26Uba1632cOiq05JBUW0Z2vWIOk4BLysk7+U9z+SxynKiZR3/xdi\nXvFKk01R3BHV+GUKM2RYazpS/P8v7eyKhAbKxOdRcFpHLlVwfjyM1VlDQrEZxsMp\nNTLYXb6Sce1Uov0YtNx5wEowlREH1WOTlwIDAQAB\n-----END RSA PUBLIC KEY-----", + "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAsQZnSWVZNfClk29RcDTJQ76n8zZaiTGuUsi8sUhW8AS4PSbPKDm+\nDyJgdHDWdIF3HBzl7DHeFrILuqTs0vfS7Pa2NW8nUBwiaYQmPtwEa4n7bTmBVGsB\n1700/tz8wQWOLUlL2nMv+BPlDhxq4kmJCyJfgrIrHlX8sGPcPA4Y6Rwo0MSqYn3s\ng1Pu5gOKlaT9HKmE6wn5Sut6IiBjWozrRQ6n5h2RXNtO7O2qCDqjgB2vBxhV7B+z\nhRbLbCmW0tYMDsvPpX5M8fsO05svN+lKtCAuz1leFns8piZpptpSCFn7bWxiA9/f\nx5x17D7pfah3Sy2pA+NDXyzSlGcKdaUmwQIDAQAB\n-----END RSA PUBLIC KEY-----", + "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAwqjFW0pi4reKGbkc9pK83Eunwj/k0G8ZTioMMPbZmW99GivMibwa\nxDM9RDWabEMyUtGoQC2ZcDeLWRK3W8jMP6dnEKAlvLkDLfC4fXYHzFO5KHEqF06i\nqAqBdmI1iBGdQv/OQCBcbXIWCGDY2AsiqLhlGQfPOI7/vvKc188rTriocgUtoTUc\n/n/sIUzkgwTqRyvWYynWARWzQg0I9olLBBC2q5RQJJlnYXZwyTL3y9tdb7zOHkks\nWV9IMQmZmyZh/N7sMbGWQpt4NMchGpPGeJ2e5gHBjDnlIf2p1yZOYeUYrdbwcS0t\nUiggS4UeE8TzIuXFQxw7fzEIlmhIaq3FnwIDAQAB\n-----END RSA PUBLIC KEY-----", + ], // RSA public keys + ], + 'connection' => [ // List of datacenters/subdomains where to connect + 'ssl_subdomains' => [ // Subdomains of web.telegram.org for https protocol + 1 => 'pluto', + 2 => 'venus', + 3 => 'aurora', + 4 => 'vesta', + 5 => 'flora', // musa oh wait no :( + ], + 'test' => [ // Test datacenters + 'ipv4' => [ // ipv4 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '149.154.167.40', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], + 'ipv6' => [ // ipv6 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '2001:067c:04e8:f002:0000:0000:0000:000e', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], + ], + 'main' => [ // Main datacenters + 'ipv4' => [ // ipv4 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '149.154.167.51', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], + 'ipv6' => [ // ipv6 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '2001:067c:04e8:f002:0000:0000:0000:000a', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], + ], + ], + 'connection_settings' => [ // connection settings + 'all' => [ // These settings will be applied on every datacenter that hasn't a custom settings subarray... + 'protocol' => 'tcp_full', // can be tcp_full, tcp_abridged, tcp_intermediate, http, https, obfuscated2, udp (unsupported) + 'test_mode' => false, // decides whether to connect to the main telegram servers or to the testing servers (deep telegram) + 'ipv6' => $this - > ipv6, // decides whether to use ipv6, ipv6 attribute of API attribute of API class contains autodetected boolean + 'timeout' => 2, // timeout for sockets + 'proxy' => '\Socket', // The proxy class to use + 'proxy_extra' => [], // Extra parameters to pass to the proxy class using setExtra + ], + ], + 'app_info' => [ // obtained in https://my.telegram.org + //'api_id' => you should put an API id in the settings array you provide + //'api_hash' => you should put an API hash in the settings array you provide + 'device_model' => $device_model, + 'system_version' => $system_version, + 'app_version' => 'Unicorn', + 'lang_code' => $lang_code, + ], + 'tl_schema' => [ // TL scheme files + 'layer' => 72, // layer version + 'src' => [ + 'mtproto' => __DIR__.'/TL_mtproto_v1.json', // mtproto TL scheme + 'telegram' => __DIR__.'/TL_telegram_v72.tl', // telegram TL scheme + 'secret' => __DIR__.'/TL_secret.tl', // secret chats TL scheme + 'calls' => __DIR__.'/TL_calls.tl', // calls TL scheme + 'botAPI' => __DIR__.'/TL_botAPI.tl', // bot API TL scheme for file ids + ], + ], + 'logger' => [ // Logger settings + /* + * logger modes: + * 0 - No logger + * 1 - Log to the default logger destination + * 2 - Log to file defined in second parameter + * 3 - Echo logs + * 4 - Call callable provided in logger_param. logger_param must accept two parameters: array $message, int $level + * $message is an array containing the messages the log, $level, is the logging level + */ + 'logger' => 1, // write to + 'logger_param' => '/tmp/MadelineProto.log', + 'logger' => 3, // overwrite previous setting and echo logs + 'logger_level' => Logger::VERBOSE, // Logging level, available logging levels are: ULTRA_VERBOSE, VERBOSE, NOTICE, WARNING, ERROR, FATAL_ERROR. Can be provided as last parameter to the logging function. + 'rollbar_token' => 'f9fff6689aea4905b58eec73f66c791d' // You can provide a token for the rollbar log management system + ], + 'max_tries' => [ + 'query' => 5, // How many times should I try to call a method or send an object before throwing an exception + 'authorization' => 5, // How many times should I try to generate an authorization key before throwing an exception + 'response' => 5, // How many times should I try to get a response of a query before throwing an exception + ], + 'flood_timeout' => [ + 'wait_if_lt' => 20, // Sleeps if flood block time is lower than this + ], + 'msg_array_limit' => [ // How big should be the arrays containing the incoming and outgoing messages? + 'incoming' => 200, + 'outgoing' => 200, + 'call_queue' => 200, + ], + 'peer' => [ + 'full_info_cache_time' => 60, + ], + 'requests' => [ + 'gzip_encode_if_gt' => 500, // Should I try using gzip encoding for requests bigger than N bytes? Set to -1 to disable. + ], + 'updates' => [ + 'handle_updates' => true, // Should I handle updates? + 'callback' => 'get_updates_update_handler', // A callable function that will be called every time an update is received, must accept an array (for the update) as the only parameter + ], + 'secret_chats' => [ + 'accept_chats' => true, // Should I accept secret chats? Can be true, false or on array of user ids from which to accept chats + ], + 'threading' => [ + 'allow_threading' => false, // Should I use threading, if it is enabled? + 'handler_workers' => 10, // How many workers should every message handler pool of each socket reader have + ], + 'pwr' => [ + 'pwr' => false, // Need info ? + 'db_token' => false, // Need info ? + 'strict' => false, // Need info ? + 'requests' => true, // Should I get info about unknown peers from PWRTelegram? + ], +]; +``` + + You can provide part of any subsetting array, that way the remaining arrays will be automagically set to default and undefined values of specified subsetting arrays will be set to the default values. Example: @@ -326,8 +454,10 @@ Note that only settings arrays or values of a settings array will be set to defa The settings array can be accessed and modified in the instantiated class by accessing the `settings` attribute of the API class: ``` -$MadelineProto = new \danog\MadelineProto\API(); +$yoursettings = ['updates' => ['handle_updates' => false]]; // disable update handlig +$MadelineProto = new \danog\MadelineProto\API($yoursettings); var_dump($MadelineProto->settings); +$MadelineProto->settings['updates']['handle_updates'] = true; // reenable update fetching ``` ### Handling updates diff --git a/bot.php b/bot.php index 10b41187..e50772e7 100755 --- a/bot.php +++ b/bot.php @@ -16,7 +16,7 @@ require 'vendor/autoload.php'; $settings = ['app_info' => ['api_id' => 6, 'api_hash' => 'eb06d4abfb49dc3eeb1aeb98ae0f581e']]; try { - $MadelineProto = \danog\MadelineProto\Serialization::deserialize('bot.madeline'); + $MadelineProto = new \danog\MadelineProto\API('bot.madeline'); } catch (\danog\MadelineProto\Exception $e) { var_dump($e->getMessage()); $MadelineProto = new \danog\MadelineProto\API($settings); diff --git a/docs/API_docs/methods/account_changePhone.md b/docs/API_docs/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/docs/API_docs/methods/account_changePhone.md +++ b/docs/API_docs/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_checkUsername.md b/docs/API_docs/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/docs/API_docs/methods/account_checkUsername.md +++ b/docs/API_docs/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/docs/API_docs/methods/account_confirmPhone.md b/docs/API_docs/methods/account_confirmPhone.md index 0d2dc5c6..c2526b2a 100644 --- a/docs/API_docs/methods/account_confirmPhone.md +++ b/docs/API_docs/methods/account_confirmPhone.md @@ -19,14 +19,6 @@ description: account.confirmPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_HASH_INVALID|Code hash invalid| -|PHONE_CODE_EMPTY|phone_code is missing| - - ### Example: diff --git a/docs/API_docs/methods/account_getNotifySettings.md b/docs/API_docs/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/docs/API_docs/methods/account_getNotifySettings.md +++ b/docs/API_docs/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_getPasswordSettings.md b/docs/API_docs/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/docs/API_docs/methods/account_getPasswordSettings.md +++ b/docs/API_docs/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_getPrivacy.md b/docs/API_docs/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/docs/API_docs/methods/account_getPrivacy.md +++ b/docs/API_docs/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_getTmpPassword.md b/docs/API_docs/methods/account_getTmpPassword.md index a6fed592..c368baf7 100644 --- a/docs/API_docs/methods/account_getTmpPassword.md +++ b/docs/API_docs/methods/account_getTmpPassword.md @@ -19,13 +19,6 @@ description: account.getTmpPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TMP_PASSWORD_DISABLED|The temporary password is disabled| - - ### Example: diff --git a/docs/API_docs/methods/account_registerDevice.md b/docs/API_docs/methods/account_registerDevice.md index 3cc7f98d..6865551e 100644 --- a/docs/API_docs/methods/account_registerDevice.md +++ b/docs/API_docs/methods/account_registerDevice.md @@ -19,13 +19,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_reportPeer.md b/docs/API_docs/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/docs/API_docs/methods/account_reportPeer.md +++ b/docs/API_docs/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_resetAuthorization.md b/docs/API_docs/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/docs/API_docs/methods/account_resetAuthorization.md +++ b/docs/API_docs/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_sendChangePhoneCode.md b/docs/API_docs/methods/account_sendChangePhoneCode.md index 4be218f2..a1f49156 100644 --- a/docs/API_docs/methods/account_sendChangePhoneCode.md +++ b/docs/API_docs/methods/account_sendChangePhoneCode.md @@ -20,13 +20,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_sendConfirmPhoneCode.md b/docs/API_docs/methods/account_sendConfirmPhoneCode.md index 009fcb09..5ad44987 100644 --- a/docs/API_docs/methods/account_sendConfirmPhoneCode.md +++ b/docs/API_docs/methods/account_sendConfirmPhoneCode.md @@ -20,13 +20,6 @@ description: account.sendConfirmPhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_setAccountTTL.md b/docs/API_docs/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/docs/API_docs/methods/account_setAccountTTL.md +++ b/docs/API_docs/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_setPrivacy.md b/docs/API_docs/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/docs/API_docs/methods/account_setPrivacy.md +++ b/docs/API_docs/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_unregisterDevice.md b/docs/API_docs/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/docs/API_docs/methods/account_unregisterDevice.md +++ b/docs/API_docs/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_updateNotifySettings.md b/docs/API_docs/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/docs/API_docs/methods/account_updateNotifySettings.md +++ b/docs/API_docs/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_updatePasswordSettings.md b/docs/API_docs/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/docs/API_docs/methods/account_updatePasswordSettings.md +++ b/docs/API_docs/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_updateProfile.md b/docs/API_docs/methods/account_updateProfile.md index a50eaea5..531bbb02 100644 --- a/docs/API_docs/methods/account_updateProfile.md +++ b/docs/API_docs/methods/account_updateProfile.md @@ -20,14 +20,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/docs/API_docs/methods/account_updateUsername.md b/docs/API_docs/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/docs/API_docs/methods/account_updateUsername.md +++ b/docs/API_docs/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/docs/API_docs/methods/auth_bindTempAuthKey.md b/docs/API_docs/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/docs/API_docs/methods/auth_bindTempAuthKey.md +++ b/docs/API_docs/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/docs/API_docs/methods/auth_cancelCode.md b/docs/API_docs/methods/auth_cancelCode.md index dc390329..cc93fff5 100644 --- a/docs/API_docs/methods/auth_cancelCode.md +++ b/docs/API_docs/methods/auth_cancelCode.md @@ -19,13 +19,6 @@ description: auth.cancelCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/docs/API_docs/methods/auth_checkPassword.md b/docs/API_docs/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/docs/API_docs/methods/auth_checkPassword.md +++ b/docs/API_docs/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/docs/API_docs/methods/auth_checkPhone.md b/docs/API_docs/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/docs/API_docs/methods/auth_checkPhone.md +++ b/docs/API_docs/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/docs/API_docs/methods/auth_exportAuthorization.md b/docs/API_docs/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/docs/API_docs/methods/auth_exportAuthorization.md +++ b/docs/API_docs/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/auth_importAuthorization.md b/docs/API_docs/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/docs/API_docs/methods/auth_importAuthorization.md +++ b/docs/API_docs/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/auth_recoverPassword.md b/docs/API_docs/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/docs/API_docs/methods/auth_recoverPassword.md +++ b/docs/API_docs/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/docs/API_docs/methods/auth_requestPasswordRecovery.md b/docs/API_docs/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/docs/API_docs/methods/auth_requestPasswordRecovery.md +++ b/docs/API_docs/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/docs/API_docs/methods/auth_resendCode.md b/docs/API_docs/methods/auth_resendCode.md index 14d08ddd..92f7aa30 100644 --- a/docs/API_docs/methods/auth_resendCode.md +++ b/docs/API_docs/methods/auth_resendCode.md @@ -19,13 +19,6 @@ description: auth.resendCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/docs/API_docs/methods/auth_resetAuthorizations.md b/docs/API_docs/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/docs/API_docs/methods/auth_resetAuthorizations.md +++ b/docs/API_docs/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/docs/API_docs/methods/auth_sendInvites.md b/docs/API_docs/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/docs/API_docs/methods/auth_sendInvites.md +++ b/docs/API_docs/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/docs/API_docs/methods/bots_answerWebhookJSONQuery.md b/docs/API_docs/methods/bots_answerWebhookJSONQuery.md index ae1efce3..59c134d4 100644 --- a/docs/API_docs/methods/bots_answerWebhookJSONQuery.md +++ b/docs/API_docs/methods/bots_answerWebhookJSONQuery.md @@ -19,14 +19,6 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/docs/API_docs/methods/bots_sendCustomRequest.md b/docs/API_docs/methods/bots_sendCustomRequest.md index 927f18c5..57a49e6e 100644 --- a/docs/API_docs/methods/bots_sendCustomRequest.md +++ b/docs/API_docs/methods/bots_sendCustomRequest.md @@ -19,13 +19,6 @@ description: bots.sendCustomRequest parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/docs/API_docs/methods/channels_checkUsername.md b/docs/API_docs/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/docs/API_docs/methods/channels_checkUsername.md +++ b/docs/API_docs/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/docs/API_docs/methods/channels_createChannel.md b/docs/API_docs/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/docs/API_docs/methods/channels_createChannel.md +++ b/docs/API_docs/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/docs/API_docs/methods/channels_deleteChannel.md b/docs/API_docs/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/docs/API_docs/methods/channels_deleteChannel.md +++ b/docs/API_docs/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/docs/API_docs/methods/channels_deleteMessages.md b/docs/API_docs/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/docs/API_docs/methods/channels_deleteMessages.md +++ b/docs/API_docs/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/docs/API_docs/methods/channels_deleteUserHistory.md b/docs/API_docs/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/docs/API_docs/methods/channels_deleteUserHistory.md +++ b/docs/API_docs/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/docs/API_docs/methods/channels_editAbout.md b/docs/API_docs/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/docs/API_docs/methods/channels_editAbout.md +++ b/docs/API_docs/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/docs/API_docs/methods/channels_editAdmin.md b/docs/API_docs/methods/channels_editAdmin.md index 4147c213..242496ab 100644 --- a/docs/API_docs/methods/channels_editAdmin.md +++ b/docs/API_docs/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/docs/API_docs/methods/channels_editBanned.md b/docs/API_docs/methods/channels_editBanned.md index 7fb904b9..7d3fc1d0 100644 --- a/docs/API_docs/methods/channels_editBanned.md +++ b/docs/API_docs/methods/channels_editBanned.md @@ -20,17 +20,6 @@ description: channels.editBanned parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ADMIN_INVALID|You're not an admin| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/channels_editPhoto.md b/docs/API_docs/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/docs/API_docs/methods/channels_editPhoto.md +++ b/docs/API_docs/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/docs/API_docs/methods/channels_editTitle.md b/docs/API_docs/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/docs/API_docs/methods/channels_editTitle.md +++ b/docs/API_docs/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/docs/API_docs/methods/channels_exportInvite.md b/docs/API_docs/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/docs/API_docs/methods/channels_exportInvite.md +++ b/docs/API_docs/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/docs/API_docs/methods/channels_exportMessageLink.md b/docs/API_docs/methods/channels_exportMessageLink.md index 9831c9c0..9e7135ab 100644 --- a/docs/API_docs/methods/channels_exportMessageLink.md +++ b/docs/API_docs/methods/channels_exportMessageLink.md @@ -19,13 +19,6 @@ description: channels.exportMessageLink parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/docs/API_docs/methods/channels_getAdminLog.md b/docs/API_docs/methods/channels_getAdminLog.md index f4a70e98..4775c872 100644 --- a/docs/API_docs/methods/channels_getAdminLog.md +++ b/docs/API_docs/methods/channels_getAdminLog.md @@ -24,14 +24,6 @@ description: channels.getAdminLog parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/docs/API_docs/methods/channels_getChannels.md b/docs/API_docs/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/docs/API_docs/methods/channels_getChannels.md +++ b/docs/API_docs/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/docs/API_docs/methods/channels_getMessages.md b/docs/API_docs/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/docs/API_docs/methods/channels_getMessages.md +++ b/docs/API_docs/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/docs/API_docs/methods/channels_getParticipant.md b/docs/API_docs/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/docs/API_docs/methods/channels_getParticipant.md +++ b/docs/API_docs/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/docs/API_docs/methods/channels_inviteToChannel.md b/docs/API_docs/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/docs/API_docs/methods/channels_inviteToChannel.md +++ b/docs/API_docs/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/docs/API_docs/methods/channels_joinChannel.md b/docs/API_docs/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/docs/API_docs/methods/channels_joinChannel.md +++ b/docs/API_docs/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/docs/API_docs/methods/channels_leaveChannel.md b/docs/API_docs/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/docs/API_docs/methods/channels_leaveChannel.md +++ b/docs/API_docs/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/docs/API_docs/methods/channels_readHistory.md b/docs/API_docs/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/docs/API_docs/methods/channels_readHistory.md +++ b/docs/API_docs/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/docs/API_docs/methods/channels_readMessageContents.md b/docs/API_docs/methods/channels_readMessageContents.md index e6401f3c..ac998616 100644 --- a/docs/API_docs/methods/channels_readMessageContents.md +++ b/docs/API_docs/methods/channels_readMessageContents.md @@ -19,13 +19,6 @@ description: channels.readMessageContents parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/docs/API_docs/methods/channels_reportSpam.md b/docs/API_docs/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/docs/API_docs/methods/channels_reportSpam.md +++ b/docs/API_docs/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/docs/API_docs/methods/channels_setStickers.md b/docs/API_docs/methods/channels_setStickers.md index 6712ada0..ddc4d566 100644 --- a/docs/API_docs/methods/channels_setStickers.md +++ b/docs/API_docs/methods/channels_setStickers.md @@ -19,14 +19,6 @@ description: channels.setStickers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PARTICIPANTS_TOO_FEW|Not enough participants| - - ### Example: diff --git a/docs/API_docs/methods/channels_toggleInvites.md b/docs/API_docs/methods/channels_toggleInvites.md index d84339b2..0733d419 100644 --- a/docs/API_docs/methods/channels_toggleInvites.md +++ b/docs/API_docs/methods/channels_toggleInvites.md @@ -19,14 +19,6 @@ description: channels.toggleInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/docs/API_docs/methods/channels_toggleSignatures.md b/docs/API_docs/methods/channels_toggleSignatures.md index a214b849..3056eaee 100644 --- a/docs/API_docs/methods/channels_toggleSignatures.md +++ b/docs/API_docs/methods/channels_toggleSignatures.md @@ -19,13 +19,6 @@ description: channels.toggleSignatures parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/docs/API_docs/methods/channels_updatePinnedMessage.md b/docs/API_docs/methods/channels_updatePinnedMessage.md index 7376df10..d2314d85 100644 --- a/docs/API_docs/methods/channels_updatePinnedMessage.md +++ b/docs/API_docs/methods/channels_updatePinnedMessage.md @@ -20,15 +20,6 @@ description: channels.updatePinnedMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/docs/API_docs/methods/channels_updateUsername.md b/docs/API_docs/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/docs/API_docs/methods/channels_updateUsername.md +++ b/docs/API_docs/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/docs/API_docs/methods/contacts_block.md b/docs/API_docs/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/docs/API_docs/methods/contacts_block.md +++ b/docs/API_docs/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/contacts_deleteContact.md b/docs/API_docs/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/docs/API_docs/methods/contacts_deleteContact.md +++ b/docs/API_docs/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/contacts_deleteContacts.md b/docs/API_docs/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/docs/API_docs/methods/contacts_deleteContacts.md +++ b/docs/API_docs/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/docs/API_docs/methods/contacts_getTopPeers.md b/docs/API_docs/methods/contacts_getTopPeers.md index cbd64cc0..a1c85ce0 100644 --- a/docs/API_docs/methods/contacts_getTopPeers.md +++ b/docs/API_docs/methods/contacts_getTopPeers.md @@ -26,13 +26,6 @@ description: contacts.getTopPeers parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TYPES_EMPTY|The types field is empty| - - ### Example: diff --git a/docs/API_docs/methods/contacts_importCard.md b/docs/API_docs/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/docs/API_docs/methods/contacts_importCard.md +++ b/docs/API_docs/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/docs/API_docs/methods/contacts_resetTopPeerRating.md b/docs/API_docs/methods/contacts_resetTopPeerRating.md index 738494b2..2f784189 100644 --- a/docs/API_docs/methods/contacts_resetTopPeerRating.md +++ b/docs/API_docs/methods/contacts_resetTopPeerRating.md @@ -19,13 +19,6 @@ description: contacts.resetTopPeerRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/contacts_search.md b/docs/API_docs/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/docs/API_docs/methods/contacts_search.md +++ b/docs/API_docs/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/docs/API_docs/methods/contacts_unblock.md b/docs/API_docs/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/docs/API_docs/methods/contacts_unblock.md +++ b/docs/API_docs/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md index 9a795b30..33bbeb20 100644 --- a/docs/API_docs/methods/index.md +++ b/docs/API_docs/methods/index.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/docs/API_docs/methods/initConnection.md b/docs/API_docs/methods/initConnection.md index b66ab859..c34dd3d0 100644 --- a/docs/API_docs/methods/initConnection.md +++ b/docs/API_docs/methods/initConnection.md @@ -25,14 +25,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/docs/API_docs/methods/invokeWithLayer.md b/docs/API_docs/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/docs/API_docs/methods/invokeWithLayer.md +++ b/docs/API_docs/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/docs/API_docs/methods/langpack_getDifference.md b/docs/API_docs/methods/langpack_getDifference.md index 2e77cc3b..422a3b55 100644 --- a/docs/API_docs/methods/langpack_getDifference.md +++ b/docs/API_docs/methods/langpack_getDifference.md @@ -18,13 +18,6 @@ description: langpack.getDifference parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/docs/API_docs/methods/langpack_getLangPack.md b/docs/API_docs/methods/langpack_getLangPack.md index 5d4d0b81..de1e01ed 100644 --- a/docs/API_docs/methods/langpack_getLangPack.md +++ b/docs/API_docs/methods/langpack_getLangPack.md @@ -18,13 +18,6 @@ description: langpack.getLangPack parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/docs/API_docs/methods/langpack_getLanguages.md b/docs/API_docs/methods/langpack_getLanguages.md index abaa0de3..4fccd707 100644 --- a/docs/API_docs/methods/langpack_getLanguages.md +++ b/docs/API_docs/methods/langpack_getLanguages.md @@ -13,13 +13,6 @@ description: langpack.getLanguages parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/docs/API_docs/methods/langpack_getStrings.md b/docs/API_docs/methods/langpack_getStrings.md index 9bb740dc..fd1e0534 100644 --- a/docs/API_docs/methods/langpack_getStrings.md +++ b/docs/API_docs/methods/langpack_getStrings.md @@ -19,13 +19,6 @@ description: langpack.getStrings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_addChatUser.md b/docs/API_docs/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/docs/API_docs/methods/messages_addChatUser.md +++ b/docs/API_docs/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/docs/API_docs/methods/messages_checkChatInvite.md b/docs/API_docs/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/docs/API_docs/methods/messages_checkChatInvite.md +++ b/docs/API_docs/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_createChat.md b/docs/API_docs/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/docs/API_docs/methods/messages_createChat.md +++ b/docs/API_docs/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/docs/API_docs/methods/messages_deleteChatUser.md b/docs/API_docs/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/docs/API_docs/methods/messages_deleteChatUser.md +++ b/docs/API_docs/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/docs/API_docs/methods/messages_deleteHistory.md b/docs/API_docs/methods/messages_deleteHistory.md index ce6ba6e7..fb9b7763 100644 --- a/docs/API_docs/methods/messages_deleteHistory.md +++ b/docs/API_docs/methods/messages_deleteHistory.md @@ -20,13 +20,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_deleteMessages.md b/docs/API_docs/methods/messages_deleteMessages.md index 2b88a73f..2949f64a 100644 --- a/docs/API_docs/methods/messages_deleteMessages.md +++ b/docs/API_docs/methods/messages_deleteMessages.md @@ -19,13 +19,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/docs/API_docs/methods/messages_editChatAdmin.md b/docs/API_docs/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/docs/API_docs/methods/messages_editChatAdmin.md +++ b/docs/API_docs/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_editChatPhoto.md b/docs/API_docs/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/docs/API_docs/methods/messages_editChatPhoto.md +++ b/docs/API_docs/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_editChatTitle.md b/docs/API_docs/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/docs/API_docs/methods/messages_editChatTitle.md +++ b/docs/API_docs/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_editInlineBotMessage.md b/docs/API_docs/methods/messages_editInlineBotMessage.md index 621c81a3..083d4a61 100644 --- a/docs/API_docs/methods/messages_editInlineBotMessage.md +++ b/docs/API_docs/methods/messages_editInlineBotMessage.md @@ -23,14 +23,6 @@ description: messages.editInlineBotMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| - - ### Example: diff --git a/docs/API_docs/methods/messages_editMessage.md b/docs/API_docs/methods/messages_editMessage.md index 8487e10e..2c3c57fa 100644 --- a/docs/API_docs/methods/messages_editMessage.md +++ b/docs/API_docs/methods/messages_editMessage.md @@ -26,20 +26,6 @@ description: messages.editMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_exportChatInvite.md b/docs/API_docs/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/docs/API_docs/methods/messages_exportChatInvite.md +++ b/docs/API_docs/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_faveSticker.md b/docs/API_docs/methods/messages_faveSticker.md index 4ac9d019..161324a3 100644 --- a/docs/API_docs/methods/messages_faveSticker.md +++ b/docs/API_docs/methods/messages_faveSticker.md @@ -19,13 +19,6 @@ description: messages.faveSticker parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKER_ID_INVALID|The provided sticker ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_forwardMessage.md b/docs/API_docs/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/docs/API_docs/methods/messages_forwardMessage.md +++ b/docs/API_docs/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/docs/API_docs/methods/messages_forwardMessages.md b/docs/API_docs/methods/messages_forwardMessages.md index e08cc5ba..8b91a208 100644 --- a/docs/API_docs/methods/messages_forwardMessages.md +++ b/docs/API_docs/methods/messages_forwardMessages.md @@ -23,31 +23,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/docs/API_docs/methods/messages_getBotCallbackAnswer.md b/docs/API_docs/methods/messages_getBotCallbackAnswer.md index 433144c3..9d9470d0 100644 --- a/docs/API_docs/methods/messages_getBotCallbackAnswer.md +++ b/docs/API_docs/methods/messages_getBotCallbackAnswer.md @@ -21,16 +21,6 @@ description: messages.getBotCallbackAnswer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/docs/API_docs/methods/messages_getChats.md b/docs/API_docs/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/docs/API_docs/methods/messages_getChats.md +++ b/docs/API_docs/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_getCommonChats.md b/docs/API_docs/methods/messages_getCommonChats.md index 0c601ca9..985a52df 100644 --- a/docs/API_docs/methods/messages_getCommonChats.md +++ b/docs/API_docs/methods/messages_getCommonChats.md @@ -20,13 +20,6 @@ description: messages.getCommonChats parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_getDhConfig.md b/docs/API_docs/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/docs/API_docs/methods/messages_getDhConfig.md +++ b/docs/API_docs/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_getDialogs.md b/docs/API_docs/methods/messages_getDialogs.md index 27f0d655..e38aa996 100644 --- a/docs/API_docs/methods/messages_getDialogs.md +++ b/docs/API_docs/methods/messages_getDialogs.md @@ -22,15 +22,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/docs/API_docs/methods/messages_getDocumentByHash.md b/docs/API_docs/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/docs/API_docs/methods/messages_getDocumentByHash.md +++ b/docs/API_docs/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_getGameHighScores.md b/docs/API_docs/methods/messages_getGameHighScores.md index 935bb95a..d558df8a 100644 --- a/docs/API_docs/methods/messages_getGameHighScores.md +++ b/docs/API_docs/methods/messages_getGameHighScores.md @@ -20,14 +20,6 @@ description: messages.getGameHighScores parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/docs/API_docs/methods/messages_getHistory.md b/docs/API_docs/methods/messages_getHistory.md index f6db78c4..273eb6a9 100644 --- a/docs/API_docs/methods/messages_getHistory.md +++ b/docs/API_docs/methods/messages_getHistory.md @@ -24,18 +24,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/docs/API_docs/methods/messages_getInlineBotResults.md b/docs/API_docs/methods/messages_getInlineBotResults.md index ad41660e..f5da1c5a 100644 --- a/docs/API_docs/methods/messages_getInlineBotResults.md +++ b/docs/API_docs/methods/messages_getInlineBotResults.md @@ -22,15 +22,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/docs/API_docs/methods/messages_getInlineGameHighScores.md b/docs/API_docs/methods/messages_getInlineGameHighScores.md index 7cc04d0d..24b512ca 100644 --- a/docs/API_docs/methods/messages_getInlineGameHighScores.md +++ b/docs/API_docs/methods/messages_getInlineGameHighScores.md @@ -19,14 +19,6 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/docs/API_docs/methods/messages_getMessageEditData.md b/docs/API_docs/methods/messages_getMessageEditData.md index 4e20a108..ee07fd74 100644 --- a/docs/API_docs/methods/messages_getMessageEditData.md +++ b/docs/API_docs/methods/messages_getMessageEditData.md @@ -19,14 +19,6 @@ description: messages.getMessageEditData parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_getMessagesViews.md b/docs/API_docs/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/docs/API_docs/methods/messages_getMessagesViews.md +++ b/docs/API_docs/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_getPeerDialogs.md b/docs/API_docs/methods/messages_getPeerDialogs.md index 3da60038..e388e309 100644 --- a/docs/API_docs/methods/messages_getPeerDialogs.md +++ b/docs/API_docs/methods/messages_getPeerDialogs.md @@ -18,14 +18,6 @@ description: messages.getPeerDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_getPeerSettings.md b/docs/API_docs/methods/messages_getPeerSettings.md index d3e3cfc3..26776c43 100644 --- a/docs/API_docs/methods/messages_getPeerSettings.md +++ b/docs/API_docs/methods/messages_getPeerSettings.md @@ -18,14 +18,6 @@ description: messages.getPeerSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_getStickerSet.md b/docs/API_docs/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/docs/API_docs/methods/messages_getStickerSet.md +++ b/docs/API_docs/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_getUnreadMentions.md b/docs/API_docs/methods/messages_getUnreadMentions.md index 54e8cabf..fadbca81 100644 --- a/docs/API_docs/methods/messages_getUnreadMentions.md +++ b/docs/API_docs/methods/messages_getUnreadMentions.md @@ -23,13 +23,6 @@ description: messages.getUnreadMentions parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_hideReportSpam.md b/docs/API_docs/methods/messages_hideReportSpam.md index 2dfe4dd7..20bc6f18 100644 --- a/docs/API_docs/methods/messages_hideReportSpam.md +++ b/docs/API_docs/methods/messages_hideReportSpam.md @@ -18,13 +18,6 @@ description: messages.hideReportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_importChatInvite.md b/docs/API_docs/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/docs/API_docs/methods/messages_importChatInvite.md +++ b/docs/API_docs/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/docs/API_docs/methods/messages_installStickerSet.md b/docs/API_docs/methods/messages_installStickerSet.md index 3dde52a7..6073eb13 100644 --- a/docs/API_docs/methods/messages_installStickerSet.md +++ b/docs/API_docs/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_migrateChat.md b/docs/API_docs/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/docs/API_docs/methods/messages_migrateChat.md +++ b/docs/API_docs/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_readEncryptedHistory.md b/docs/API_docs/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/docs/API_docs/methods/messages_readEncryptedHistory.md +++ b/docs/API_docs/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/docs/API_docs/methods/messages_readHistory.md b/docs/API_docs/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/docs/API_docs/methods/messages_readHistory.md +++ b/docs/API_docs/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_receivedQueue.md b/docs/API_docs/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/docs/API_docs/methods/messages_receivedQueue.md +++ b/docs/API_docs/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/docs/API_docs/methods/messages_reorderPinnedDialogs.md b/docs/API_docs/methods/messages_reorderPinnedDialogs.md index 30102fd7..2660b363 100644 --- a/docs/API_docs/methods/messages_reorderPinnedDialogs.md +++ b/docs/API_docs/methods/messages_reorderPinnedDialogs.md @@ -19,13 +19,6 @@ description: messages.reorderPinnedDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_reportEncryptedSpam.md b/docs/API_docs/methods/messages_reportEncryptedSpam.md index 30ef3473..5764b848 100644 --- a/docs/API_docs/methods/messages_reportEncryptedSpam.md +++ b/docs/API_docs/methods/messages_reportEncryptedSpam.md @@ -18,13 +18,6 @@ description: messages.reportEncryptedSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_reportSpam.md b/docs/API_docs/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/docs/API_docs/methods/messages_reportSpam.md +++ b/docs/API_docs/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_saveDraft.md b/docs/API_docs/methods/messages_saveDraft.md index 42308b46..ef5e65c5 100644 --- a/docs/API_docs/methods/messages_saveDraft.md +++ b/docs/API_docs/methods/messages_saveDraft.md @@ -23,13 +23,6 @@ description: messages.saveDraft parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_saveGif.md b/docs/API_docs/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/docs/API_docs/methods/messages_saveGif.md +++ b/docs/API_docs/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_saveRecentSticker.md b/docs/API_docs/methods/messages_saveRecentSticker.md index 8d45be5e..cb4f98b3 100644 --- a/docs/API_docs/methods/messages_saveRecentSticker.md +++ b/docs/API_docs/methods/messages_saveRecentSticker.md @@ -20,13 +20,6 @@ description: messages.saveRecentSticker parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKER_ID_INVALID|The provided sticker ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_search.md b/docs/API_docs/methods/messages_search.md index fe33b145..0d952193 100644 --- a/docs/API_docs/methods/messages_search.md +++ b/docs/API_docs/methods/messages_search.md @@ -28,17 +28,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_searchGifs.md b/docs/API_docs/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/docs/API_docs/methods/messages_searchGifs.md +++ b/docs/API_docs/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/docs/API_docs/methods/messages_searchGlobal.md b/docs/API_docs/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/docs/API_docs/methods/messages_searchGlobal.md +++ b/docs/API_docs/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/docs/API_docs/methods/messages_sendEncrypted.md b/docs/API_docs/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/docs/API_docs/methods/messages_sendEncrypted.md +++ b/docs/API_docs/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/docs/API_docs/methods/messages_sendEncryptedFile.md b/docs/API_docs/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/docs/API_docs/methods/messages_sendEncryptedFile.md +++ b/docs/API_docs/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/docs/API_docs/methods/messages_sendEncryptedService.md b/docs/API_docs/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/docs/API_docs/methods/messages_sendEncryptedService.md +++ b/docs/API_docs/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/docs/API_docs/methods/messages_sendInlineBotResult.md b/docs/API_docs/methods/messages_sendInlineBotResult.md index 8a91e882..6ab41f50 100644 --- a/docs/API_docs/methods/messages_sendInlineBotResult.md +++ b/docs/API_docs/methods/messages_sendInlineBotResult.md @@ -24,15 +24,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/docs/API_docs/methods/messages_sendMedia.md b/docs/API_docs/methods/messages_sendMedia.md index 6c5e65d5..68e2c41b 100644 --- a/docs/API_docs/methods/messages_sendMedia.md +++ b/docs/API_docs/methods/messages_sendMedia.md @@ -24,27 +24,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/docs/API_docs/methods/messages_sendMessage.md b/docs/API_docs/methods/messages_sendMessage.md index f9f2aa8a..cabccdb3 100644 --- a/docs/API_docs/methods/messages_sendMessage.md +++ b/docs/API_docs/methods/messages_sendMessage.md @@ -27,31 +27,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/docs/API_docs/methods/messages_sendScreenshotNotification.md b/docs/API_docs/methods/messages_sendScreenshotNotification.md index a725a12b..7c895738 100644 --- a/docs/API_docs/methods/messages_sendScreenshotNotification.md +++ b/docs/API_docs/methods/messages_sendScreenshotNotification.md @@ -19,13 +19,6 @@ description: messages.sendScreenshotNotification parameters, return type and exa ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_setBotCallbackAnswer.md b/docs/API_docs/methods/messages_setBotCallbackAnswer.md index 2c51854f..ef9b8f7a 100644 --- a/docs/API_docs/methods/messages_setBotCallbackAnswer.md +++ b/docs/API_docs/methods/messages_setBotCallbackAnswer.md @@ -22,13 +22,6 @@ description: messages.setBotCallbackAnswer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_setBotPrecheckoutResults.md b/docs/API_docs/methods/messages_setBotPrecheckoutResults.md index 25ed5ed5..92bdcb9e 100644 --- a/docs/API_docs/methods/messages_setBotPrecheckoutResults.md +++ b/docs/API_docs/methods/messages_setBotPrecheckoutResults.md @@ -20,13 +20,6 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ERROR_TEXT_EMPTY|The provided error message is empty| - - ### Example: diff --git a/docs/API_docs/methods/messages_setBotShippingResults.md b/docs/API_docs/methods/messages_setBotShippingResults.md index 49ac2896..e2c7cd45 100644 --- a/docs/API_docs/methods/messages_setBotShippingResults.md +++ b/docs/API_docs/methods/messages_setBotShippingResults.md @@ -20,13 +20,6 @@ description: messages.setBotShippingResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_setEncryptedTyping.md b/docs/API_docs/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/docs/API_docs/methods/messages_setEncryptedTyping.md +++ b/docs/API_docs/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_setGameScore.md b/docs/API_docs/methods/messages_setGameScore.md index 3137f7c9..f16a7539 100644 --- a/docs/API_docs/methods/messages_setGameScore.md +++ b/docs/API_docs/methods/messages_setGameScore.md @@ -23,14 +23,6 @@ description: messages.setGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/docs/API_docs/methods/messages_setInlineBotResults.md b/docs/API_docs/methods/messages_setInlineBotResults.md index 8b5625f3..cf74e5e4 100644 --- a/docs/API_docs/methods/messages_setInlineBotResults.md +++ b/docs/API_docs/methods/messages_setInlineBotResults.md @@ -24,23 +24,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/docs/API_docs/methods/messages_setInlineGameScore.md b/docs/API_docs/methods/messages_setInlineGameScore.md index 36752f35..c922f937 100644 --- a/docs/API_docs/methods/messages_setInlineGameScore.md +++ b/docs/API_docs/methods/messages_setInlineGameScore.md @@ -22,14 +22,6 @@ description: messages.setInlineGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/docs/API_docs/methods/messages_setTyping.md b/docs/API_docs/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/docs/API_docs/methods/messages_setTyping.md +++ b/docs/API_docs/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_startBot.md b/docs/API_docs/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/docs/API_docs/methods/messages_startBot.md +++ b/docs/API_docs/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_toggleChatAdmins.md b/docs/API_docs/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/docs/API_docs/methods/messages_toggleChatAdmins.md +++ b/docs/API_docs/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/docs/API_docs/methods/messages_toggleDialogPin.md b/docs/API_docs/methods/messages_toggleDialogPin.md index f35f2f40..f4506918 100644 --- a/docs/API_docs/methods/messages_toggleDialogPin.md +++ b/docs/API_docs/methods/messages_toggleDialogPin.md @@ -19,13 +19,6 @@ description: messages.toggleDialogPin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_uninstallStickerSet.md b/docs/API_docs/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/docs/API_docs/methods/messages_uninstallStickerSet.md +++ b/docs/API_docs/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/docs/API_docs/methods/messages_uploadMedia.md b/docs/API_docs/methods/messages_uploadMedia.md index 9f3f91ff..64fd8372 100644 --- a/docs/API_docs/methods/messages_uploadMedia.md +++ b/docs/API_docs/methods/messages_uploadMedia.md @@ -19,14 +19,6 @@ description: messages.uploadMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/payments_getPaymentForm.md b/docs/API_docs/methods/payments_getPaymentForm.md index 15f6e26b..fa82f22d 100644 --- a/docs/API_docs/methods/payments_getPaymentForm.md +++ b/docs/API_docs/methods/payments_getPaymentForm.md @@ -18,13 +18,6 @@ description: payments.getPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/payments_getPaymentReceipt.md b/docs/API_docs/methods/payments_getPaymentReceipt.md index 51433563..d6b5f5d6 100644 --- a/docs/API_docs/methods/payments_getPaymentReceipt.md +++ b/docs/API_docs/methods/payments_getPaymentReceipt.md @@ -18,13 +18,6 @@ description: payments.getPaymentReceipt parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/payments_sendPaymentForm.md b/docs/API_docs/methods/payments_sendPaymentForm.md index a63a3980..831516a3 100644 --- a/docs/API_docs/methods/payments_sendPaymentForm.md +++ b/docs/API_docs/methods/payments_sendPaymentForm.md @@ -21,13 +21,6 @@ description: payments.sendPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/payments_validateRequestedInfo.md b/docs/API_docs/methods/payments_validateRequestedInfo.md index d839a2df..4102a473 100644 --- a/docs/API_docs/methods/payments_validateRequestedInfo.md +++ b/docs/API_docs/methods/payments_validateRequestedInfo.md @@ -20,13 +20,6 @@ description: payments.validateRequestedInfo parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/docs/API_docs/methods/phone_receivedCall.md b/docs/API_docs/methods/phone_receivedCall.md index 9d59b1ea..b06a90ad 100644 --- a/docs/API_docs/methods/phone_receivedCall.md +++ b/docs/API_docs/methods/phone_receivedCall.md @@ -18,14 +18,6 @@ description: phone.receivedCall parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_ALREADY_DECLINED|The call was already declined| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/docs/API_docs/methods/phone_saveCallDebug.md b/docs/API_docs/methods/phone_saveCallDebug.md index 4dee5c97..589dc522 100644 --- a/docs/API_docs/methods/phone_saveCallDebug.md +++ b/docs/API_docs/methods/phone_saveCallDebug.md @@ -19,14 +19,6 @@ description: phone.saveCallDebug parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| -|DATA_JSON_INVALID|The provided JSON data is invalid| - - ### Example: diff --git a/docs/API_docs/methods/phone_setCallRating.md b/docs/API_docs/methods/phone_setCallRating.md index fea236d1..a2b2e27c 100644 --- a/docs/API_docs/methods/phone_setCallRating.md +++ b/docs/API_docs/methods/phone_setCallRating.md @@ -20,13 +20,6 @@ description: phone.setCallRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/docs/API_docs/methods/photos_getUserPhotos.md b/docs/API_docs/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/docs/API_docs/methods/photos_getUserPhotos.md +++ b/docs/API_docs/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/photos_uploadProfilePhoto.md b/docs/API_docs/methods/photos_uploadProfilePhoto.md index 58541f23..6de32dae 100644 --- a/docs/API_docs/methods/photos_uploadProfilePhoto.md +++ b/docs/API_docs/methods/photos_uploadProfilePhoto.md @@ -18,17 +18,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/docs/API_docs/methods/stickers_addStickerToSet.md b/docs/API_docs/methods/stickers_addStickerToSet.md index bf62fa09..620e773a 100644 --- a/docs/API_docs/methods/stickers_addStickerToSet.md +++ b/docs/API_docs/methods/stickers_addStickerToSet.md @@ -19,14 +19,6 @@ description: stickers.addStickerToSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/docs/API_docs/methods/stickers_changeStickerPosition.md b/docs/API_docs/methods/stickers_changeStickerPosition.md index 942d3a33..6b517d4c 100644 --- a/docs/API_docs/methods/stickers_changeStickerPosition.md +++ b/docs/API_docs/methods/stickers_changeStickerPosition.md @@ -19,14 +19,6 @@ description: stickers.changeStickerPosition parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKER_INVALID|The provided sticker is invalid| - - ### Example: diff --git a/docs/API_docs/methods/stickers_createStickerSet.md b/docs/API_docs/methods/stickers_createStickerSet.md index 02ec673b..cacdd73a 100644 --- a/docs/API_docs/methods/stickers_createStickerSet.md +++ b/docs/API_docs/methods/stickers_createStickerSet.md @@ -22,17 +22,6 @@ description: stickers.createStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|PACK_SHORT_NAME_INVALID|Short pack name invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|STICKERS_EMPTY|No sticker provided| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/docs/API_docs/methods/stickers_removeStickerFromSet.md b/docs/API_docs/methods/stickers_removeStickerFromSet.md index 51e52f95..941b24f4 100644 --- a/docs/API_docs/methods/stickers_removeStickerFromSet.md +++ b/docs/API_docs/methods/stickers_removeStickerFromSet.md @@ -18,14 +18,6 @@ description: stickers.removeStickerFromSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKER_INVALID|The provided sticker is invalid| - - ### Example: diff --git a/docs/API_docs/methods/upload_getWebFile.md b/docs/API_docs/methods/upload_getWebFile.md index ec7c05b4..fab17a7f 100644 --- a/docs/API_docs/methods/upload_getWebFile.md +++ b/docs/API_docs/methods/upload_getWebFile.md @@ -20,13 +20,6 @@ description: upload.getWebFile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LOCATION_INVALID|The provided location is invalid| - - ### Example: diff --git a/docs/API_docs/methods/users_getUsers.md b/docs/API_docs/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/docs/API_docs/methods/users_getUsers.md +++ b/docs/API_docs/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/docs/MTProto_docs/methods/index.md b/docs/MTProto_docs/methods/index.md index d9ef0fa3..68d26205 100644 --- a/docs/MTProto_docs/methods/index.md +++ b/docs/MTProto_docs/methods/index.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/docs/TD_docs/methods/index.md b/docs/TD_docs/methods/index.md index 5e49e872..4de9e6e3 100644 --- a/docs/TD_docs/methods/index.md +++ b/docs/TD_docs/methods/index.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/docs/index.md b/docs/index.md index 628ecb5a..ceaebf8e 100644 --- a/docs/index.md +++ b/docs/index.md @@ -159,31 +159,18 @@ You can find examples for nearly every MadelineProto function in VERY IMPORTANT: An istance of MadelineProto MUST be serialized every time an update is fetched, and on shutdown. To serialize MadelineProto to a file, you must use the `\danog\MadelineProto\Serialization` class: ``` -$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); +$MadelineProto = new \danog\MadelineProto\API('session.madeline'); // Do stuff \danog\MadelineProto\Serialization::serialize('session.madeline', $MadelineProto); // or $MadelineProto->serialize('session.madeline'); ``` -Or, to serialize automatically every time and update is fetched and on shutdown: - -``` -$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); -$MadelineProto->session = 'session.madeline'; -``` - This way, if the scripts shutsdown normally (without ctrl+c or fatal errors/exceptions), the session will also be serialized automatically. It is still recommended to serialize the session at every update. -The deserialize method accepts a second optional parameter, `$no_updates`, that can be set to true to avoid fetching updates on deserialization, and postpone parsing of updates received through the socket until the next deserialization. -That class serializes using [MagicalSerializer](https://github.com/danog/MagicalSerializer). -The same should be done when serializing to another destination manually, to avoid conflicts with other PHP scripts that are trying to serialize another instance of the class. - - - ## Methods A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 71)](https://daniil.it/MadelineProto/API_docs/). @@ -300,7 +287,148 @@ If you're selling a MadelineProto base too, you really should consider donating ### Settings The constructor accepts an optional parameter, which is the settings array. This array contains some other arrays, which are the settings for a specific MadelineProto function. -See [here](https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/MTProto.php#L448) for the default values for the settings arrays and explanations for every setting. +Here are the default values for the settings arrays and explanations for every setting: + +``` +[ + 'authorization' => [ // Authorization settings + 'default_temp_auth_key_expires_in' => 31557600, // validity of temporary keys and the binding of the temporary and permanent keys + 'rsa_keys' => [ + "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAwVACPi9w23mF3tBkdZz+zwrzKOaaQdr01vAbU4E1pvkfj4sqDsm6\nlyDONS789sVoD/xCS9Y0hkkC3gtL1tSfTlgCMOOul9lcixlEKzwKENj1Yz/s7daS\nan9tqw3bfUV/nqgbhGX81v/+7RFAEd+RwFnK7a+XYl9sluzHRyVVaTTveB2GazTw\nEfzk2DWgkBluml8OREmvfraX3bkHZJTKX4EQSjBbbdJ2ZXIsRrYOXfaA+xayEGB+\n8hdlLmAjbCVfaigxX0CDqWeR1yFL9kwd9P0NsZRPsmoqVwMbMu7mStFai6aIhc3n\nSlv8kg9qv1m6XHVQY3PnEw+QQtqSIXklHwIDAQAB\n-----END RSA PUBLIC KEY-----", + "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAxq7aeLAqJR20tkQQMfRn+ocfrtMlJsQ2Uksfs7Xcoo77jAid0bRt\nksiVmT2HEIJUlRxfABoPBV8wY9zRTUMaMA654pUX41mhyVN+XoerGxFvrs9dF1Ru\nvCHbI02dM2ppPvyytvvMoefRoL5BTcpAihFgm5xCaakgsJ/tH5oVl74CdhQw8J5L\nxI/K++KJBUyZ26Uba1632cOiq05JBUW0Z2vWIOk4BLysk7+U9z+SxynKiZR3/xdi\nXvFKk01R3BHV+GUKM2RYazpS/P8v7eyKhAbKxOdRcFpHLlVwfjyM1VlDQrEZxsMp\nNTLYXb6Sce1Uov0YtNx5wEowlREH1WOTlwIDAQAB\n-----END RSA PUBLIC KEY-----", + "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAsQZnSWVZNfClk29RcDTJQ76n8zZaiTGuUsi8sUhW8AS4PSbPKDm+\nDyJgdHDWdIF3HBzl7DHeFrILuqTs0vfS7Pa2NW8nUBwiaYQmPtwEa4n7bTmBVGsB\n1700/tz8wQWOLUlL2nMv+BPlDhxq4kmJCyJfgrIrHlX8sGPcPA4Y6Rwo0MSqYn3s\ng1Pu5gOKlaT9HKmE6wn5Sut6IiBjWozrRQ6n5h2RXNtO7O2qCDqjgB2vBxhV7B+z\nhRbLbCmW0tYMDsvPpX5M8fsO05svN+lKtCAuz1leFns8piZpptpSCFn7bWxiA9/f\nx5x17D7pfah3Sy2pA+NDXyzSlGcKdaUmwQIDAQAB\n-----END RSA PUBLIC KEY-----", + "-----BEGIN RSA PUBLIC KEY-----\nMIIBCgKCAQEAwqjFW0pi4reKGbkc9pK83Eunwj/k0G8ZTioMMPbZmW99GivMibwa\nxDM9RDWabEMyUtGoQC2ZcDeLWRK3W8jMP6dnEKAlvLkDLfC4fXYHzFO5KHEqF06i\nqAqBdmI1iBGdQv/OQCBcbXIWCGDY2AsiqLhlGQfPOI7/vvKc188rTriocgUtoTUc\n/n/sIUzkgwTqRyvWYynWARWzQg0I9olLBBC2q5RQJJlnYXZwyTL3y9tdb7zOHkks\nWV9IMQmZmyZh/N7sMbGWQpt4NMchGpPGeJ2e5gHBjDnlIf2p1yZOYeUYrdbwcS0t\nUiggS4UeE8TzIuXFQxw7fzEIlmhIaq3FnwIDAQAB\n-----END RSA PUBLIC KEY-----", + ], // RSA public keys + ], + 'connection' => [ // List of datacenters/subdomains where to connect + 'ssl_subdomains' => [ // Subdomains of web.telegram.org for https protocol + 1 => 'pluto', + 2 => 'venus', + 3 => 'aurora', + 4 => 'vesta', + 5 => 'flora', // musa oh wait no :( + ], + 'test' => [ // Test datacenters + 'ipv4' => [ // ipv4 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '149.154.167.40', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], + 'ipv6' => [ // ipv6 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '2001:067c:04e8:f002:0000:0000:0000:000e', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], + ], + 'main' => [ // Main datacenters + 'ipv4' => [ // ipv4 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '149.154.167.51', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], + 'ipv6' => [ // ipv6 addresses + 2 => [ // The rest will be fetched automatically + 'ip_address' => '2001:067c:04e8:f002:0000:0000:0000:000a', + 'port' => 443, + 'media_only' => false, + 'tcpo_only' => false, + ], + ], + ], + ], + 'connection_settings' => [ // connection settings + 'all' => [ // These settings will be applied on every datacenter that hasn't a custom settings subarray... + 'protocol' => 'tcp_full', // can be tcp_full, tcp_abridged, tcp_intermediate, http, https, obfuscated2, udp (unsupported) + 'test_mode' => false, // decides whether to connect to the main telegram servers or to the testing servers (deep telegram) + 'ipv6' => $this - > ipv6, // decides whether to use ipv6, ipv6 attribute of API attribute of API class contains autodetected boolean + 'timeout' => 2, // timeout for sockets + 'proxy' => '\Socket', // The proxy class to use + 'proxy_extra' => [], // Extra parameters to pass to the proxy class using setExtra + ], + ], + 'app_info' => [ // obtained in https://my.telegram.org + //'api_id' => you should put an API id in the settings array you provide + //'api_hash' => you should put an API hash in the settings array you provide + 'device_model' => $device_model, + 'system_version' => $system_version, + 'app_version' => 'Unicorn', + 'lang_code' => $lang_code, + ], + 'tl_schema' => [ // TL scheme files + 'layer' => 72, // layer version + 'src' => [ + 'mtproto' => __DIR__.'/TL_mtproto_v1.json', // mtproto TL scheme + 'telegram' => __DIR__.'/TL_telegram_v72.tl', // telegram TL scheme + 'secret' => __DIR__.'/TL_secret.tl', // secret chats TL scheme + 'calls' => __DIR__.'/TL_calls.tl', // calls TL scheme + 'botAPI' => __DIR__.'/TL_botAPI.tl', // bot API TL scheme for file ids + ], + ], + 'logger' => [ // Logger settings + /* + * logger modes: + * 0 - No logger + * 1 - Log to the default logger destination + * 2 - Log to file defined in second parameter + * 3 - Echo logs + * 4 - Call callable provided in logger_param. logger_param must accept two parameters: array $message, int $level + * $message is an array containing the messages the log, $level, is the logging level + */ + 'logger' => 1, // write to + 'logger_param' => '/tmp/MadelineProto.log', + 'logger' => 3, // overwrite previous setting and echo logs + 'logger_level' => Logger::VERBOSE, // Logging level, available logging levels are: ULTRA_VERBOSE, VERBOSE, NOTICE, WARNING, ERROR, FATAL_ERROR. Can be provided as last parameter to the logging function. + 'rollbar_token' => 'f9fff6689aea4905b58eec73f66c791d' // You can provide a token for the rollbar log management system + ], + 'max_tries' => [ + 'query' => 5, // How many times should I try to call a method or send an object before throwing an exception + 'authorization' => 5, // How many times should I try to generate an authorization key before throwing an exception + 'response' => 5, // How many times should I try to get a response of a query before throwing an exception + ], + 'flood_timeout' => [ + 'wait_if_lt' => 20, // Sleeps if flood block time is lower than this + ], + 'msg_array_limit' => [ // How big should be the arrays containing the incoming and outgoing messages? + 'incoming' => 200, + 'outgoing' => 200, + 'call_queue' => 200, + ], + 'peer' => [ + 'full_info_cache_time' => 60, + ], + 'requests' => [ + 'gzip_encode_if_gt' => 500, // Should I try using gzip encoding for requests bigger than N bytes? Set to -1 to disable. + ], + 'updates' => [ + 'handle_updates' => true, // Should I handle updates? + 'callback' => 'get_updates_update_handler', // A callable function that will be called every time an update is received, must accept an array (for the update) as the only parameter + ], + 'secret_chats' => [ + 'accept_chats' => true, // Should I accept secret chats? Can be true, false or on array of user ids from which to accept chats + ], + 'threading' => [ + 'allow_threading' => false, // Should I use threading, if it is enabled? + 'handler_workers' => 10, // How many workers should every message handler pool of each socket reader have + ], + 'pwr' => [ + 'pwr' => false, // Need info ? + 'db_token' => false, // Need info ? + 'strict' => false, // Need info ? + 'requests' => true, // Should I get info about unknown peers from PWRTelegram? + ], +]; +``` + + You can provide part of any subsetting array, that way the remaining arrays will be automagically set to default and undefined values of specified subsetting arrays will be set to the default values. Example: @@ -330,8 +458,10 @@ Note that only settings arrays or values of a settings array will be set to defa The settings array can be accessed and modified in the instantiated class by accessing the `settings` attribute of the API class: ``` -$MadelineProto = new \danog\MadelineProto\API(); +$yoursettings = ['updates' => ['handle_updates' => false]]; // disable update handlig +$MadelineProto = new \danog\MadelineProto\API($yoursettings); var_dump($MadelineProto->settings); +$MadelineProto->settings['updates']['handle_updates'] = true; // reenable update fetching ``` ### Handling updates diff --git a/lua/madeline.php b/lua/madeline.php index d899081d..5b780805 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 = \danog\MadelineProto\Serialization::deserialize('bot.madeline'); + $Lua = new \danog\MadelineProto\API('bot.madeline'); } catch (\danog\MadelineProto\Exception $e) { } if (!is_object($Lua)) { diff --git a/lua/td.php b/lua/td.php index a9cef841..7e7d8811 100755 --- a/lua/td.php +++ b/lua/td.php @@ -16,7 +16,7 @@ $settings = []; $Lua = false; try { - $Lua = \danog\MadelineProto\Serialization::deserialize('td.madeline'); + $Lua = new \danog\MadelineProto\API('td.madeline'); } catch (\danog\MadelineProto\Exception $e) { } if (!is_object($Lua)) { diff --git a/magna.php b/magna.php index 184c55aa..3d28f75b 100755 --- a/magna.php +++ b/magna.php @@ -21,7 +21,7 @@ echo 'Deserializing MadelineProto from session.madeline...'.PHP_EOL; $MadelineProto = false; try { - $MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); + $MadelineProto = new \danog\MadelineProto\API('session.madeline'); } catch (\danog\MadelineProto\Exception $e) { var_dump($e->getMessage()); } diff --git a/old_docs/API_docs_v18/methods/README.md b/old_docs/API_docs_v18/methods/README.md index 830b35c5..9fb3a43d 100644 --- a/old_docs/API_docs_v18/methods/README.md +++ b/old_docs/API_docs_v18/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v18/methods/account_checkUsername.md b/old_docs/API_docs_v18/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v18/methods/account_checkUsername.md +++ b/old_docs/API_docs_v18/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/account_getNotifySettings.md b/old_docs/API_docs_v18/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v18/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/account_registerDevice.md b/old_docs/API_docs_v18/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v18/methods/account_registerDevice.md +++ b/old_docs/API_docs_v18/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/account_unregisterDevice.md b/old_docs/API_docs_v18/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v18/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v18/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/account_updateNotifySettings.md b/old_docs/API_docs_v18/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v18/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/account_updateProfile.md b/old_docs/API_docs_v18/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v18/methods/account_updateProfile.md +++ b/old_docs/API_docs_v18/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/account_updateUsername.md b/old_docs/API_docs_v18/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v18/methods/account_updateUsername.md +++ b/old_docs/API_docs_v18/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_checkPhone.md b/old_docs/API_docs_v18/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v18/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v18/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_exportAuthorization.md b/old_docs/API_docs_v18/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v18/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v18/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_importAuthorization.md b/old_docs/API_docs_v18/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v18/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v18/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_sendInvites.md b/old_docs/API_docs_v18/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v18/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v18/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_block.md b/old_docs/API_docs_v18/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v18/methods/contacts_block.md +++ b/old_docs/API_docs_v18/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_deleteContact.md b/old_docs/API_docs_v18/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v18/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v18/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_deleteContacts.md b/old_docs/API_docs_v18/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v18/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v18/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_importCard.md b/old_docs/API_docs_v18/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v18/methods/contacts_importCard.md +++ b/old_docs/API_docs_v18/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_search.md b/old_docs/API_docs_v18/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v18/methods/contacts_search.md +++ b/old_docs/API_docs_v18/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_unblock.md b/old_docs/API_docs_v18/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v18/methods/contacts_unblock.md +++ b/old_docs/API_docs_v18/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/initConnection.md b/old_docs/API_docs_v18/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v18/methods/initConnection.md +++ b/old_docs/API_docs_v18/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_addChatUser.md b/old_docs/API_docs_v18/methods/messages_addChatUser.md index dfd042ed..134599e5 100644 --- a/old_docs/API_docs_v18/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v18/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_createChat.md b/old_docs/API_docs_v18/methods/messages_createChat.md index b673e29f..e43d8017 100644 --- a/old_docs/API_docs_v18/methods/messages_createChat.md +++ b/old_docs/API_docs_v18/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md index 83eae12f..d3a735fb 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_deleteHistory.md b/old_docs/API_docs_v18/methods/messages_deleteHistory.md index b7a9417d..78045107 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v18/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_deleteMessages.md b/old_docs/API_docs_v18/methods/messages_deleteMessages.md index ae8ed6b1..e29549d5 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v18/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_editChatPhoto.md b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md index dad01c69..9b1254a2 100644 --- a/old_docs/API_docs_v18/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_editChatTitle.md b/old_docs/API_docs_v18/methods/messages_editChatTitle.md index adf61faa..2602a3ae 100644 --- a/old_docs/API_docs_v18/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v18/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessage.md b/old_docs/API_docs_v18/methods/messages_forwardMessage.md index 21015bd7..79af822d 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessages.md b/old_docs/API_docs_v18/methods/messages_forwardMessages.md index 4da76def..6544bb0f 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessages.md @@ -19,31 +19,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_getChats.md b/old_docs/API_docs_v18/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v18/methods/messages_getChats.md +++ b/old_docs/API_docs_v18/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_getDhConfig.md b/old_docs/API_docs_v18/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v18/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v18/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_getDialogs.md b/old_docs/API_docs_v18/methods/messages_getDialogs.md index c836dab0..7b6c9d9b 100644 --- a/old_docs/API_docs_v18/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v18/methods/messages_getDialogs.md @@ -20,15 +20,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_getHistory.md b/old_docs/API_docs_v18/methods/messages_getHistory.md index 57bef2e4..9f94fc45 100644 --- a/old_docs/API_docs_v18/methods/messages_getHistory.md +++ b/old_docs/API_docs_v18/methods/messages_getHistory.md @@ -21,18 +21,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_readHistory.md b/old_docs/API_docs_v18/methods/messages_readHistory.md index c5dca72d..7f5a2392 100644 --- a/old_docs/API_docs_v18/methods/messages_readHistory.md +++ b/old_docs/API_docs_v18/methods/messages_readHistory.md @@ -21,13 +21,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_receivedQueue.md b/old_docs/API_docs_v18/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v18/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v18/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_reportSpam.md b/old_docs/API_docs_v18/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v18/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v18/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_search.md b/old_docs/API_docs_v18/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v18/methods/messages_search.md +++ b/old_docs/API_docs_v18/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_sendMedia.md b/old_docs/API_docs_v18/methods/messages_sendMedia.md index 78d9652a..ea45a489 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v18/methods/messages_sendMedia.md @@ -19,27 +19,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_sendMessage.md b/old_docs/API_docs_v18/methods/messages_sendMessage.md index dd1ddc28..89c7dbf1 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v18/methods/messages_sendMessage.md @@ -19,31 +19,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_setTyping.md b/old_docs/API_docs_v18/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v18/methods/messages_setTyping.md +++ b/old_docs/API_docs_v18/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/photos_getUserPhotos.md b/old_docs/API_docs_v18/methods/photos_getUserPhotos.md index 56c76d8b..2eb70120 100644 --- a/old_docs/API_docs_v18/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v18/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v18/methods/users_getUsers.md b/old_docs/API_docs_v18/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v18/methods/users_getUsers.md +++ b/old_docs/API_docs_v18/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/README.md b/old_docs/API_docs_v23/methods/README.md index 3bea252a..79d7daa1 100644 --- a/old_docs/API_docs_v23/methods/README.md +++ b/old_docs/API_docs_v23/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v23/methods/account_changePhone.md b/old_docs/API_docs_v23/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v23/methods/account_changePhone.md +++ b/old_docs/API_docs_v23/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_checkUsername.md b/old_docs/API_docs_v23/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v23/methods/account_checkUsername.md +++ b/old_docs/API_docs_v23/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_getNotifySettings.md b/old_docs/API_docs_v23/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v23/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_getPrivacy.md b/old_docs/API_docs_v23/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v23/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v23/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_registerDevice.md b/old_docs/API_docs_v23/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v23/methods/account_registerDevice.md +++ b/old_docs/API_docs_v23/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_reportPeer.md b/old_docs/API_docs_v23/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v23/methods/account_reportPeer.md +++ b/old_docs/API_docs_v23/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md index 650dba72..b31df77c 100644 --- a/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md @@ -18,13 +18,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_setAccountTTL.md b/old_docs/API_docs_v23/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v23/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v23/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_setPrivacy.md b/old_docs/API_docs_v23/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v23/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v23/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_unregisterDevice.md b/old_docs/API_docs_v23/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v23/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v23/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_updateNotifySettings.md b/old_docs/API_docs_v23/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v23/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_updateProfile.md b/old_docs/API_docs_v23/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v23/methods/account_updateProfile.md +++ b/old_docs/API_docs_v23/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/account_updateUsername.md b/old_docs/API_docs_v23/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v23/methods/account_updateUsername.md +++ b/old_docs/API_docs_v23/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_checkPhone.md b/old_docs/API_docs_v23/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v23/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v23/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_exportAuthorization.md b/old_docs/API_docs_v23/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v23/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v23/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_importAuthorization.md b/old_docs/API_docs_v23/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v23/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v23/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_sendInvites.md b/old_docs/API_docs_v23/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v23/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v23/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_block.md b/old_docs/API_docs_v23/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v23/methods/contacts_block.md +++ b/old_docs/API_docs_v23/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_deleteContact.md b/old_docs/API_docs_v23/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v23/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v23/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_deleteContacts.md b/old_docs/API_docs_v23/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v23/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v23/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_importCard.md b/old_docs/API_docs_v23/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v23/methods/contacts_importCard.md +++ b/old_docs/API_docs_v23/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_search.md b/old_docs/API_docs_v23/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v23/methods/contacts_search.md +++ b/old_docs/API_docs_v23/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_unblock.md b/old_docs/API_docs_v23/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v23/methods/contacts_unblock.md +++ b/old_docs/API_docs_v23/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/initConnection.md b/old_docs/API_docs_v23/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v23/methods/initConnection.md +++ b/old_docs/API_docs_v23/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/invokeWithLayer.md b/old_docs/API_docs_v23/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v23/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v23/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_addChatUser.md b/old_docs/API_docs_v23/methods/messages_addChatUser.md index dfd042ed..134599e5 100644 --- a/old_docs/API_docs_v23/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v23/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_createChat.md b/old_docs/API_docs_v23/methods/messages_createChat.md index b673e29f..e43d8017 100644 --- a/old_docs/API_docs_v23/methods/messages_createChat.md +++ b/old_docs/API_docs_v23/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md index 83eae12f..d3a735fb 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_deleteHistory.md b/old_docs/API_docs_v23/methods/messages_deleteHistory.md index b7a9417d..78045107 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v23/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_deleteMessages.md b/old_docs/API_docs_v23/methods/messages_deleteMessages.md index ae8ed6b1..e29549d5 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v23/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_editChatPhoto.md b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md index dad01c69..9b1254a2 100644 --- a/old_docs/API_docs_v23/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_editChatTitle.md b/old_docs/API_docs_v23/methods/messages_editChatTitle.md index adf61faa..2602a3ae 100644 --- a/old_docs/API_docs_v23/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v23/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessage.md b/old_docs/API_docs_v23/methods/messages_forwardMessage.md index 21015bd7..79af822d 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessages.md b/old_docs/API_docs_v23/methods/messages_forwardMessages.md index 4da76def..6544bb0f 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessages.md @@ -19,31 +19,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_getChats.md b/old_docs/API_docs_v23/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v23/methods/messages_getChats.md +++ b/old_docs/API_docs_v23/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_getDhConfig.md b/old_docs/API_docs_v23/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v23/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v23/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_getDialogs.md b/old_docs/API_docs_v23/methods/messages_getDialogs.md index c836dab0..7b6c9d9b 100644 --- a/old_docs/API_docs_v23/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v23/methods/messages_getDialogs.md @@ -20,15 +20,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_getHistory.md b/old_docs/API_docs_v23/methods/messages_getHistory.md index 57bef2e4..9f94fc45 100644 --- a/old_docs/API_docs_v23/methods/messages_getHistory.md +++ b/old_docs/API_docs_v23/methods/messages_getHistory.md @@ -21,18 +21,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_readHistory.md b/old_docs/API_docs_v23/methods/messages_readHistory.md index c5dca72d..7f5a2392 100644 --- a/old_docs/API_docs_v23/methods/messages_readHistory.md +++ b/old_docs/API_docs_v23/methods/messages_readHistory.md @@ -21,13 +21,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_receivedQueue.md b/old_docs/API_docs_v23/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v23/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v23/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_reportSpam.md b/old_docs/API_docs_v23/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v23/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v23/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_search.md b/old_docs/API_docs_v23/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v23/methods/messages_search.md +++ b/old_docs/API_docs_v23/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_sendMedia.md b/old_docs/API_docs_v23/methods/messages_sendMedia.md index 78d9652a..ea45a489 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v23/methods/messages_sendMedia.md @@ -19,27 +19,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_sendMessage.md b/old_docs/API_docs_v23/methods/messages_sendMessage.md index dd1ddc28..89c7dbf1 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v23/methods/messages_sendMessage.md @@ -19,31 +19,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_setTyping.md b/old_docs/API_docs_v23/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v23/methods/messages_setTyping.md +++ b/old_docs/API_docs_v23/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/photos_getUserPhotos.md b/old_docs/API_docs_v23/methods/photos_getUserPhotos.md index 56c76d8b..2eb70120 100644 --- a/old_docs/API_docs_v23/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v23/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v23/methods/users_getUsers.md b/old_docs/API_docs_v23/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v23/methods/users_getUsers.md +++ b/old_docs/API_docs_v23/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/README.md b/old_docs/API_docs_v25/methods/README.md index 6f5be714..4a7f3e90 100644 --- a/old_docs/API_docs_v25/methods/README.md +++ b/old_docs/API_docs_v25/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v25/methods/account_changePhone.md b/old_docs/API_docs_v25/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v25/methods/account_changePhone.md +++ b/old_docs/API_docs_v25/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/account_checkUsername.md b/old_docs/API_docs_v25/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v25/methods/account_checkUsername.md +++ b/old_docs/API_docs_v25/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/account_getNotifySettings.md b/old_docs/API_docs_v25/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v25/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/account_getPrivacy.md b/old_docs/API_docs_v25/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v25/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v25/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/account_registerDevice.md b/old_docs/API_docs_v25/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v25/methods/account_registerDevice.md +++ b/old_docs/API_docs_v25/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md index 650dba72..b31df77c 100644 --- a/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md @@ -18,13 +18,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/account_setAccountTTL.md b/old_docs/API_docs_v25/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v25/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v25/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/account_setPrivacy.md b/old_docs/API_docs_v25/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v25/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v25/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/account_unregisterDevice.md b/old_docs/API_docs_v25/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v25/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v25/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/account_updateNotifySettings.md b/old_docs/API_docs_v25/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v25/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/account_updateProfile.md b/old_docs/API_docs_v25/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v25/methods/account_updateProfile.md +++ b/old_docs/API_docs_v25/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/account_updateUsername.md b/old_docs/API_docs_v25/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v25/methods/account_updateUsername.md +++ b/old_docs/API_docs_v25/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_checkPassword.md b/old_docs/API_docs_v25/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v25/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v25/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_checkPhone.md b/old_docs/API_docs_v25/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v25/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v25/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_exportAuthorization.md b/old_docs/API_docs_v25/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v25/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v25/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_importAuthorization.md b/old_docs/API_docs_v25/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v25/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v25/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_sendInvites.md b/old_docs/API_docs_v25/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v25/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v25/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_block.md b/old_docs/API_docs_v25/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v25/methods/contacts_block.md +++ b/old_docs/API_docs_v25/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_deleteContact.md b/old_docs/API_docs_v25/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v25/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v25/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_deleteContacts.md b/old_docs/API_docs_v25/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v25/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v25/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_importCard.md b/old_docs/API_docs_v25/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v25/methods/contacts_importCard.md +++ b/old_docs/API_docs_v25/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_search.md b/old_docs/API_docs_v25/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v25/methods/contacts_search.md +++ b/old_docs/API_docs_v25/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_unblock.md b/old_docs/API_docs_v25/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v25/methods/contacts_unblock.md +++ b/old_docs/API_docs_v25/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/initConnection.md b/old_docs/API_docs_v25/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v25/methods/initConnection.md +++ b/old_docs/API_docs_v25/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/invokeWithLayer.md b/old_docs/API_docs_v25/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v25/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v25/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_addChatUser.md b/old_docs/API_docs_v25/methods/messages_addChatUser.md index dfd042ed..134599e5 100644 --- a/old_docs/API_docs_v25/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v25/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_createChat.md b/old_docs/API_docs_v25/methods/messages_createChat.md index b673e29f..e43d8017 100644 --- a/old_docs/API_docs_v25/methods/messages_createChat.md +++ b/old_docs/API_docs_v25/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md index 83eae12f..d3a735fb 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_deleteHistory.md b/old_docs/API_docs_v25/methods/messages_deleteHistory.md index b7a9417d..78045107 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v25/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_deleteMessages.md b/old_docs/API_docs_v25/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v25/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_editChatPhoto.md b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md index dad01c69..9b1254a2 100644 --- a/old_docs/API_docs_v25/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_editChatTitle.md b/old_docs/API_docs_v25/methods/messages_editChatTitle.md index adf61faa..2602a3ae 100644 --- a/old_docs/API_docs_v25/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v25/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessage.md b/old_docs/API_docs_v25/methods/messages_forwardMessage.md index 21015bd7..79af822d 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessages.md b/old_docs/API_docs_v25/methods/messages_forwardMessages.md index 4da76def..6544bb0f 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessages.md @@ -19,31 +19,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_getChats.md b/old_docs/API_docs_v25/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v25/methods/messages_getChats.md +++ b/old_docs/API_docs_v25/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_getDhConfig.md b/old_docs/API_docs_v25/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v25/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v25/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_getDialogs.md b/old_docs/API_docs_v25/methods/messages_getDialogs.md index c836dab0..7b6c9d9b 100644 --- a/old_docs/API_docs_v25/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v25/methods/messages_getDialogs.md @@ -20,15 +20,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_getHistory.md b/old_docs/API_docs_v25/methods/messages_getHistory.md index 57bef2e4..9f94fc45 100644 --- a/old_docs/API_docs_v25/methods/messages_getHistory.md +++ b/old_docs/API_docs_v25/methods/messages_getHistory.md @@ -21,18 +21,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_readHistory.md b/old_docs/API_docs_v25/methods/messages_readHistory.md index d392dbce..d7e89a94 100644 --- a/old_docs/API_docs_v25/methods/messages_readHistory.md +++ b/old_docs/API_docs_v25/methods/messages_readHistory.md @@ -20,13 +20,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_receivedQueue.md b/old_docs/API_docs_v25/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v25/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v25/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_search.md b/old_docs/API_docs_v25/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v25/methods/messages_search.md +++ b/old_docs/API_docs_v25/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_sendMedia.md b/old_docs/API_docs_v25/methods/messages_sendMedia.md index 75748ba7..3e239cfd 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v25/methods/messages_sendMedia.md @@ -20,27 +20,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_sendMessage.md b/old_docs/API_docs_v25/methods/messages_sendMessage.md index 2d0bfb7b..3b50e48f 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v25/methods/messages_sendMessage.md @@ -20,31 +20,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_setTyping.md b/old_docs/API_docs_v25/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v25/methods/messages_setTyping.md +++ b/old_docs/API_docs_v25/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/photos_getUserPhotos.md b/old_docs/API_docs_v25/methods/photos_getUserPhotos.md index 56c76d8b..2eb70120 100644 --- a/old_docs/API_docs_v25/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v25/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v25/methods/users_getUsers.md b/old_docs/API_docs_v25/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v25/methods/users_getUsers.md +++ b/old_docs/API_docs_v25/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/README.md b/old_docs/API_docs_v27/methods/README.md index 7297b982..3445fa9a 100644 --- a/old_docs/API_docs_v27/methods/README.md +++ b/old_docs/API_docs_v27/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v27/methods/account_changePhone.md b/old_docs/API_docs_v27/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v27/methods/account_changePhone.md +++ b/old_docs/API_docs_v27/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_checkUsername.md b/old_docs/API_docs_v27/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v27/methods/account_checkUsername.md +++ b/old_docs/API_docs_v27/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_getNotifySettings.md b/old_docs/API_docs_v27/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v27/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_getPasswordSettings.md b/old_docs/API_docs_v27/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v27/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_getPrivacy.md b/old_docs/API_docs_v27/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v27/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v27/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_registerDevice.md b/old_docs/API_docs_v27/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v27/methods/account_registerDevice.md +++ b/old_docs/API_docs_v27/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_resetAuthorization.md b/old_docs/API_docs_v27/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v27/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v27/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md index 650dba72..b31df77c 100644 --- a/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md @@ -18,13 +18,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_setAccountTTL.md b/old_docs/API_docs_v27/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v27/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v27/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_setPrivacy.md b/old_docs/API_docs_v27/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v27/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v27/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_unregisterDevice.md b/old_docs/API_docs_v27/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v27/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v27/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_updateNotifySettings.md b/old_docs/API_docs_v27/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v27/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_updateProfile.md b/old_docs/API_docs_v27/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v27/methods/account_updateProfile.md +++ b/old_docs/API_docs_v27/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/account_updateUsername.md b/old_docs/API_docs_v27/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v27/methods/account_updateUsername.md +++ b/old_docs/API_docs_v27/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_checkPassword.md b/old_docs/API_docs_v27/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v27/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v27/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_checkPhone.md b/old_docs/API_docs_v27/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v27/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v27/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_exportAuthorization.md b/old_docs/API_docs_v27/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v27/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v27/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_importAuthorization.md b/old_docs/API_docs_v27/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v27/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v27/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_recoverPassword.md b/old_docs/API_docs_v27/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v27/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v27/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_sendInvites.md b/old_docs/API_docs_v27/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v27/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v27/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_block.md b/old_docs/API_docs_v27/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v27/methods/contacts_block.md +++ b/old_docs/API_docs_v27/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_deleteContact.md b/old_docs/API_docs_v27/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v27/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v27/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_deleteContacts.md b/old_docs/API_docs_v27/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v27/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v27/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_importCard.md b/old_docs/API_docs_v27/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v27/methods/contacts_importCard.md +++ b/old_docs/API_docs_v27/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_search.md b/old_docs/API_docs_v27/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v27/methods/contacts_search.md +++ b/old_docs/API_docs_v27/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_unblock.md b/old_docs/API_docs_v27/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v27/methods/contacts_unblock.md +++ b/old_docs/API_docs_v27/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/initConnection.md b/old_docs/API_docs_v27/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v27/methods/initConnection.md +++ b/old_docs/API_docs_v27/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/invokeWithLayer.md b/old_docs/API_docs_v27/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v27/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v27/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_addChatUser.md b/old_docs/API_docs_v27/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v27/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v27/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_createChat.md b/old_docs/API_docs_v27/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v27/methods/messages_createChat.md +++ b/old_docs/API_docs_v27/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_deleteHistory.md b/old_docs/API_docs_v27/methods/messages_deleteHistory.md index b7a9417d..78045107 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v27/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_deleteMessages.md b/old_docs/API_docs_v27/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v27/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_editChatPhoto.md b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v27/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_editChatTitle.md b/old_docs/API_docs_v27/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v27/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v27/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessage.md b/old_docs/API_docs_v27/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessages.md b/old_docs/API_docs_v27/methods/messages_forwardMessages.md index 991e287c..484321e0 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessages.md @@ -19,31 +19,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_getChats.md b/old_docs/API_docs_v27/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v27/methods/messages_getChats.md +++ b/old_docs/API_docs_v27/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_getDhConfig.md b/old_docs/API_docs_v27/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v27/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v27/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_getDialogs.md b/old_docs/API_docs_v27/methods/messages_getDialogs.md index c836dab0..7b6c9d9b 100644 --- a/old_docs/API_docs_v27/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v27/methods/messages_getDialogs.md @@ -20,15 +20,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_getHistory.md b/old_docs/API_docs_v27/methods/messages_getHistory.md index 57bef2e4..9f94fc45 100644 --- a/old_docs/API_docs_v27/methods/messages_getHistory.md +++ b/old_docs/API_docs_v27/methods/messages_getHistory.md @@ -21,18 +21,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_readHistory.md b/old_docs/API_docs_v27/methods/messages_readHistory.md index d392dbce..d7e89a94 100644 --- a/old_docs/API_docs_v27/methods/messages_readHistory.md +++ b/old_docs/API_docs_v27/methods/messages_readHistory.md @@ -20,13 +20,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_receivedQueue.md b/old_docs/API_docs_v27/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v27/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v27/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_search.md b/old_docs/API_docs_v27/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v27/methods/messages_search.md +++ b/old_docs/API_docs_v27/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_sendMedia.md b/old_docs/API_docs_v27/methods/messages_sendMedia.md index b8deffa4..52cb2255 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v27/methods/messages_sendMedia.md @@ -20,27 +20,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_sendMessage.md b/old_docs/API_docs_v27/methods/messages_sendMessage.md index ee7648e6..18e77def 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v27/methods/messages_sendMessage.md @@ -20,31 +20,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_setTyping.md b/old_docs/API_docs_v27/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v27/methods/messages_setTyping.md +++ b/old_docs/API_docs_v27/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/photos_getUserPhotos.md b/old_docs/API_docs_v27/methods/photos_getUserPhotos.md index 56c76d8b..2eb70120 100644 --- a/old_docs/API_docs_v27/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v27/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v27/methods/users_getUsers.md b/old_docs/API_docs_v27/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v27/methods/users_getUsers.md +++ b/old_docs/API_docs_v27/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/README.md b/old_docs/API_docs_v33/methods/README.md index 77150c1b..8cc42801 100644 --- a/old_docs/API_docs_v33/methods/README.md +++ b/old_docs/API_docs_v33/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v33/methods/account_changePhone.md b/old_docs/API_docs_v33/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v33/methods/account_changePhone.md +++ b/old_docs/API_docs_v33/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_checkUsername.md b/old_docs/API_docs_v33/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v33/methods/account_checkUsername.md +++ b/old_docs/API_docs_v33/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_getNotifySettings.md b/old_docs/API_docs_v33/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v33/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_getPasswordSettings.md b/old_docs/API_docs_v33/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v33/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_getPrivacy.md b/old_docs/API_docs_v33/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v33/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v33/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_registerDevice.md b/old_docs/API_docs_v33/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v33/methods/account_registerDevice.md +++ b/old_docs/API_docs_v33/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_resetAuthorization.md b/old_docs/API_docs_v33/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v33/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v33/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md index 650dba72..b31df77c 100644 --- a/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md @@ -18,13 +18,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_setAccountTTL.md b/old_docs/API_docs_v33/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v33/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v33/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_setPrivacy.md b/old_docs/API_docs_v33/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v33/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v33/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_unregisterDevice.md b/old_docs/API_docs_v33/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v33/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v33/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_updateNotifySettings.md b/old_docs/API_docs_v33/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v33/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_updateProfile.md b/old_docs/API_docs_v33/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v33/methods/account_updateProfile.md +++ b/old_docs/API_docs_v33/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/account_updateUsername.md b/old_docs/API_docs_v33/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v33/methods/account_updateUsername.md +++ b/old_docs/API_docs_v33/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_checkPassword.md b/old_docs/API_docs_v33/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v33/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v33/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_checkPhone.md b/old_docs/API_docs_v33/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v33/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v33/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_exportAuthorization.md b/old_docs/API_docs_v33/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v33/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_importAuthorization.md b/old_docs/API_docs_v33/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v33/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_recoverPassword.md b/old_docs/API_docs_v33/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v33/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v33/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_sendInvites.md b/old_docs/API_docs_v33/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v33/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v33/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_block.md b/old_docs/API_docs_v33/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v33/methods/contacts_block.md +++ b/old_docs/API_docs_v33/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_deleteContact.md b/old_docs/API_docs_v33/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v33/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v33/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_deleteContacts.md b/old_docs/API_docs_v33/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v33/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v33/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_importCard.md b/old_docs/API_docs_v33/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v33/methods/contacts_importCard.md +++ b/old_docs/API_docs_v33/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_search.md b/old_docs/API_docs_v33/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v33/methods/contacts_search.md +++ b/old_docs/API_docs_v33/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_unblock.md b/old_docs/API_docs_v33/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v33/methods/contacts_unblock.md +++ b/old_docs/API_docs_v33/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/initConnection.md b/old_docs/API_docs_v33/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v33/methods/initConnection.md +++ b/old_docs/API_docs_v33/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/invokeWithLayer.md b/old_docs/API_docs_v33/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v33/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v33/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_addChatUser.md b/old_docs/API_docs_v33/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v33/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v33/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_createChat.md b/old_docs/API_docs_v33/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v33/methods/messages_createChat.md +++ b/old_docs/API_docs_v33/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_deleteHistory.md b/old_docs/API_docs_v33/methods/messages_deleteHistory.md index b7a9417d..78045107 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v33/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_deleteMessages.md b/old_docs/API_docs_v33/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v33/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_editChatPhoto.md b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v33/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_editChatTitle.md b/old_docs/API_docs_v33/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v33/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v33/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessage.md b/old_docs/API_docs_v33/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessages.md b/old_docs/API_docs_v33/methods/messages_forwardMessages.md index 991e287c..484321e0 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessages.md @@ -19,31 +19,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_getChats.md b/old_docs/API_docs_v33/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v33/methods/messages_getChats.md +++ b/old_docs/API_docs_v33/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_getDhConfig.md b/old_docs/API_docs_v33/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v33/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v33/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_getDialogs.md b/old_docs/API_docs_v33/methods/messages_getDialogs.md index c836dab0..7b6c9d9b 100644 --- a/old_docs/API_docs_v33/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v33/methods/messages_getDialogs.md @@ -20,15 +20,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_getHistory.md b/old_docs/API_docs_v33/methods/messages_getHistory.md index 57bef2e4..9f94fc45 100644 --- a/old_docs/API_docs_v33/methods/messages_getHistory.md +++ b/old_docs/API_docs_v33/methods/messages_getHistory.md @@ -21,18 +21,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_getStickerSet.md b/old_docs/API_docs_v33/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v33/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_importChatInvite.md b/old_docs/API_docs_v33/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v33/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_installStickerSet.md b/old_docs/API_docs_v33/methods/messages_installStickerSet.md index 1969d008..0b505397 100644 --- a/old_docs/API_docs_v33/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_readHistory.md b/old_docs/API_docs_v33/methods/messages_readHistory.md index d392dbce..d7e89a94 100644 --- a/old_docs/API_docs_v33/methods/messages_readHistory.md +++ b/old_docs/API_docs_v33/methods/messages_readHistory.md @@ -20,13 +20,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_receivedQueue.md b/old_docs/API_docs_v33/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v33/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v33/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_search.md b/old_docs/API_docs_v33/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v33/methods/messages_search.md +++ b/old_docs/API_docs_v33/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_sendMedia.md b/old_docs/API_docs_v33/methods/messages_sendMedia.md index 3bbe8269..64ac8840 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v33/methods/messages_sendMedia.md @@ -21,27 +21,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_sendMessage.md b/old_docs/API_docs_v33/methods/messages_sendMessage.md index b4824866..0747a7ee 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v33/methods/messages_sendMessage.md @@ -21,31 +21,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_setTyping.md b/old_docs/API_docs_v33/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v33/methods/messages_setTyping.md +++ b/old_docs/API_docs_v33/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_startBot.md b/old_docs/API_docs_v33/methods/messages_startBot.md index 225e997e..dc989df1 100644 --- a/old_docs/API_docs_v33/methods/messages_startBot.md +++ b/old_docs/API_docs_v33/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/photos_getUserPhotos.md b/old_docs/API_docs_v33/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v33/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v33/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v33/methods/users_getUsers.md b/old_docs/API_docs_v33/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v33/methods/users_getUsers.md +++ b/old_docs/API_docs_v33/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/README.md b/old_docs/API_docs_v38/methods/README.md index 489e8980..e81a837e 100644 --- a/old_docs/API_docs_v38/methods/README.md +++ b/old_docs/API_docs_v38/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v38/methods/account_changePhone.md b/old_docs/API_docs_v38/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v38/methods/account_changePhone.md +++ b/old_docs/API_docs_v38/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_checkUsername.md b/old_docs/API_docs_v38/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v38/methods/account_checkUsername.md +++ b/old_docs/API_docs_v38/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_getNotifySettings.md b/old_docs/API_docs_v38/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v38/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_getPasswordSettings.md b/old_docs/API_docs_v38/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v38/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_getPrivacy.md b/old_docs/API_docs_v38/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v38/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v38/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_registerDevice.md b/old_docs/API_docs_v38/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v38/methods/account_registerDevice.md +++ b/old_docs/API_docs_v38/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_resetAuthorization.md b/old_docs/API_docs_v38/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v38/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v38/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md index 650dba72..b31df77c 100644 --- a/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md @@ -18,13 +18,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_setAccountTTL.md b/old_docs/API_docs_v38/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v38/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v38/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_setPrivacy.md b/old_docs/API_docs_v38/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v38/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v38/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_unregisterDevice.md b/old_docs/API_docs_v38/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v38/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v38/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_updateNotifySettings.md b/old_docs/API_docs_v38/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v38/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_updateProfile.md b/old_docs/API_docs_v38/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v38/methods/account_updateProfile.md +++ b/old_docs/API_docs_v38/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/account_updateUsername.md b/old_docs/API_docs_v38/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v38/methods/account_updateUsername.md +++ b/old_docs/API_docs_v38/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_checkPassword.md b/old_docs/API_docs_v38/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v38/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v38/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_checkPhone.md b/old_docs/API_docs_v38/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v38/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v38/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_exportAuthorization.md b/old_docs/API_docs_v38/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v38/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_importAuthorization.md b/old_docs/API_docs_v38/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v38/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_recoverPassword.md b/old_docs/API_docs_v38/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v38/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v38/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_sendInvites.md b/old_docs/API_docs_v38/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v38/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v38/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_checkUsername.md b/old_docs/API_docs_v38/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v38/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v38/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_createChannel.md b/old_docs/API_docs_v38/methods/channels_createChannel.md index 728d7e8a..2ae639be 100644 --- a/old_docs/API_docs_v38/methods/channels_createChannel.md +++ b/old_docs/API_docs_v38/methods/channels_createChannel.md @@ -20,14 +20,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_deleteChannel.md b/old_docs/API_docs_v38/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v38/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_deleteMessages.md b/old_docs/API_docs_v38/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v38/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_editAbout.md b/old_docs/API_docs_v38/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v38/methods/channels_editAbout.md +++ b/old_docs/API_docs_v38/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_editAdmin.md b/old_docs/API_docs_v38/methods/channels_editAdmin.md index af760d45..4a692986 100644 --- a/old_docs/API_docs_v38/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v38/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_editPhoto.md b/old_docs/API_docs_v38/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v38/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v38/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_editTitle.md b/old_docs/API_docs_v38/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v38/methods/channels_editTitle.md +++ b/old_docs/API_docs_v38/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_exportInvite.md b/old_docs/API_docs_v38/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v38/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v38/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_getChannels.md b/old_docs/API_docs_v38/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v38/methods/channels_getChannels.md +++ b/old_docs/API_docs_v38/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_getMessages.md b/old_docs/API_docs_v38/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v38/methods/channels_getMessages.md +++ b/old_docs/API_docs_v38/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_getParticipant.md b/old_docs/API_docs_v38/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v38/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v38/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_joinChannel.md b/old_docs/API_docs_v38/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v38/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v38/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_leaveChannel.md b/old_docs/API_docs_v38/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v38/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v38/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_readHistory.md b/old_docs/API_docs_v38/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v38/methods/channels_readHistory.md +++ b/old_docs/API_docs_v38/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_reportSpam.md b/old_docs/API_docs_v38/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v38/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v38/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_updateUsername.md b/old_docs/API_docs_v38/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v38/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v38/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_block.md b/old_docs/API_docs_v38/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v38/methods/contacts_block.md +++ b/old_docs/API_docs_v38/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_deleteContact.md b/old_docs/API_docs_v38/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v38/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v38/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_deleteContacts.md b/old_docs/API_docs_v38/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v38/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v38/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_importCard.md b/old_docs/API_docs_v38/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v38/methods/contacts_importCard.md +++ b/old_docs/API_docs_v38/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_search.md b/old_docs/API_docs_v38/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v38/methods/contacts_search.md +++ b/old_docs/API_docs_v38/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_unblock.md b/old_docs/API_docs_v38/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v38/methods/contacts_unblock.md +++ b/old_docs/API_docs_v38/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/initConnection.md b/old_docs/API_docs_v38/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v38/methods/initConnection.md +++ b/old_docs/API_docs_v38/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/invokeWithLayer.md b/old_docs/API_docs_v38/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v38/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v38/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_addChatUser.md b/old_docs/API_docs_v38/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v38/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v38/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_createChat.md b/old_docs/API_docs_v38/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v38/methods/messages_createChat.md +++ b/old_docs/API_docs_v38/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_deleteHistory.md b/old_docs/API_docs_v38/methods/messages_deleteHistory.md index b7a9417d..78045107 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v38/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_deleteMessages.md b/old_docs/API_docs_v38/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v38/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_editChatPhoto.md b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v38/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_editChatTitle.md b/old_docs/API_docs_v38/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v38/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v38/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessage.md b/old_docs/API_docs_v38/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessages.md b/old_docs/API_docs_v38/methods/messages_forwardMessages.md index 9e11883f..5c6eb1f4 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessages.md @@ -20,31 +20,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getChats.md b/old_docs/API_docs_v38/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v38/methods/messages_getChats.md +++ b/old_docs/API_docs_v38/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getDhConfig.md b/old_docs/API_docs_v38/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v38/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v38/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getDialogs.md b/old_docs/API_docs_v38/methods/messages_getDialogs.md index 24dab686..0ac95296 100644 --- a/old_docs/API_docs_v38/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v38/methods/messages_getDialogs.md @@ -19,15 +19,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getHistory.md b/old_docs/API_docs_v38/methods/messages_getHistory.md index 8bccb8e3..62f2e26f 100644 --- a/old_docs/API_docs_v38/methods/messages_getHistory.md +++ b/old_docs/API_docs_v38/methods/messages_getHistory.md @@ -23,18 +23,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getStickerSet.md b/old_docs/API_docs_v38/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v38/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_importChatInvite.md b/old_docs/API_docs_v38/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v38/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_installStickerSet.md b/old_docs/API_docs_v38/methods/messages_installStickerSet.md index 1969d008..0b505397 100644 --- a/old_docs/API_docs_v38/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_readHistory.md b/old_docs/API_docs_v38/methods/messages_readHistory.md index d392dbce..d7e89a94 100644 --- a/old_docs/API_docs_v38/methods/messages_readHistory.md +++ b/old_docs/API_docs_v38/methods/messages_readHistory.md @@ -20,13 +20,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_receivedQueue.md b/old_docs/API_docs_v38/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v38/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v38/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_reportSpam.md b/old_docs/API_docs_v38/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v38/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v38/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_search.md b/old_docs/API_docs_v38/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v38/methods/messages_search.md +++ b/old_docs/API_docs_v38/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_sendMedia.md b/old_docs/API_docs_v38/methods/messages_sendMedia.md index 3bbe8269..64ac8840 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v38/methods/messages_sendMedia.md @@ -21,27 +21,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_sendMessage.md b/old_docs/API_docs_v38/methods/messages_sendMessage.md index 26f40422..dd8c13a9 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v38/methods/messages_sendMessage.md @@ -23,31 +23,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_setTyping.md b/old_docs/API_docs_v38/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v38/methods/messages_setTyping.md +++ b/old_docs/API_docs_v38/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_startBot.md b/old_docs/API_docs_v38/methods/messages_startBot.md index 225e997e..dc989df1 100644 --- a/old_docs/API_docs_v38/methods/messages_startBot.md +++ b/old_docs/API_docs_v38/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/photos_getUserPhotos.md b/old_docs/API_docs_v38/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v38/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v38/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v38/methods/users_getUsers.md b/old_docs/API_docs_v38/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v38/methods/users_getUsers.md +++ b/old_docs/API_docs_v38/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/README.md b/old_docs/API_docs_v40/methods/README.md index a27f36ed..ab93765d 100644 --- a/old_docs/API_docs_v40/methods/README.md +++ b/old_docs/API_docs_v40/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v40/methods/account_changePhone.md b/old_docs/API_docs_v40/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v40/methods/account_changePhone.md +++ b/old_docs/API_docs_v40/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_checkUsername.md b/old_docs/API_docs_v40/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v40/methods/account_checkUsername.md +++ b/old_docs/API_docs_v40/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_getNotifySettings.md b/old_docs/API_docs_v40/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v40/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_getPasswordSettings.md b/old_docs/API_docs_v40/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v40/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_getPrivacy.md b/old_docs/API_docs_v40/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v40/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v40/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_registerDevice.md b/old_docs/API_docs_v40/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v40/methods/account_registerDevice.md +++ b/old_docs/API_docs_v40/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_resetAuthorization.md b/old_docs/API_docs_v40/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v40/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v40/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md index 650dba72..b31df77c 100644 --- a/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md @@ -18,13 +18,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_setAccountTTL.md b/old_docs/API_docs_v40/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v40/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v40/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_setPrivacy.md b/old_docs/API_docs_v40/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v40/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v40/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_unregisterDevice.md b/old_docs/API_docs_v40/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v40/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v40/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_updateNotifySettings.md b/old_docs/API_docs_v40/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v40/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_updateProfile.md b/old_docs/API_docs_v40/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v40/methods/account_updateProfile.md +++ b/old_docs/API_docs_v40/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/account_updateUsername.md b/old_docs/API_docs_v40/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v40/methods/account_updateUsername.md +++ b/old_docs/API_docs_v40/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_checkPassword.md b/old_docs/API_docs_v40/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v40/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v40/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_checkPhone.md b/old_docs/API_docs_v40/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v40/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v40/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_exportAuthorization.md b/old_docs/API_docs_v40/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v40/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_importAuthorization.md b/old_docs/API_docs_v40/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v40/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_recoverPassword.md b/old_docs/API_docs_v40/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v40/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v40/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_sendInvites.md b/old_docs/API_docs_v40/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v40/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v40/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_block.md b/old_docs/API_docs_v40/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v40/methods/contacts_block.md +++ b/old_docs/API_docs_v40/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_deleteContact.md b/old_docs/API_docs_v40/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v40/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v40/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_deleteContacts.md b/old_docs/API_docs_v40/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v40/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v40/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_importCard.md b/old_docs/API_docs_v40/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v40/methods/contacts_importCard.md +++ b/old_docs/API_docs_v40/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_search.md b/old_docs/API_docs_v40/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v40/methods/contacts_search.md +++ b/old_docs/API_docs_v40/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_unblock.md b/old_docs/API_docs_v40/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v40/methods/contacts_unblock.md +++ b/old_docs/API_docs_v40/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/initConnection.md b/old_docs/API_docs_v40/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v40/methods/initConnection.md +++ b/old_docs/API_docs_v40/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/invokeWithLayer.md b/old_docs/API_docs_v40/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v40/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v40/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_addChatUser.md b/old_docs/API_docs_v40/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v40/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v40/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_createChat.md b/old_docs/API_docs_v40/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v40/methods/messages_createChat.md +++ b/old_docs/API_docs_v40/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_deleteHistory.md b/old_docs/API_docs_v40/methods/messages_deleteHistory.md index b7a9417d..78045107 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v40/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_deleteMessages.md b/old_docs/API_docs_v40/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v40/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_editChatPhoto.md b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v40/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_editChatTitle.md b/old_docs/API_docs_v40/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v40/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v40/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessage.md b/old_docs/API_docs_v40/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessages.md b/old_docs/API_docs_v40/methods/messages_forwardMessages.md index 991e287c..484321e0 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessages.md @@ -19,31 +19,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_getChats.md b/old_docs/API_docs_v40/methods/messages_getChats.md index d3e82fa4..65e040f0 100644 --- a/old_docs/API_docs_v40/methods/messages_getChats.md +++ b/old_docs/API_docs_v40/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_getDhConfig.md b/old_docs/API_docs_v40/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v40/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v40/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_getDialogs.md b/old_docs/API_docs_v40/methods/messages_getDialogs.md index 24dab686..0ac95296 100644 --- a/old_docs/API_docs_v40/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v40/methods/messages_getDialogs.md @@ -19,15 +19,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_getHistory.md b/old_docs/API_docs_v40/methods/messages_getHistory.md index 38eb2b15..b2253e66 100644 --- a/old_docs/API_docs_v40/methods/messages_getHistory.md +++ b/old_docs/API_docs_v40/methods/messages_getHistory.md @@ -22,18 +22,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_getStickerSet.md b/old_docs/API_docs_v40/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v40/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_importChatInvite.md b/old_docs/API_docs_v40/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v40/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_installStickerSet.md b/old_docs/API_docs_v40/methods/messages_installStickerSet.md index 1969d008..0b505397 100644 --- a/old_docs/API_docs_v40/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_readHistory.md b/old_docs/API_docs_v40/methods/messages_readHistory.md index d392dbce..d7e89a94 100644 --- a/old_docs/API_docs_v40/methods/messages_readHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readHistory.md @@ -20,13 +20,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_receivedQueue.md b/old_docs/API_docs_v40/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v40/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v40/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_search.md b/old_docs/API_docs_v40/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v40/methods/messages_search.md +++ b/old_docs/API_docs_v40/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_sendMedia.md b/old_docs/API_docs_v40/methods/messages_sendMedia.md index 3bbe8269..64ac8840 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v40/methods/messages_sendMedia.md @@ -21,27 +21,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_sendMessage.md b/old_docs/API_docs_v40/methods/messages_sendMessage.md index 26f40422..dd8c13a9 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v40/methods/messages_sendMessage.md @@ -23,31 +23,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_setTyping.md b/old_docs/API_docs_v40/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v40/methods/messages_setTyping.md +++ b/old_docs/API_docs_v40/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_startBot.md b/old_docs/API_docs_v40/methods/messages_startBot.md index 225e997e..dc989df1 100644 --- a/old_docs/API_docs_v40/methods/messages_startBot.md +++ b/old_docs/API_docs_v40/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/photos_getUserPhotos.md b/old_docs/API_docs_v40/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v40/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v40/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v40/methods/users_getUsers.md b/old_docs/API_docs_v40/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v40/methods/users_getUsers.md +++ b/old_docs/API_docs_v40/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/README.md b/old_docs/API_docs_v41/methods/README.md index 62a293ad..0ede4334 100644 --- a/old_docs/API_docs_v41/methods/README.md +++ b/old_docs/API_docs_v41/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v41/methods/account_changePhone.md b/old_docs/API_docs_v41/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v41/methods/account_changePhone.md +++ b/old_docs/API_docs_v41/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_checkUsername.md b/old_docs/API_docs_v41/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v41/methods/account_checkUsername.md +++ b/old_docs/API_docs_v41/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_getNotifySettings.md b/old_docs/API_docs_v41/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v41/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_getPasswordSettings.md b/old_docs/API_docs_v41/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v41/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_getPrivacy.md b/old_docs/API_docs_v41/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v41/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v41/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_registerDevice.md b/old_docs/API_docs_v41/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v41/methods/account_registerDevice.md +++ b/old_docs/API_docs_v41/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_resetAuthorization.md b/old_docs/API_docs_v41/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v41/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v41/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md index 650dba72..b31df77c 100644 --- a/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md @@ -18,13 +18,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_setAccountTTL.md b/old_docs/API_docs_v41/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v41/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v41/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_setPrivacy.md b/old_docs/API_docs_v41/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v41/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v41/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_unregisterDevice.md b/old_docs/API_docs_v41/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v41/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v41/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_updateNotifySettings.md b/old_docs/API_docs_v41/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v41/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_updateProfile.md b/old_docs/API_docs_v41/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v41/methods/account_updateProfile.md +++ b/old_docs/API_docs_v41/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/account_updateUsername.md b/old_docs/API_docs_v41/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v41/methods/account_updateUsername.md +++ b/old_docs/API_docs_v41/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_checkPassword.md b/old_docs/API_docs_v41/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v41/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v41/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_checkPhone.md b/old_docs/API_docs_v41/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v41/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v41/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_exportAuthorization.md b/old_docs/API_docs_v41/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v41/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_importAuthorization.md b/old_docs/API_docs_v41/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v41/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_recoverPassword.md b/old_docs/API_docs_v41/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v41/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v41/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_sendInvites.md b/old_docs/API_docs_v41/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v41/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v41/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_checkUsername.md b/old_docs/API_docs_v41/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v41/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v41/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_createChannel.md b/old_docs/API_docs_v41/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v41/methods/channels_createChannel.md +++ b/old_docs/API_docs_v41/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_deleteChannel.md b/old_docs/API_docs_v41/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v41/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_deleteMessages.md b/old_docs/API_docs_v41/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v41/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_editAbout.md b/old_docs/API_docs_v41/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v41/methods/channels_editAbout.md +++ b/old_docs/API_docs_v41/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_editAdmin.md b/old_docs/API_docs_v41/methods/channels_editAdmin.md index af760d45..4a692986 100644 --- a/old_docs/API_docs_v41/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v41/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_editPhoto.md b/old_docs/API_docs_v41/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v41/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v41/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_editTitle.md b/old_docs/API_docs_v41/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v41/methods/channels_editTitle.md +++ b/old_docs/API_docs_v41/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_exportInvite.md b/old_docs/API_docs_v41/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v41/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v41/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_getChannels.md b/old_docs/API_docs_v41/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v41/methods/channels_getChannels.md +++ b/old_docs/API_docs_v41/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_getMessages.md b/old_docs/API_docs_v41/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v41/methods/channels_getMessages.md +++ b/old_docs/API_docs_v41/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_getParticipant.md b/old_docs/API_docs_v41/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v41/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v41/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_joinChannel.md b/old_docs/API_docs_v41/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v41/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v41/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_leaveChannel.md b/old_docs/API_docs_v41/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v41/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v41/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_readHistory.md b/old_docs/API_docs_v41/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v41/methods/channels_readHistory.md +++ b/old_docs/API_docs_v41/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_reportSpam.md b/old_docs/API_docs_v41/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v41/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v41/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_updateUsername.md b/old_docs/API_docs_v41/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v41/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v41/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_block.md b/old_docs/API_docs_v41/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v41/methods/contacts_block.md +++ b/old_docs/API_docs_v41/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_deleteContact.md b/old_docs/API_docs_v41/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v41/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v41/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_deleteContacts.md b/old_docs/API_docs_v41/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v41/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v41/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_importCard.md b/old_docs/API_docs_v41/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v41/methods/contacts_importCard.md +++ b/old_docs/API_docs_v41/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_search.md b/old_docs/API_docs_v41/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v41/methods/contacts_search.md +++ b/old_docs/API_docs_v41/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_unblock.md b/old_docs/API_docs_v41/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v41/methods/contacts_unblock.md +++ b/old_docs/API_docs_v41/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/initConnection.md b/old_docs/API_docs_v41/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v41/methods/initConnection.md +++ b/old_docs/API_docs_v41/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/invokeWithLayer.md b/old_docs/API_docs_v41/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v41/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v41/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_addChatUser.md b/old_docs/API_docs_v41/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v41/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v41/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_createChat.md b/old_docs/API_docs_v41/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v41/methods/messages_createChat.md +++ b/old_docs/API_docs_v41/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_deleteHistory.md b/old_docs/API_docs_v41/methods/messages_deleteHistory.md index c8081e79..5508a7d8 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v41/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_deleteMessages.md b/old_docs/API_docs_v41/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v41/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_editChatAdmin.md b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_editChatTitle.md b/old_docs/API_docs_v41/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v41/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessage.md b/old_docs/API_docs_v41/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessages.md b/old_docs/API_docs_v41/methods/messages_forwardMessages.md index 8c5b4cf1..555b7124 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessages.md @@ -21,31 +21,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getChats.md b/old_docs/API_docs_v41/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v41/methods/messages_getChats.md +++ b/old_docs/API_docs_v41/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getDhConfig.md b/old_docs/API_docs_v41/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v41/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v41/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getDialogs.md b/old_docs/API_docs_v41/methods/messages_getDialogs.md index 24dab686..0ac95296 100644 --- a/old_docs/API_docs_v41/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v41/methods/messages_getDialogs.md @@ -19,15 +19,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getHistory.md b/old_docs/API_docs_v41/methods/messages_getHistory.md index 8bccb8e3..62f2e26f 100644 --- a/old_docs/API_docs_v41/methods/messages_getHistory.md +++ b/old_docs/API_docs_v41/methods/messages_getHistory.md @@ -23,18 +23,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getStickerSet.md b/old_docs/API_docs_v41/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v41/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_importChatInvite.md b/old_docs/API_docs_v41/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v41/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_installStickerSet.md b/old_docs/API_docs_v41/methods/messages_installStickerSet.md index 1969d008..0b505397 100644 --- a/old_docs/API_docs_v41/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_migrateChat.md b/old_docs/API_docs_v41/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v41/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v41/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_readHistory.md b/old_docs/API_docs_v41/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v41/methods/messages_readHistory.md +++ b/old_docs/API_docs_v41/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_receivedQueue.md b/old_docs/API_docs_v41/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v41/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v41/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_reportSpam.md b/old_docs/API_docs_v41/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v41/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v41/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_search.md b/old_docs/API_docs_v41/methods/messages_search.md index 2c95b69b..db0a07fd 100644 --- a/old_docs/API_docs_v41/methods/messages_search.md +++ b/old_docs/API_docs_v41/methods/messages_search.md @@ -26,17 +26,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_searchGlobal.md b/old_docs/API_docs_v41/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v41/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v41/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_sendMedia.md b/old_docs/API_docs_v41/methods/messages_sendMedia.md index 6f11a7a2..c8b36ab8 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v41/methods/messages_sendMedia.md @@ -22,27 +22,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_sendMessage.md b/old_docs/API_docs_v41/methods/messages_sendMessage.md index 3297166b..ef590c9d 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v41/methods/messages_sendMessage.md @@ -25,31 +25,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_setTyping.md b/old_docs/API_docs_v41/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v41/methods/messages_setTyping.md +++ b/old_docs/API_docs_v41/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_startBot.md b/old_docs/API_docs_v41/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v41/methods/messages_startBot.md +++ b/old_docs/API_docs_v41/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/photos_getUserPhotos.md b/old_docs/API_docs_v41/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v41/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v41/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v41/methods/users_getUsers.md b/old_docs/API_docs_v41/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v41/methods/users_getUsers.md +++ b/old_docs/API_docs_v41/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/README.md b/old_docs/API_docs_v42/methods/README.md index dc6f7e6b..6b3e40de 100644 --- a/old_docs/API_docs_v42/methods/README.md +++ b/old_docs/API_docs_v42/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v42/methods/account_changePhone.md b/old_docs/API_docs_v42/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v42/methods/account_changePhone.md +++ b/old_docs/API_docs_v42/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_checkUsername.md b/old_docs/API_docs_v42/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v42/methods/account_checkUsername.md +++ b/old_docs/API_docs_v42/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_getNotifySettings.md b/old_docs/API_docs_v42/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v42/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_getPasswordSettings.md b/old_docs/API_docs_v42/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v42/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_getPrivacy.md b/old_docs/API_docs_v42/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v42/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v42/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_registerDevice.md b/old_docs/API_docs_v42/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v42/methods/account_registerDevice.md +++ b/old_docs/API_docs_v42/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_resetAuthorization.md b/old_docs/API_docs_v42/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v42/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v42/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md index 650dba72..b31df77c 100644 --- a/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md @@ -18,13 +18,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_setAccountTTL.md b/old_docs/API_docs_v42/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v42/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v42/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_setPrivacy.md b/old_docs/API_docs_v42/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v42/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v42/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_unregisterDevice.md b/old_docs/API_docs_v42/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v42/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v42/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_updateNotifySettings.md b/old_docs/API_docs_v42/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v42/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_updateProfile.md b/old_docs/API_docs_v42/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v42/methods/account_updateProfile.md +++ b/old_docs/API_docs_v42/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/account_updateUsername.md b/old_docs/API_docs_v42/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v42/methods/account_updateUsername.md +++ b/old_docs/API_docs_v42/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_checkPassword.md b/old_docs/API_docs_v42/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v42/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v42/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_checkPhone.md b/old_docs/API_docs_v42/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v42/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v42/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_exportAuthorization.md b/old_docs/API_docs_v42/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v42/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_importAuthorization.md b/old_docs/API_docs_v42/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v42/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_recoverPassword.md b/old_docs/API_docs_v42/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v42/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v42/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_sendInvites.md b/old_docs/API_docs_v42/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v42/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v42/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_checkUsername.md b/old_docs/API_docs_v42/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v42/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v42/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_createChannel.md b/old_docs/API_docs_v42/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v42/methods/channels_createChannel.md +++ b/old_docs/API_docs_v42/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_deleteChannel.md b/old_docs/API_docs_v42/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v42/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_deleteMessages.md b/old_docs/API_docs_v42/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v42/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_editAbout.md b/old_docs/API_docs_v42/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v42/methods/channels_editAbout.md +++ b/old_docs/API_docs_v42/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_editAdmin.md b/old_docs/API_docs_v42/methods/channels_editAdmin.md index a0a6eb30..cb821297 100644 --- a/old_docs/API_docs_v42/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v42/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_editPhoto.md b/old_docs/API_docs_v42/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v42/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v42/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_editTitle.md b/old_docs/API_docs_v42/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v42/methods/channels_editTitle.md +++ b/old_docs/API_docs_v42/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_exportInvite.md b/old_docs/API_docs_v42/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v42/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v42/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_getChannels.md b/old_docs/API_docs_v42/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v42/methods/channels_getChannels.md +++ b/old_docs/API_docs_v42/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_getMessages.md b/old_docs/API_docs_v42/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v42/methods/channels_getMessages.md +++ b/old_docs/API_docs_v42/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_getParticipant.md b/old_docs/API_docs_v42/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v42/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v42/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_joinChannel.md b/old_docs/API_docs_v42/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v42/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v42/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_leaveChannel.md b/old_docs/API_docs_v42/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v42/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v42/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_readHistory.md b/old_docs/API_docs_v42/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v42/methods/channels_readHistory.md +++ b/old_docs/API_docs_v42/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_reportSpam.md b/old_docs/API_docs_v42/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v42/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v42/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_updateUsername.md b/old_docs/API_docs_v42/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v42/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v42/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_block.md b/old_docs/API_docs_v42/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v42/methods/contacts_block.md +++ b/old_docs/API_docs_v42/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_deleteContact.md b/old_docs/API_docs_v42/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v42/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v42/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_deleteContacts.md b/old_docs/API_docs_v42/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v42/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v42/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_importCard.md b/old_docs/API_docs_v42/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v42/methods/contacts_importCard.md +++ b/old_docs/API_docs_v42/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_search.md b/old_docs/API_docs_v42/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v42/methods/contacts_search.md +++ b/old_docs/API_docs_v42/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_unblock.md b/old_docs/API_docs_v42/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v42/methods/contacts_unblock.md +++ b/old_docs/API_docs_v42/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/initConnection.md b/old_docs/API_docs_v42/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v42/methods/initConnection.md +++ b/old_docs/API_docs_v42/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/invokeWithLayer.md b/old_docs/API_docs_v42/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v42/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v42/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_addChatUser.md b/old_docs/API_docs_v42/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v42/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v42/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_createChat.md b/old_docs/API_docs_v42/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v42/methods/messages_createChat.md +++ b/old_docs/API_docs_v42/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_deleteHistory.md b/old_docs/API_docs_v42/methods/messages_deleteHistory.md index c8081e79..5508a7d8 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v42/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_deleteMessages.md b/old_docs/API_docs_v42/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v42/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_editChatAdmin.md b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_editChatTitle.md b/old_docs/API_docs_v42/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v42/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessage.md b/old_docs/API_docs_v42/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessages.md b/old_docs/API_docs_v42/methods/messages_forwardMessages.md index 8c5b4cf1..555b7124 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessages.md @@ -21,31 +21,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getChats.md b/old_docs/API_docs_v42/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v42/methods/messages_getChats.md +++ b/old_docs/API_docs_v42/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getDhConfig.md b/old_docs/API_docs_v42/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v42/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v42/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getDialogs.md b/old_docs/API_docs_v42/methods/messages_getDialogs.md index 7d57d188..d59c4955 100644 --- a/old_docs/API_docs_v42/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v42/methods/messages_getDialogs.md @@ -21,15 +21,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getHistory.md b/old_docs/API_docs_v42/methods/messages_getHistory.md index 8bccb8e3..62f2e26f 100644 --- a/old_docs/API_docs_v42/methods/messages_getHistory.md +++ b/old_docs/API_docs_v42/methods/messages_getHistory.md @@ -23,18 +23,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getStickerSet.md b/old_docs/API_docs_v42/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v42/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_importChatInvite.md b/old_docs/API_docs_v42/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v42/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_installStickerSet.md b/old_docs/API_docs_v42/methods/messages_installStickerSet.md index 1969d008..0b505397 100644 --- a/old_docs/API_docs_v42/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_migrateChat.md b/old_docs/API_docs_v42/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v42/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v42/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_readHistory.md b/old_docs/API_docs_v42/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v42/methods/messages_readHistory.md +++ b/old_docs/API_docs_v42/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_receivedQueue.md b/old_docs/API_docs_v42/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v42/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v42/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_reportSpam.md b/old_docs/API_docs_v42/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v42/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v42/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_search.md b/old_docs/API_docs_v42/methods/messages_search.md index 2c95b69b..db0a07fd 100644 --- a/old_docs/API_docs_v42/methods/messages_search.md +++ b/old_docs/API_docs_v42/methods/messages_search.md @@ -26,17 +26,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_searchGlobal.md b/old_docs/API_docs_v42/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v42/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v42/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_sendMedia.md b/old_docs/API_docs_v42/methods/messages_sendMedia.md index 6f11a7a2..c8b36ab8 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v42/methods/messages_sendMedia.md @@ -22,27 +22,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_sendMessage.md b/old_docs/API_docs_v42/methods/messages_sendMessage.md index 3297166b..ef590c9d 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v42/methods/messages_sendMessage.md @@ -25,31 +25,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_setTyping.md b/old_docs/API_docs_v42/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v42/methods/messages_setTyping.md +++ b/old_docs/API_docs_v42/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_startBot.md b/old_docs/API_docs_v42/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v42/methods/messages_startBot.md +++ b/old_docs/API_docs_v42/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/photos_getUserPhotos.md b/old_docs/API_docs_v42/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v42/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v42/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v42/methods/users_getUsers.md b/old_docs/API_docs_v42/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v42/methods/users_getUsers.md +++ b/old_docs/API_docs_v42/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/README.md b/old_docs/API_docs_v44/methods/README.md index b11c1b8b..52d8eba9 100644 --- a/old_docs/API_docs_v44/methods/README.md +++ b/old_docs/API_docs_v44/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v44/methods/account_changePhone.md b/old_docs/API_docs_v44/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v44/methods/account_changePhone.md +++ b/old_docs/API_docs_v44/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_checkUsername.md b/old_docs/API_docs_v44/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v44/methods/account_checkUsername.md +++ b/old_docs/API_docs_v44/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_getNotifySettings.md b/old_docs/API_docs_v44/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v44/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_getPasswordSettings.md b/old_docs/API_docs_v44/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v44/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_getPrivacy.md b/old_docs/API_docs_v44/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v44/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v44/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_registerDevice.md b/old_docs/API_docs_v44/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v44/methods/account_registerDevice.md +++ b/old_docs/API_docs_v44/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_reportPeer.md b/old_docs/API_docs_v44/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v44/methods/account_reportPeer.md +++ b/old_docs/API_docs_v44/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_resetAuthorization.md b/old_docs/API_docs_v44/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v44/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v44/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md index 650dba72..b31df77c 100644 --- a/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md @@ -18,13 +18,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_setAccountTTL.md b/old_docs/API_docs_v44/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v44/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v44/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_setPrivacy.md b/old_docs/API_docs_v44/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v44/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v44/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_unregisterDevice.md b/old_docs/API_docs_v44/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v44/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v44/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_updateNotifySettings.md b/old_docs/API_docs_v44/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v44/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_updateProfile.md b/old_docs/API_docs_v44/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v44/methods/account_updateProfile.md +++ b/old_docs/API_docs_v44/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/account_updateUsername.md b/old_docs/API_docs_v44/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v44/methods/account_updateUsername.md +++ b/old_docs/API_docs_v44/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_checkPassword.md b/old_docs/API_docs_v44/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v44/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v44/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_checkPhone.md b/old_docs/API_docs_v44/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v44/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v44/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_exportAuthorization.md b/old_docs/API_docs_v44/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v44/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_importAuthorization.md b/old_docs/API_docs_v44/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v44/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_recoverPassword.md b/old_docs/API_docs_v44/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v44/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v44/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_sendInvites.md b/old_docs/API_docs_v44/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v44/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v44/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_checkUsername.md b/old_docs/API_docs_v44/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v44/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v44/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_createChannel.md b/old_docs/API_docs_v44/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v44/methods/channels_createChannel.md +++ b/old_docs/API_docs_v44/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_deleteChannel.md b/old_docs/API_docs_v44/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v44/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_deleteMessages.md b/old_docs/API_docs_v44/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v44/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_editAbout.md b/old_docs/API_docs_v44/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v44/methods/channels_editAbout.md +++ b/old_docs/API_docs_v44/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_editAdmin.md b/old_docs/API_docs_v44/methods/channels_editAdmin.md index a0a6eb30..cb821297 100644 --- a/old_docs/API_docs_v44/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v44/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_editPhoto.md b/old_docs/API_docs_v44/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v44/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v44/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_editTitle.md b/old_docs/API_docs_v44/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v44/methods/channels_editTitle.md +++ b/old_docs/API_docs_v44/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_exportInvite.md b/old_docs/API_docs_v44/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v44/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v44/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_getChannels.md b/old_docs/API_docs_v44/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v44/methods/channels_getChannels.md +++ b/old_docs/API_docs_v44/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_getMessages.md b/old_docs/API_docs_v44/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v44/methods/channels_getMessages.md +++ b/old_docs/API_docs_v44/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_getParticipant.md b/old_docs/API_docs_v44/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v44/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v44/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_joinChannel.md b/old_docs/API_docs_v44/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v44/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v44/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_leaveChannel.md b/old_docs/API_docs_v44/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v44/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v44/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_readHistory.md b/old_docs/API_docs_v44/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v44/methods/channels_readHistory.md +++ b/old_docs/API_docs_v44/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_reportSpam.md b/old_docs/API_docs_v44/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v44/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v44/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_updateUsername.md b/old_docs/API_docs_v44/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v44/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v44/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_block.md b/old_docs/API_docs_v44/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v44/methods/contacts_block.md +++ b/old_docs/API_docs_v44/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_deleteContact.md b/old_docs/API_docs_v44/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v44/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v44/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_deleteContacts.md b/old_docs/API_docs_v44/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v44/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v44/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_importCard.md b/old_docs/API_docs_v44/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v44/methods/contacts_importCard.md +++ b/old_docs/API_docs_v44/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_search.md b/old_docs/API_docs_v44/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v44/methods/contacts_search.md +++ b/old_docs/API_docs_v44/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_unblock.md b/old_docs/API_docs_v44/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v44/methods/contacts_unblock.md +++ b/old_docs/API_docs_v44/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/initConnection.md b/old_docs/API_docs_v44/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v44/methods/initConnection.md +++ b/old_docs/API_docs_v44/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/invokeWithLayer.md b/old_docs/API_docs_v44/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v44/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v44/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_addChatUser.md b/old_docs/API_docs_v44/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v44/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v44/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_createChat.md b/old_docs/API_docs_v44/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v44/methods/messages_createChat.md +++ b/old_docs/API_docs_v44/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_deleteHistory.md b/old_docs/API_docs_v44/methods/messages_deleteHistory.md index c8081e79..5508a7d8 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v44/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_deleteMessages.md b/old_docs/API_docs_v44/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v44/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_editChatAdmin.md b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_editChatTitle.md b/old_docs/API_docs_v44/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v44/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessage.md b/old_docs/API_docs_v44/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessages.md b/old_docs/API_docs_v44/methods/messages_forwardMessages.md index 8c5b4cf1..555b7124 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessages.md @@ -21,31 +21,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getChats.md b/old_docs/API_docs_v44/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v44/methods/messages_getChats.md +++ b/old_docs/API_docs_v44/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getDhConfig.md b/old_docs/API_docs_v44/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v44/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v44/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getDialogs.md b/old_docs/API_docs_v44/methods/messages_getDialogs.md index 7d57d188..d59c4955 100644 --- a/old_docs/API_docs_v44/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v44/methods/messages_getDialogs.md @@ -21,15 +21,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getHistory.md b/old_docs/API_docs_v44/methods/messages_getHistory.md index 8bccb8e3..62f2e26f 100644 --- a/old_docs/API_docs_v44/methods/messages_getHistory.md +++ b/old_docs/API_docs_v44/methods/messages_getHistory.md @@ -23,18 +23,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getStickerSet.md b/old_docs/API_docs_v44/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v44/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_importChatInvite.md b/old_docs/API_docs_v44/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v44/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_installStickerSet.md b/old_docs/API_docs_v44/methods/messages_installStickerSet.md index 1969d008..0b505397 100644 --- a/old_docs/API_docs_v44/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_migrateChat.md b/old_docs/API_docs_v44/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v44/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v44/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_readHistory.md b/old_docs/API_docs_v44/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v44/methods/messages_readHistory.md +++ b/old_docs/API_docs_v44/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_receivedQueue.md b/old_docs/API_docs_v44/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v44/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v44/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_reportSpam.md b/old_docs/API_docs_v44/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v44/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v44/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_search.md b/old_docs/API_docs_v44/methods/messages_search.md index 2c95b69b..db0a07fd 100644 --- a/old_docs/API_docs_v44/methods/messages_search.md +++ b/old_docs/API_docs_v44/methods/messages_search.md @@ -26,17 +26,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_searchGifs.md b/old_docs/API_docs_v44/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v44/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v44/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_searchGlobal.md b/old_docs/API_docs_v44/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v44/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v44/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_sendMedia.md b/old_docs/API_docs_v44/methods/messages_sendMedia.md index 6f11a7a2..c8b36ab8 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v44/methods/messages_sendMedia.md @@ -22,27 +22,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_sendMessage.md b/old_docs/API_docs_v44/methods/messages_sendMessage.md index 3297166b..ef590c9d 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v44/methods/messages_sendMessage.md @@ -25,31 +25,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_setTyping.md b/old_docs/API_docs_v44/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v44/methods/messages_setTyping.md +++ b/old_docs/API_docs_v44/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_startBot.md b/old_docs/API_docs_v44/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v44/methods/messages_startBot.md +++ b/old_docs/API_docs_v44/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/photos_getUserPhotos.md b/old_docs/API_docs_v44/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v44/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v44/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v44/methods/users_getUsers.md b/old_docs/API_docs_v44/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v44/methods/users_getUsers.md +++ b/old_docs/API_docs_v44/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/README.md b/old_docs/API_docs_v45/methods/README.md index b9bb29bb..1972ae95 100644 --- a/old_docs/API_docs_v45/methods/README.md +++ b/old_docs/API_docs_v45/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v45/methods/account_changePhone.md b/old_docs/API_docs_v45/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v45/methods/account_changePhone.md +++ b/old_docs/API_docs_v45/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_checkUsername.md b/old_docs/API_docs_v45/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v45/methods/account_checkUsername.md +++ b/old_docs/API_docs_v45/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_getNotifySettings.md b/old_docs/API_docs_v45/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v45/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_getPasswordSettings.md b/old_docs/API_docs_v45/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v45/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_getPrivacy.md b/old_docs/API_docs_v45/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v45/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v45/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_registerDevice.md b/old_docs/API_docs_v45/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v45/methods/account_registerDevice.md +++ b/old_docs/API_docs_v45/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_reportPeer.md b/old_docs/API_docs_v45/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v45/methods/account_reportPeer.md +++ b/old_docs/API_docs_v45/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_resetAuthorization.md b/old_docs/API_docs_v45/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v45/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v45/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md index 650dba72..b31df77c 100644 --- a/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md @@ -18,13 +18,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_setAccountTTL.md b/old_docs/API_docs_v45/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v45/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v45/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_setPrivacy.md b/old_docs/API_docs_v45/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v45/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v45/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_unregisterDevice.md b/old_docs/API_docs_v45/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v45/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v45/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_updateNotifySettings.md b/old_docs/API_docs_v45/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v45/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_updateProfile.md b/old_docs/API_docs_v45/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v45/methods/account_updateProfile.md +++ b/old_docs/API_docs_v45/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/account_updateUsername.md b/old_docs/API_docs_v45/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v45/methods/account_updateUsername.md +++ b/old_docs/API_docs_v45/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_checkPassword.md b/old_docs/API_docs_v45/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v45/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v45/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_checkPhone.md b/old_docs/API_docs_v45/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v45/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v45/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_exportAuthorization.md b/old_docs/API_docs_v45/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v45/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_importAuthorization.md b/old_docs/API_docs_v45/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v45/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_recoverPassword.md b/old_docs/API_docs_v45/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v45/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v45/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_sendInvites.md b/old_docs/API_docs_v45/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v45/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v45/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_checkUsername.md b/old_docs/API_docs_v45/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v45/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v45/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_createChannel.md b/old_docs/API_docs_v45/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v45/methods/channels_createChannel.md +++ b/old_docs/API_docs_v45/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_deleteChannel.md b/old_docs/API_docs_v45/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v45/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_deleteMessages.md b/old_docs/API_docs_v45/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v45/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_editAbout.md b/old_docs/API_docs_v45/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v45/methods/channels_editAbout.md +++ b/old_docs/API_docs_v45/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_editAdmin.md b/old_docs/API_docs_v45/methods/channels_editAdmin.md index a0a6eb30..cb821297 100644 --- a/old_docs/API_docs_v45/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v45/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_editPhoto.md b/old_docs/API_docs_v45/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v45/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v45/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_editTitle.md b/old_docs/API_docs_v45/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v45/methods/channels_editTitle.md +++ b/old_docs/API_docs_v45/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_exportInvite.md b/old_docs/API_docs_v45/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v45/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v45/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_getChannels.md b/old_docs/API_docs_v45/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v45/methods/channels_getChannels.md +++ b/old_docs/API_docs_v45/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_getMessages.md b/old_docs/API_docs_v45/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v45/methods/channels_getMessages.md +++ b/old_docs/API_docs_v45/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_getParticipant.md b/old_docs/API_docs_v45/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v45/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v45/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_joinChannel.md b/old_docs/API_docs_v45/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v45/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v45/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_leaveChannel.md b/old_docs/API_docs_v45/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v45/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v45/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_readHistory.md b/old_docs/API_docs_v45/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v45/methods/channels_readHistory.md +++ b/old_docs/API_docs_v45/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_reportSpam.md b/old_docs/API_docs_v45/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v45/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v45/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_updateUsername.md b/old_docs/API_docs_v45/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v45/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v45/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_block.md b/old_docs/API_docs_v45/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v45/methods/contacts_block.md +++ b/old_docs/API_docs_v45/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_deleteContact.md b/old_docs/API_docs_v45/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v45/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v45/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_deleteContacts.md b/old_docs/API_docs_v45/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v45/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v45/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_importCard.md b/old_docs/API_docs_v45/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v45/methods/contacts_importCard.md +++ b/old_docs/API_docs_v45/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_search.md b/old_docs/API_docs_v45/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v45/methods/contacts_search.md +++ b/old_docs/API_docs_v45/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_unblock.md b/old_docs/API_docs_v45/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v45/methods/contacts_unblock.md +++ b/old_docs/API_docs_v45/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/initConnection.md b/old_docs/API_docs_v45/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v45/methods/initConnection.md +++ b/old_docs/API_docs_v45/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/invokeWithLayer.md b/old_docs/API_docs_v45/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v45/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v45/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_addChatUser.md b/old_docs/API_docs_v45/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v45/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v45/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_createChat.md b/old_docs/API_docs_v45/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v45/methods/messages_createChat.md +++ b/old_docs/API_docs_v45/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_deleteHistory.md b/old_docs/API_docs_v45/methods/messages_deleteHistory.md index c8081e79..5508a7d8 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v45/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_deleteMessages.md b/old_docs/API_docs_v45/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v45/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_editChatAdmin.md b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_editChatTitle.md b/old_docs/API_docs_v45/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v45/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessage.md b/old_docs/API_docs_v45/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessages.md b/old_docs/API_docs_v45/methods/messages_forwardMessages.md index 8c5b4cf1..555b7124 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessages.md @@ -21,31 +21,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getChats.md b/old_docs/API_docs_v45/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v45/methods/messages_getChats.md +++ b/old_docs/API_docs_v45/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getDhConfig.md b/old_docs/API_docs_v45/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v45/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v45/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getDialogs.md b/old_docs/API_docs_v45/methods/messages_getDialogs.md index 7d57d188..d59c4955 100644 --- a/old_docs/API_docs_v45/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v45/methods/messages_getDialogs.md @@ -21,15 +21,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getHistory.md b/old_docs/API_docs_v45/methods/messages_getHistory.md index 8bccb8e3..62f2e26f 100644 --- a/old_docs/API_docs_v45/methods/messages_getHistory.md +++ b/old_docs/API_docs_v45/methods/messages_getHistory.md @@ -23,18 +23,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md index 0a80318d..1a1b05cf 100644 --- a/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md @@ -20,15 +20,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getStickerSet.md b/old_docs/API_docs_v45/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v45/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_importChatInvite.md b/old_docs/API_docs_v45/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v45/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_installStickerSet.md b/old_docs/API_docs_v45/methods/messages_installStickerSet.md index 1969d008..0b505397 100644 --- a/old_docs/API_docs_v45/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_migrateChat.md b/old_docs/API_docs_v45/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v45/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v45/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_readHistory.md b/old_docs/API_docs_v45/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v45/methods/messages_readHistory.md +++ b/old_docs/API_docs_v45/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_receivedQueue.md b/old_docs/API_docs_v45/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v45/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v45/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_reportSpam.md b/old_docs/API_docs_v45/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v45/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v45/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_saveGif.md b/old_docs/API_docs_v45/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v45/methods/messages_saveGif.md +++ b/old_docs/API_docs_v45/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_search.md b/old_docs/API_docs_v45/methods/messages_search.md index 2c95b69b..db0a07fd 100644 --- a/old_docs/API_docs_v45/methods/messages_search.md +++ b/old_docs/API_docs_v45/methods/messages_search.md @@ -26,17 +26,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_searchGifs.md b/old_docs/API_docs_v45/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v45/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v45/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_searchGlobal.md b/old_docs/API_docs_v45/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v45/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v45/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md index e1c6b2a2..530d0255 100644 --- a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md @@ -22,15 +22,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendMedia.md b/old_docs/API_docs_v45/methods/messages_sendMedia.md index 6f11a7a2..c8b36ab8 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v45/methods/messages_sendMedia.md @@ -22,27 +22,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendMessage.md b/old_docs/API_docs_v45/methods/messages_sendMessage.md index 3297166b..ef590c9d 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v45/methods/messages_sendMessage.md @@ -25,31 +25,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md index e347494b..d31f0a43 100644 --- a/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md @@ -23,23 +23,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_setTyping.md b/old_docs/API_docs_v45/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v45/methods/messages_setTyping.md +++ b/old_docs/API_docs_v45/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_startBot.md b/old_docs/API_docs_v45/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v45/methods/messages_startBot.md +++ b/old_docs/API_docs_v45/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/photos_getUserPhotos.md b/old_docs/API_docs_v45/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v45/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v45/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v45/methods/users_getUsers.md b/old_docs/API_docs_v45/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v45/methods/users_getUsers.md +++ b/old_docs/API_docs_v45/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/README.md b/old_docs/API_docs_v46/methods/README.md index b9bb29bb..1972ae95 100644 --- a/old_docs/API_docs_v46/methods/README.md +++ b/old_docs/API_docs_v46/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v46/methods/account_changePhone.md b/old_docs/API_docs_v46/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v46/methods/account_changePhone.md +++ b/old_docs/API_docs_v46/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_checkUsername.md b/old_docs/API_docs_v46/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v46/methods/account_checkUsername.md +++ b/old_docs/API_docs_v46/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_getNotifySettings.md b/old_docs/API_docs_v46/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v46/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_getPasswordSettings.md b/old_docs/API_docs_v46/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v46/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_getPrivacy.md b/old_docs/API_docs_v46/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v46/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v46/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_registerDevice.md b/old_docs/API_docs_v46/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v46/methods/account_registerDevice.md +++ b/old_docs/API_docs_v46/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_reportPeer.md b/old_docs/API_docs_v46/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v46/methods/account_reportPeer.md +++ b/old_docs/API_docs_v46/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_resetAuthorization.md b/old_docs/API_docs_v46/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v46/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v46/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md index 650dba72..b31df77c 100644 --- a/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md @@ -18,13 +18,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_setAccountTTL.md b/old_docs/API_docs_v46/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v46/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v46/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_setPrivacy.md b/old_docs/API_docs_v46/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v46/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v46/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_unregisterDevice.md b/old_docs/API_docs_v46/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v46/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v46/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_updateNotifySettings.md b/old_docs/API_docs_v46/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v46/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_updateProfile.md b/old_docs/API_docs_v46/methods/account_updateProfile.md index c8712074..af2c8f57 100644 --- a/old_docs/API_docs_v46/methods/account_updateProfile.md +++ b/old_docs/API_docs_v46/methods/account_updateProfile.md @@ -19,14 +19,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/account_updateUsername.md b/old_docs/API_docs_v46/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v46/methods/account_updateUsername.md +++ b/old_docs/API_docs_v46/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_checkPassword.md b/old_docs/API_docs_v46/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v46/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v46/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_checkPhone.md b/old_docs/API_docs_v46/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v46/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v46/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_exportAuthorization.md b/old_docs/API_docs_v46/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v46/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_importAuthorization.md b/old_docs/API_docs_v46/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v46/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_recoverPassword.md b/old_docs/API_docs_v46/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v46/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v46/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_sendInvites.md b/old_docs/API_docs_v46/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v46/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v46/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_checkUsername.md b/old_docs/API_docs_v46/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v46/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v46/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_createChannel.md b/old_docs/API_docs_v46/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v46/methods/channels_createChannel.md +++ b/old_docs/API_docs_v46/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_deleteChannel.md b/old_docs/API_docs_v46/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v46/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_deleteMessages.md b/old_docs/API_docs_v46/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v46/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_editAbout.md b/old_docs/API_docs_v46/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v46/methods/channels_editAbout.md +++ b/old_docs/API_docs_v46/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_editAdmin.md b/old_docs/API_docs_v46/methods/channels_editAdmin.md index a0a6eb30..cb821297 100644 --- a/old_docs/API_docs_v46/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v46/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_editPhoto.md b/old_docs/API_docs_v46/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v46/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v46/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_editTitle.md b/old_docs/API_docs_v46/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v46/methods/channels_editTitle.md +++ b/old_docs/API_docs_v46/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_exportInvite.md b/old_docs/API_docs_v46/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v46/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v46/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_getChannels.md b/old_docs/API_docs_v46/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v46/methods/channels_getChannels.md +++ b/old_docs/API_docs_v46/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_getMessages.md b/old_docs/API_docs_v46/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v46/methods/channels_getMessages.md +++ b/old_docs/API_docs_v46/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_getParticipant.md b/old_docs/API_docs_v46/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v46/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v46/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_joinChannel.md b/old_docs/API_docs_v46/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v46/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v46/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_leaveChannel.md b/old_docs/API_docs_v46/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v46/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v46/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_readHistory.md b/old_docs/API_docs_v46/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v46/methods/channels_readHistory.md +++ b/old_docs/API_docs_v46/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_reportSpam.md b/old_docs/API_docs_v46/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v46/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v46/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_updateUsername.md b/old_docs/API_docs_v46/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v46/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v46/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_block.md b/old_docs/API_docs_v46/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v46/methods/contacts_block.md +++ b/old_docs/API_docs_v46/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_deleteContact.md b/old_docs/API_docs_v46/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v46/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v46/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_deleteContacts.md b/old_docs/API_docs_v46/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v46/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v46/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_importCard.md b/old_docs/API_docs_v46/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v46/methods/contacts_importCard.md +++ b/old_docs/API_docs_v46/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_search.md b/old_docs/API_docs_v46/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v46/methods/contacts_search.md +++ b/old_docs/API_docs_v46/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_unblock.md b/old_docs/API_docs_v46/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v46/methods/contacts_unblock.md +++ b/old_docs/API_docs_v46/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/initConnection.md b/old_docs/API_docs_v46/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v46/methods/initConnection.md +++ b/old_docs/API_docs_v46/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/invokeWithLayer.md b/old_docs/API_docs_v46/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v46/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v46/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_addChatUser.md b/old_docs/API_docs_v46/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v46/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v46/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_createChat.md b/old_docs/API_docs_v46/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v46/methods/messages_createChat.md +++ b/old_docs/API_docs_v46/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_deleteHistory.md b/old_docs/API_docs_v46/methods/messages_deleteHistory.md index c8081e79..5508a7d8 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v46/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_deleteMessages.md b/old_docs/API_docs_v46/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v46/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_editChatAdmin.md b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_editChatTitle.md b/old_docs/API_docs_v46/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v46/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessage.md b/old_docs/API_docs_v46/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessages.md b/old_docs/API_docs_v46/methods/messages_forwardMessages.md index 8c5b4cf1..555b7124 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessages.md @@ -21,31 +21,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getChats.md b/old_docs/API_docs_v46/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v46/methods/messages_getChats.md +++ b/old_docs/API_docs_v46/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getDhConfig.md b/old_docs/API_docs_v46/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v46/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v46/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getDialogs.md b/old_docs/API_docs_v46/methods/messages_getDialogs.md index 7d57d188..d59c4955 100644 --- a/old_docs/API_docs_v46/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v46/methods/messages_getDialogs.md @@ -21,15 +21,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getHistory.md b/old_docs/API_docs_v46/methods/messages_getHistory.md index 8bccb8e3..62f2e26f 100644 --- a/old_docs/API_docs_v46/methods/messages_getHistory.md +++ b/old_docs/API_docs_v46/methods/messages_getHistory.md @@ -23,18 +23,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md index 0a80318d..1a1b05cf 100644 --- a/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md @@ -20,15 +20,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getStickerSet.md b/old_docs/API_docs_v46/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v46/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_importChatInvite.md b/old_docs/API_docs_v46/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v46/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_installStickerSet.md b/old_docs/API_docs_v46/methods/messages_installStickerSet.md index 1969d008..0b505397 100644 --- a/old_docs/API_docs_v46/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_migrateChat.md b/old_docs/API_docs_v46/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v46/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v46/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_readHistory.md b/old_docs/API_docs_v46/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v46/methods/messages_readHistory.md +++ b/old_docs/API_docs_v46/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_receivedQueue.md b/old_docs/API_docs_v46/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v46/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v46/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_reportSpam.md b/old_docs/API_docs_v46/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v46/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v46/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_saveGif.md b/old_docs/API_docs_v46/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v46/methods/messages_saveGif.md +++ b/old_docs/API_docs_v46/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_search.md b/old_docs/API_docs_v46/methods/messages_search.md index 2c95b69b..db0a07fd 100644 --- a/old_docs/API_docs_v46/methods/messages_search.md +++ b/old_docs/API_docs_v46/methods/messages_search.md @@ -26,17 +26,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_searchGifs.md b/old_docs/API_docs_v46/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v46/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v46/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_searchGlobal.md b/old_docs/API_docs_v46/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v46/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v46/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md index e1c6b2a2..530d0255 100644 --- a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md @@ -22,15 +22,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendMedia.md b/old_docs/API_docs_v46/methods/messages_sendMedia.md index 6f11a7a2..c8b36ab8 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v46/methods/messages_sendMedia.md @@ -22,27 +22,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendMessage.md b/old_docs/API_docs_v46/methods/messages_sendMessage.md index 3297166b..ef590c9d 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v46/methods/messages_sendMessage.md @@ -25,31 +25,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md index e347494b..d31f0a43 100644 --- a/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md @@ -23,23 +23,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_setTyping.md b/old_docs/API_docs_v46/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v46/methods/messages_setTyping.md +++ b/old_docs/API_docs_v46/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_startBot.md b/old_docs/API_docs_v46/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v46/methods/messages_startBot.md +++ b/old_docs/API_docs_v46/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/photos_getUserPhotos.md b/old_docs/API_docs_v46/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v46/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v46/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v46/methods/users_getUsers.md b/old_docs/API_docs_v46/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v46/methods/users_getUsers.md +++ b/old_docs/API_docs_v46/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/README.md b/old_docs/API_docs_v51/methods/README.md index f4161e2d..f518ff7a 100644 --- a/old_docs/API_docs_v51/methods/README.md +++ b/old_docs/API_docs_v51/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v51/methods/account_changePhone.md b/old_docs/API_docs_v51/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v51/methods/account_changePhone.md +++ b/old_docs/API_docs_v51/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_checkUsername.md b/old_docs/API_docs_v51/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v51/methods/account_checkUsername.md +++ b/old_docs/API_docs_v51/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_getNotifySettings.md b/old_docs/API_docs_v51/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v51/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_getPasswordSettings.md b/old_docs/API_docs_v51/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v51/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_getPrivacy.md b/old_docs/API_docs_v51/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v51/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v51/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_registerDevice.md b/old_docs/API_docs_v51/methods/account_registerDevice.md index ab7ec933..58e9988f 100644 --- a/old_docs/API_docs_v51/methods/account_registerDevice.md +++ b/old_docs/API_docs_v51/methods/account_registerDevice.md @@ -24,13 +24,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_reportPeer.md b/old_docs/API_docs_v51/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v51/methods/account_reportPeer.md +++ b/old_docs/API_docs_v51/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_resetAuthorization.md b/old_docs/API_docs_v51/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v51/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v51/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md index 4be218f2..a1f49156 100644 --- a/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md @@ -20,13 +20,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_setAccountTTL.md b/old_docs/API_docs_v51/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v51/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v51/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_setPrivacy.md b/old_docs/API_docs_v51/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v51/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v51/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_unregisterDevice.md b/old_docs/API_docs_v51/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v51/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v51/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_updateNotifySettings.md b/old_docs/API_docs_v51/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v51/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_updateProfile.md b/old_docs/API_docs_v51/methods/account_updateProfile.md index a50eaea5..531bbb02 100644 --- a/old_docs/API_docs_v51/methods/account_updateProfile.md +++ b/old_docs/API_docs_v51/methods/account_updateProfile.md @@ -20,14 +20,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/account_updateUsername.md b/old_docs/API_docs_v51/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v51/methods/account_updateUsername.md +++ b/old_docs/API_docs_v51/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_cancelCode.md b/old_docs/API_docs_v51/methods/auth_cancelCode.md index dc390329..cc93fff5 100644 --- a/old_docs/API_docs_v51/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v51/methods/auth_cancelCode.md @@ -19,13 +19,6 @@ description: auth.cancelCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_checkPassword.md b/old_docs/API_docs_v51/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v51/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v51/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_checkPhone.md b/old_docs/API_docs_v51/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v51/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v51/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_exportAuthorization.md b/old_docs/API_docs_v51/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v51/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_importAuthorization.md b/old_docs/API_docs_v51/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v51/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_recoverPassword.md b/old_docs/API_docs_v51/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v51/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v51/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_resendCode.md b/old_docs/API_docs_v51/methods/auth_resendCode.md index 14d08ddd..92f7aa30 100644 --- a/old_docs/API_docs_v51/methods/auth_resendCode.md +++ b/old_docs/API_docs_v51/methods/auth_resendCode.md @@ -19,13 +19,6 @@ description: auth.resendCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_sendInvites.md b/old_docs/API_docs_v51/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v51/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v51/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_checkUsername.md b/old_docs/API_docs_v51/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v51/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v51/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_createChannel.md b/old_docs/API_docs_v51/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v51/methods/channels_createChannel.md +++ b/old_docs/API_docs_v51/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_deleteChannel.md b/old_docs/API_docs_v51/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v51/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_deleteMessages.md b/old_docs/API_docs_v51/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v51/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_editAbout.md b/old_docs/API_docs_v51/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v51/methods/channels_editAbout.md +++ b/old_docs/API_docs_v51/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_editAdmin.md b/old_docs/API_docs_v51/methods/channels_editAdmin.md index a0a6eb30..cb821297 100644 --- a/old_docs/API_docs_v51/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v51/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_editPhoto.md b/old_docs/API_docs_v51/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v51/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v51/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_editTitle.md b/old_docs/API_docs_v51/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v51/methods/channels_editTitle.md +++ b/old_docs/API_docs_v51/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_exportInvite.md b/old_docs/API_docs_v51/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v51/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v51/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_exportMessageLink.md b/old_docs/API_docs_v51/methods/channels_exportMessageLink.md index 9831c9c0..9e7135ab 100644 --- a/old_docs/API_docs_v51/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v51/methods/channels_exportMessageLink.md @@ -19,13 +19,6 @@ description: channels.exportMessageLink parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_getChannels.md b/old_docs/API_docs_v51/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v51/methods/channels_getChannels.md +++ b/old_docs/API_docs_v51/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_getMessages.md b/old_docs/API_docs_v51/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v51/methods/channels_getMessages.md +++ b/old_docs/API_docs_v51/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_getParticipant.md b/old_docs/API_docs_v51/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v51/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v51/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_joinChannel.md b/old_docs/API_docs_v51/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v51/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v51/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_leaveChannel.md b/old_docs/API_docs_v51/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v51/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v51/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_readHistory.md b/old_docs/API_docs_v51/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v51/methods/channels_readHistory.md +++ b/old_docs/API_docs_v51/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_reportSpam.md b/old_docs/API_docs_v51/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v51/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v51/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_toggleInvites.md b/old_docs/API_docs_v51/methods/channels_toggleInvites.md index d84339b2..0733d419 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v51/methods/channels_toggleInvites.md @@ -19,14 +19,6 @@ description: channels.toggleInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_toggleSignatures.md b/old_docs/API_docs_v51/methods/channels_toggleSignatures.md index a214b849..3056eaee 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v51/methods/channels_toggleSignatures.md @@ -19,13 +19,6 @@ description: channels.toggleSignatures parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md index 7376df10..d2314d85 100644 --- a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md @@ -20,15 +20,6 @@ description: channels.updatePinnedMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_updateUsername.md b/old_docs/API_docs_v51/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v51/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v51/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_block.md b/old_docs/API_docs_v51/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v51/methods/contacts_block.md +++ b/old_docs/API_docs_v51/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_deleteContact.md b/old_docs/API_docs_v51/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v51/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v51/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_deleteContacts.md b/old_docs/API_docs_v51/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v51/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v51/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_importCard.md b/old_docs/API_docs_v51/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v51/methods/contacts_importCard.md +++ b/old_docs/API_docs_v51/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_search.md b/old_docs/API_docs_v51/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v51/methods/contacts_search.md +++ b/old_docs/API_docs_v51/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_unblock.md b/old_docs/API_docs_v51/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v51/methods/contacts_unblock.md +++ b/old_docs/API_docs_v51/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/initConnection.md b/old_docs/API_docs_v51/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v51/methods/initConnection.md +++ b/old_docs/API_docs_v51/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/invokeWithLayer.md b/old_docs/API_docs_v51/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v51/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v51/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_addChatUser.md b/old_docs/API_docs_v51/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v51/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v51/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_createChat.md b/old_docs/API_docs_v51/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v51/methods/messages_createChat.md +++ b/old_docs/API_docs_v51/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_deleteHistory.md b/old_docs/API_docs_v51/methods/messages_deleteHistory.md index c8081e79..5508a7d8 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v51/methods/messages_deleteHistory.md @@ -19,13 +19,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_deleteMessages.md b/old_docs/API_docs_v51/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v51/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_editChatAdmin.md b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_editChatTitle.md b/old_docs/API_docs_v51/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v51/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md index 621c81a3..083d4a61 100644 --- a/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md @@ -23,14 +23,6 @@ description: messages.editInlineBotMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_editMessage.md b/old_docs/API_docs_v51/methods/messages_editMessage.md index 8bc79038..a2766336 100644 --- a/old_docs/API_docs_v51/methods/messages_editMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editMessage.md @@ -24,20 +24,6 @@ description: messages.editMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessage.md b/old_docs/API_docs_v51/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessages.md b/old_docs/API_docs_v51/methods/messages_forwardMessages.md index b3be1b51..ce1c5f80 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessages.md @@ -23,31 +23,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md index 9afb2e6a..d41d1ab6 100644 --- a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md @@ -20,16 +20,6 @@ description: messages.getBotCallbackAnswer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getChats.md b/old_docs/API_docs_v51/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v51/methods/messages_getChats.md +++ b/old_docs/API_docs_v51/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getDhConfig.md b/old_docs/API_docs_v51/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v51/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v51/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getDialogs.md b/old_docs/API_docs_v51/methods/messages_getDialogs.md index 7d57d188..d59c4955 100644 --- a/old_docs/API_docs_v51/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v51/methods/messages_getDialogs.md @@ -21,15 +21,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getHistory.md b/old_docs/API_docs_v51/methods/messages_getHistory.md index f6db78c4..273eb6a9 100644 --- a/old_docs/API_docs_v51/methods/messages_getHistory.md +++ b/old_docs/API_docs_v51/methods/messages_getHistory.md @@ -24,18 +24,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md index ad41660e..f5da1c5a 100644 --- a/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md @@ -22,15 +22,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getMessageEditData.md b/old_docs/API_docs_v51/methods/messages_getMessageEditData.md index 4e20a108..ee07fd74 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v51/methods/messages_getMessageEditData.md @@ -19,14 +19,6 @@ description: messages.getMessageEditData parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getPeerSettings.md b/old_docs/API_docs_v51/methods/messages_getPeerSettings.md index d3e3cfc3..26776c43 100644 --- a/old_docs/API_docs_v51/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v51/methods/messages_getPeerSettings.md @@ -18,14 +18,6 @@ description: messages.getPeerSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getStickerSet.md b/old_docs/API_docs_v51/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v51/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_hideReportSpam.md b/old_docs/API_docs_v51/methods/messages_hideReportSpam.md index 2dfe4dd7..20bc6f18 100644 --- a/old_docs/API_docs_v51/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v51/methods/messages_hideReportSpam.md @@ -18,13 +18,6 @@ description: messages.hideReportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_importChatInvite.md b/old_docs/API_docs_v51/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v51/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_installStickerSet.md b/old_docs/API_docs_v51/methods/messages_installStickerSet.md index 1969d008..0b505397 100644 --- a/old_docs/API_docs_v51/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_migrateChat.md b/old_docs/API_docs_v51/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v51/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v51/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_readHistory.md b/old_docs/API_docs_v51/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v51/methods/messages_readHistory.md +++ b/old_docs/API_docs_v51/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_receivedQueue.md b/old_docs/API_docs_v51/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v51/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v51/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_reportSpam.md b/old_docs/API_docs_v51/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v51/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v51/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_saveGif.md b/old_docs/API_docs_v51/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v51/methods/messages_saveGif.md +++ b/old_docs/API_docs_v51/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_search.md b/old_docs/API_docs_v51/methods/messages_search.md index 2c95b69b..db0a07fd 100644 --- a/old_docs/API_docs_v51/methods/messages_search.md +++ b/old_docs/API_docs_v51/methods/messages_search.md @@ -26,17 +26,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_searchGifs.md b/old_docs/API_docs_v51/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v51/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v51/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_searchGlobal.md b/old_docs/API_docs_v51/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v51/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v51/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md index 626fc6c3..f0352f04 100644 --- a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md @@ -24,15 +24,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendMedia.md b/old_docs/API_docs_v51/methods/messages_sendMedia.md index cf2e36fb..14f176ba 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v51/methods/messages_sendMedia.md @@ -24,27 +24,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendMessage.md b/old_docs/API_docs_v51/methods/messages_sendMessage.md index ea668ade..b32d1b17 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v51/methods/messages_sendMessage.md @@ -27,31 +27,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md index ea7cdd79..5c9ebc14 100644 --- a/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md @@ -20,13 +20,6 @@ description: messages.setBotCallbackAnswer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md index 8b5625f3..cf74e5e4 100644 --- a/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md @@ -24,23 +24,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_setTyping.md b/old_docs/API_docs_v51/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v51/methods/messages_setTyping.md +++ b/old_docs/API_docs_v51/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_startBot.md b/old_docs/API_docs_v51/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v51/methods/messages_startBot.md +++ b/old_docs/API_docs_v51/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/photos_getUserPhotos.md b/old_docs/API_docs_v51/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v51/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v51/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v51/methods/users_getUsers.md b/old_docs/API_docs_v51/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v51/methods/users_getUsers.md +++ b/old_docs/API_docs_v51/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/README.md b/old_docs/API_docs_v53/methods/README.md index 3e509227..b1bf6b63 100644 --- a/old_docs/API_docs_v53/methods/README.md +++ b/old_docs/API_docs_v53/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v53/methods/account_changePhone.md b/old_docs/API_docs_v53/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v53/methods/account_changePhone.md +++ b/old_docs/API_docs_v53/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_checkUsername.md b/old_docs/API_docs_v53/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v53/methods/account_checkUsername.md +++ b/old_docs/API_docs_v53/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_getNotifySettings.md b/old_docs/API_docs_v53/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v53/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_getPasswordSettings.md b/old_docs/API_docs_v53/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v53/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_getPrivacy.md b/old_docs/API_docs_v53/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v53/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v53/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_registerDevice.md b/old_docs/API_docs_v53/methods/account_registerDevice.md index 3cc7f98d..6865551e 100644 --- a/old_docs/API_docs_v53/methods/account_registerDevice.md +++ b/old_docs/API_docs_v53/methods/account_registerDevice.md @@ -19,13 +19,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_reportPeer.md b/old_docs/API_docs_v53/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v53/methods/account_reportPeer.md +++ b/old_docs/API_docs_v53/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_resetAuthorization.md b/old_docs/API_docs_v53/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v53/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v53/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md index 4be218f2..a1f49156 100644 --- a/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md @@ -20,13 +20,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_setAccountTTL.md b/old_docs/API_docs_v53/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v53/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v53/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_setPrivacy.md b/old_docs/API_docs_v53/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v53/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v53/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_unregisterDevice.md b/old_docs/API_docs_v53/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v53/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v53/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_updateNotifySettings.md b/old_docs/API_docs_v53/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v53/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_updateProfile.md b/old_docs/API_docs_v53/methods/account_updateProfile.md index a50eaea5..531bbb02 100644 --- a/old_docs/API_docs_v53/methods/account_updateProfile.md +++ b/old_docs/API_docs_v53/methods/account_updateProfile.md @@ -20,14 +20,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/account_updateUsername.md b/old_docs/API_docs_v53/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v53/methods/account_updateUsername.md +++ b/old_docs/API_docs_v53/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_cancelCode.md b/old_docs/API_docs_v53/methods/auth_cancelCode.md index dc390329..cc93fff5 100644 --- a/old_docs/API_docs_v53/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v53/methods/auth_cancelCode.md @@ -19,13 +19,6 @@ description: auth.cancelCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_checkPassword.md b/old_docs/API_docs_v53/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v53/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v53/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_checkPhone.md b/old_docs/API_docs_v53/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v53/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v53/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_exportAuthorization.md b/old_docs/API_docs_v53/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v53/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_importAuthorization.md b/old_docs/API_docs_v53/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v53/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_recoverPassword.md b/old_docs/API_docs_v53/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v53/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v53/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_resendCode.md b/old_docs/API_docs_v53/methods/auth_resendCode.md index 14d08ddd..92f7aa30 100644 --- a/old_docs/API_docs_v53/methods/auth_resendCode.md +++ b/old_docs/API_docs_v53/methods/auth_resendCode.md @@ -19,13 +19,6 @@ description: auth.resendCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_sendInvites.md b/old_docs/API_docs_v53/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v53/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v53/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_checkUsername.md b/old_docs/API_docs_v53/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v53/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v53/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_createChannel.md b/old_docs/API_docs_v53/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v53/methods/channels_createChannel.md +++ b/old_docs/API_docs_v53/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_deleteChannel.md b/old_docs/API_docs_v53/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v53/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_deleteMessages.md b/old_docs/API_docs_v53/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v53/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_editAbout.md b/old_docs/API_docs_v53/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v53/methods/channels_editAbout.md +++ b/old_docs/API_docs_v53/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_editAdmin.md b/old_docs/API_docs_v53/methods/channels_editAdmin.md index a0a6eb30..cb821297 100644 --- a/old_docs/API_docs_v53/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v53/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_editPhoto.md b/old_docs/API_docs_v53/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v53/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v53/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_editTitle.md b/old_docs/API_docs_v53/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v53/methods/channels_editTitle.md +++ b/old_docs/API_docs_v53/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_exportInvite.md b/old_docs/API_docs_v53/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v53/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v53/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_exportMessageLink.md b/old_docs/API_docs_v53/methods/channels_exportMessageLink.md index 9831c9c0..9e7135ab 100644 --- a/old_docs/API_docs_v53/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v53/methods/channels_exportMessageLink.md @@ -19,13 +19,6 @@ description: channels.exportMessageLink parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_getChannels.md b/old_docs/API_docs_v53/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v53/methods/channels_getChannels.md +++ b/old_docs/API_docs_v53/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_getMessages.md b/old_docs/API_docs_v53/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v53/methods/channels_getMessages.md +++ b/old_docs/API_docs_v53/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_getParticipant.md b/old_docs/API_docs_v53/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v53/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v53/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_joinChannel.md b/old_docs/API_docs_v53/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v53/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v53/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_leaveChannel.md b/old_docs/API_docs_v53/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v53/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v53/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_readHistory.md b/old_docs/API_docs_v53/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v53/methods/channels_readHistory.md +++ b/old_docs/API_docs_v53/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_reportSpam.md b/old_docs/API_docs_v53/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v53/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v53/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_toggleInvites.md b/old_docs/API_docs_v53/methods/channels_toggleInvites.md index d84339b2..0733d419 100644 --- a/old_docs/API_docs_v53/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v53/methods/channels_toggleInvites.md @@ -19,14 +19,6 @@ description: channels.toggleInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_toggleSignatures.md b/old_docs/API_docs_v53/methods/channels_toggleSignatures.md index a214b849..3056eaee 100644 --- a/old_docs/API_docs_v53/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v53/methods/channels_toggleSignatures.md @@ -19,13 +19,6 @@ description: channels.toggleSignatures parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md index 7376df10..d2314d85 100644 --- a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md @@ -20,15 +20,6 @@ description: channels.updatePinnedMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_updateUsername.md b/old_docs/API_docs_v53/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v53/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v53/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_block.md b/old_docs/API_docs_v53/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v53/methods/contacts_block.md +++ b/old_docs/API_docs_v53/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_deleteContact.md b/old_docs/API_docs_v53/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v53/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v53/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_deleteContacts.md b/old_docs/API_docs_v53/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v53/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v53/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_getTopPeers.md b/old_docs/API_docs_v53/methods/contacts_getTopPeers.md index 1caa1d77..60967d06 100644 --- a/old_docs/API_docs_v53/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v53/methods/contacts_getTopPeers.md @@ -25,13 +25,6 @@ description: contacts.getTopPeers parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TYPES_EMPTY|The types field is empty| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_importCard.md b/old_docs/API_docs_v53/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v53/methods/contacts_importCard.md +++ b/old_docs/API_docs_v53/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md index 738494b2..2f784189 100644 --- a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md @@ -19,13 +19,6 @@ description: contacts.resetTopPeerRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_search.md b/old_docs/API_docs_v53/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v53/methods/contacts_search.md +++ b/old_docs/API_docs_v53/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_unblock.md b/old_docs/API_docs_v53/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v53/methods/contacts_unblock.md +++ b/old_docs/API_docs_v53/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/initConnection.md b/old_docs/API_docs_v53/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v53/methods/initConnection.md +++ b/old_docs/API_docs_v53/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/invokeWithLayer.md b/old_docs/API_docs_v53/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v53/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v53/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_addChatUser.md b/old_docs/API_docs_v53/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v53/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v53/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_createChat.md b/old_docs/API_docs_v53/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v53/methods/messages_createChat.md +++ b/old_docs/API_docs_v53/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_deleteHistory.md b/old_docs/API_docs_v53/methods/messages_deleteHistory.md index ce6ba6e7..fb9b7763 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v53/methods/messages_deleteHistory.md @@ -20,13 +20,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_deleteMessages.md b/old_docs/API_docs_v53/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v53/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_editChatAdmin.md b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_editChatTitle.md b/old_docs/API_docs_v53/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v53/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md index 621c81a3..083d4a61 100644 --- a/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md @@ -23,14 +23,6 @@ description: messages.editInlineBotMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_editMessage.md b/old_docs/API_docs_v53/methods/messages_editMessage.md index 8bc79038..a2766336 100644 --- a/old_docs/API_docs_v53/methods/messages_editMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editMessage.md @@ -24,20 +24,6 @@ description: messages.editMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessage.md b/old_docs/API_docs_v53/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessages.md b/old_docs/API_docs_v53/methods/messages_forwardMessages.md index 851d132d..c06dc523 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessages.md @@ -22,31 +22,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md index 9afb2e6a..d41d1ab6 100644 --- a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md @@ -20,16 +20,6 @@ description: messages.getBotCallbackAnswer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getChats.md b/old_docs/API_docs_v53/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v53/methods/messages_getChats.md +++ b/old_docs/API_docs_v53/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getDhConfig.md b/old_docs/API_docs_v53/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v53/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v53/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getDialogs.md b/old_docs/API_docs_v53/methods/messages_getDialogs.md index 7d57d188..d59c4955 100644 --- a/old_docs/API_docs_v53/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v53/methods/messages_getDialogs.md @@ -21,15 +21,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getHistory.md b/old_docs/API_docs_v53/methods/messages_getHistory.md index f6db78c4..273eb6a9 100644 --- a/old_docs/API_docs_v53/methods/messages_getHistory.md +++ b/old_docs/API_docs_v53/methods/messages_getHistory.md @@ -24,18 +24,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md index ad41660e..f5da1c5a 100644 --- a/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md @@ -22,15 +22,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getMessageEditData.md b/old_docs/API_docs_v53/methods/messages_getMessageEditData.md index 4e20a108..ee07fd74 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v53/methods/messages_getMessageEditData.md @@ -19,14 +19,6 @@ description: messages.getMessageEditData parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md index 3da60038..e388e309 100644 --- a/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md @@ -18,14 +18,6 @@ description: messages.getPeerDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getPeerSettings.md b/old_docs/API_docs_v53/methods/messages_getPeerSettings.md index d3e3cfc3..26776c43 100644 --- a/old_docs/API_docs_v53/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v53/methods/messages_getPeerSettings.md @@ -18,14 +18,6 @@ description: messages.getPeerSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getStickerSet.md b/old_docs/API_docs_v53/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v53/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_hideReportSpam.md b/old_docs/API_docs_v53/methods/messages_hideReportSpam.md index 2dfe4dd7..20bc6f18 100644 --- a/old_docs/API_docs_v53/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v53/methods/messages_hideReportSpam.md @@ -18,13 +18,6 @@ description: messages.hideReportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_importChatInvite.md b/old_docs/API_docs_v53/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v53/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_installStickerSet.md b/old_docs/API_docs_v53/methods/messages_installStickerSet.md index 1969d008..0b505397 100644 --- a/old_docs/API_docs_v53/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_migrateChat.md b/old_docs/API_docs_v53/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v53/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v53/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_readHistory.md b/old_docs/API_docs_v53/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v53/methods/messages_readHistory.md +++ b/old_docs/API_docs_v53/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_receivedQueue.md b/old_docs/API_docs_v53/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v53/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v53/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_reportSpam.md b/old_docs/API_docs_v53/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v53/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v53/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_saveDraft.md b/old_docs/API_docs_v53/methods/messages_saveDraft.md index 42308b46..ef5e65c5 100644 --- a/old_docs/API_docs_v53/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v53/methods/messages_saveDraft.md @@ -23,13 +23,6 @@ description: messages.saveDraft parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_saveGif.md b/old_docs/API_docs_v53/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v53/methods/messages_saveGif.md +++ b/old_docs/API_docs_v53/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_search.md b/old_docs/API_docs_v53/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v53/methods/messages_search.md +++ b/old_docs/API_docs_v53/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_searchGifs.md b/old_docs/API_docs_v53/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v53/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v53/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_searchGlobal.md b/old_docs/API_docs_v53/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v53/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v53/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md index 8a91e882..6ab41f50 100644 --- a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md @@ -24,15 +24,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendMedia.md b/old_docs/API_docs_v53/methods/messages_sendMedia.md index 6c5e65d5..68e2c41b 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v53/methods/messages_sendMedia.md @@ -24,27 +24,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendMessage.md b/old_docs/API_docs_v53/methods/messages_sendMessage.md index f9f2aa8a..cabccdb3 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v53/methods/messages_sendMessage.md @@ -27,31 +27,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md index ea7cdd79..5c9ebc14 100644 --- a/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md @@ -20,13 +20,6 @@ description: messages.setBotCallbackAnswer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md index 8b5625f3..cf74e5e4 100644 --- a/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md @@ -24,23 +24,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_setTyping.md b/old_docs/API_docs_v53/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v53/methods/messages_setTyping.md +++ b/old_docs/API_docs_v53/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_startBot.md b/old_docs/API_docs_v53/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v53/methods/messages_startBot.md +++ b/old_docs/API_docs_v53/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/photos_getUserPhotos.md b/old_docs/API_docs_v53/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v53/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v53/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v53/methods/users_getUsers.md b/old_docs/API_docs_v53/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v53/methods/users_getUsers.md +++ b/old_docs/API_docs_v53/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/README.md b/old_docs/API_docs_v55/methods/README.md index e3c46bf3..b7175f84 100644 --- a/old_docs/API_docs_v55/methods/README.md +++ b/old_docs/API_docs_v55/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v55/methods/account_changePhone.md b/old_docs/API_docs_v55/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v55/methods/account_changePhone.md +++ b/old_docs/API_docs_v55/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_checkUsername.md b/old_docs/API_docs_v55/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v55/methods/account_checkUsername.md +++ b/old_docs/API_docs_v55/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_confirmPhone.md b/old_docs/API_docs_v55/methods/account_confirmPhone.md index 0d2dc5c6..c2526b2a 100644 --- a/old_docs/API_docs_v55/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v55/methods/account_confirmPhone.md @@ -19,14 +19,6 @@ description: account.confirmPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_HASH_INVALID|Code hash invalid| -|PHONE_CODE_EMPTY|phone_code is missing| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_getNotifySettings.md b/old_docs/API_docs_v55/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v55/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_getPasswordSettings.md b/old_docs/API_docs_v55/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v55/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_getPrivacy.md b/old_docs/API_docs_v55/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v55/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v55/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_registerDevice.md b/old_docs/API_docs_v55/methods/account_registerDevice.md index 3cc7f98d..6865551e 100644 --- a/old_docs/API_docs_v55/methods/account_registerDevice.md +++ b/old_docs/API_docs_v55/methods/account_registerDevice.md @@ -19,13 +19,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_reportPeer.md b/old_docs/API_docs_v55/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v55/methods/account_reportPeer.md +++ b/old_docs/API_docs_v55/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_resetAuthorization.md b/old_docs/API_docs_v55/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v55/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v55/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md index 4be218f2..a1f49156 100644 --- a/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md @@ -20,13 +20,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md index 009fcb09..5ad44987 100644 --- a/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md @@ -20,13 +20,6 @@ description: account.sendConfirmPhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_setAccountTTL.md b/old_docs/API_docs_v55/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v55/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v55/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_setPrivacy.md b/old_docs/API_docs_v55/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v55/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v55/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_unregisterDevice.md b/old_docs/API_docs_v55/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v55/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v55/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_updateNotifySettings.md b/old_docs/API_docs_v55/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v55/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_updateProfile.md b/old_docs/API_docs_v55/methods/account_updateProfile.md index a50eaea5..531bbb02 100644 --- a/old_docs/API_docs_v55/methods/account_updateProfile.md +++ b/old_docs/API_docs_v55/methods/account_updateProfile.md @@ -20,14 +20,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/account_updateUsername.md b/old_docs/API_docs_v55/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v55/methods/account_updateUsername.md +++ b/old_docs/API_docs_v55/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_cancelCode.md b/old_docs/API_docs_v55/methods/auth_cancelCode.md index dc390329..cc93fff5 100644 --- a/old_docs/API_docs_v55/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v55/methods/auth_cancelCode.md @@ -19,13 +19,6 @@ description: auth.cancelCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_checkPassword.md b/old_docs/API_docs_v55/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v55/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v55/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_checkPhone.md b/old_docs/API_docs_v55/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v55/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v55/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_exportAuthorization.md b/old_docs/API_docs_v55/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v55/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_importAuthorization.md b/old_docs/API_docs_v55/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v55/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_recoverPassword.md b/old_docs/API_docs_v55/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v55/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v55/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_resendCode.md b/old_docs/API_docs_v55/methods/auth_resendCode.md index 14d08ddd..92f7aa30 100644 --- a/old_docs/API_docs_v55/methods/auth_resendCode.md +++ b/old_docs/API_docs_v55/methods/auth_resendCode.md @@ -19,13 +19,6 @@ description: auth.resendCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_sendInvites.md b/old_docs/API_docs_v55/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v55/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v55/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_checkUsername.md b/old_docs/API_docs_v55/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v55/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v55/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_createChannel.md b/old_docs/API_docs_v55/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v55/methods/channels_createChannel.md +++ b/old_docs/API_docs_v55/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_deleteChannel.md b/old_docs/API_docs_v55/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v55/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_deleteMessages.md b/old_docs/API_docs_v55/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v55/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_editAbout.md b/old_docs/API_docs_v55/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v55/methods/channels_editAbout.md +++ b/old_docs/API_docs_v55/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_editAdmin.md b/old_docs/API_docs_v55/methods/channels_editAdmin.md index a0a6eb30..cb821297 100644 --- a/old_docs/API_docs_v55/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v55/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_editPhoto.md b/old_docs/API_docs_v55/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v55/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v55/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_editTitle.md b/old_docs/API_docs_v55/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v55/methods/channels_editTitle.md +++ b/old_docs/API_docs_v55/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_exportInvite.md b/old_docs/API_docs_v55/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v55/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v55/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_exportMessageLink.md b/old_docs/API_docs_v55/methods/channels_exportMessageLink.md index 9831c9c0..9e7135ab 100644 --- a/old_docs/API_docs_v55/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v55/methods/channels_exportMessageLink.md @@ -19,13 +19,6 @@ description: channels.exportMessageLink parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_getChannels.md b/old_docs/API_docs_v55/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v55/methods/channels_getChannels.md +++ b/old_docs/API_docs_v55/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_getMessages.md b/old_docs/API_docs_v55/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v55/methods/channels_getMessages.md +++ b/old_docs/API_docs_v55/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_getParticipant.md b/old_docs/API_docs_v55/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v55/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v55/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_joinChannel.md b/old_docs/API_docs_v55/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v55/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v55/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_leaveChannel.md b/old_docs/API_docs_v55/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v55/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v55/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_readHistory.md b/old_docs/API_docs_v55/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v55/methods/channels_readHistory.md +++ b/old_docs/API_docs_v55/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_reportSpam.md b/old_docs/API_docs_v55/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v55/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v55/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_toggleInvites.md b/old_docs/API_docs_v55/methods/channels_toggleInvites.md index d84339b2..0733d419 100644 --- a/old_docs/API_docs_v55/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v55/methods/channels_toggleInvites.md @@ -19,14 +19,6 @@ description: channels.toggleInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_toggleSignatures.md b/old_docs/API_docs_v55/methods/channels_toggleSignatures.md index a214b849..3056eaee 100644 --- a/old_docs/API_docs_v55/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v55/methods/channels_toggleSignatures.md @@ -19,13 +19,6 @@ description: channels.toggleSignatures parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md index 7376df10..d2314d85 100644 --- a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md @@ -20,15 +20,6 @@ description: channels.updatePinnedMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_updateUsername.md b/old_docs/API_docs_v55/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v55/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v55/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_block.md b/old_docs/API_docs_v55/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v55/methods/contacts_block.md +++ b/old_docs/API_docs_v55/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_deleteContact.md b/old_docs/API_docs_v55/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v55/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v55/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_deleteContacts.md b/old_docs/API_docs_v55/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v55/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v55/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_getTopPeers.md b/old_docs/API_docs_v55/methods/contacts_getTopPeers.md index 1caa1d77..60967d06 100644 --- a/old_docs/API_docs_v55/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v55/methods/contacts_getTopPeers.md @@ -25,13 +25,6 @@ description: contacts.getTopPeers parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TYPES_EMPTY|The types field is empty| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_importCard.md b/old_docs/API_docs_v55/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v55/methods/contacts_importCard.md +++ b/old_docs/API_docs_v55/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md index 738494b2..2f784189 100644 --- a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md @@ -19,13 +19,6 @@ description: contacts.resetTopPeerRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_search.md b/old_docs/API_docs_v55/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v55/methods/contacts_search.md +++ b/old_docs/API_docs_v55/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_unblock.md b/old_docs/API_docs_v55/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v55/methods/contacts_unblock.md +++ b/old_docs/API_docs_v55/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/initConnection.md b/old_docs/API_docs_v55/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v55/methods/initConnection.md +++ b/old_docs/API_docs_v55/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/invokeWithLayer.md b/old_docs/API_docs_v55/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v55/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v55/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_addChatUser.md b/old_docs/API_docs_v55/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v55/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v55/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_createChat.md b/old_docs/API_docs_v55/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v55/methods/messages_createChat.md +++ b/old_docs/API_docs_v55/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_deleteHistory.md b/old_docs/API_docs_v55/methods/messages_deleteHistory.md index ce6ba6e7..fb9b7763 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v55/methods/messages_deleteHistory.md @@ -20,13 +20,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_deleteMessages.md b/old_docs/API_docs_v55/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v55/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_editChatAdmin.md b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_editChatTitle.md b/old_docs/API_docs_v55/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v55/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md index 621c81a3..083d4a61 100644 --- a/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md @@ -23,14 +23,6 @@ description: messages.editInlineBotMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_editMessage.md b/old_docs/API_docs_v55/methods/messages_editMessage.md index 8bc79038..a2766336 100644 --- a/old_docs/API_docs_v55/methods/messages_editMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editMessage.md @@ -24,20 +24,6 @@ description: messages.editMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessage.md b/old_docs/API_docs_v55/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessages.md b/old_docs/API_docs_v55/methods/messages_forwardMessages.md index 851d132d..c06dc523 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessages.md @@ -22,31 +22,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md index 9afb2e6a..d41d1ab6 100644 --- a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md @@ -20,16 +20,6 @@ description: messages.getBotCallbackAnswer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getChats.md b/old_docs/API_docs_v55/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v55/methods/messages_getChats.md +++ b/old_docs/API_docs_v55/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getDhConfig.md b/old_docs/API_docs_v55/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v55/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v55/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getDialogs.md b/old_docs/API_docs_v55/methods/messages_getDialogs.md index 7d57d188..d59c4955 100644 --- a/old_docs/API_docs_v55/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v55/methods/messages_getDialogs.md @@ -21,15 +21,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getHistory.md b/old_docs/API_docs_v55/methods/messages_getHistory.md index f6db78c4..273eb6a9 100644 --- a/old_docs/API_docs_v55/methods/messages_getHistory.md +++ b/old_docs/API_docs_v55/methods/messages_getHistory.md @@ -24,18 +24,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md index ad41660e..f5da1c5a 100644 --- a/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md @@ -22,15 +22,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getMessageEditData.md b/old_docs/API_docs_v55/methods/messages_getMessageEditData.md index 4e20a108..ee07fd74 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v55/methods/messages_getMessageEditData.md @@ -19,14 +19,6 @@ description: messages.getMessageEditData parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md index 3da60038..e388e309 100644 --- a/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md @@ -18,14 +18,6 @@ description: messages.getPeerDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getPeerSettings.md b/old_docs/API_docs_v55/methods/messages_getPeerSettings.md index d3e3cfc3..26776c43 100644 --- a/old_docs/API_docs_v55/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v55/methods/messages_getPeerSettings.md @@ -18,14 +18,6 @@ description: messages.getPeerSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getStickerSet.md b/old_docs/API_docs_v55/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v55/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_hideReportSpam.md b/old_docs/API_docs_v55/methods/messages_hideReportSpam.md index 2dfe4dd7..20bc6f18 100644 --- a/old_docs/API_docs_v55/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v55/methods/messages_hideReportSpam.md @@ -18,13 +18,6 @@ description: messages.hideReportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_importChatInvite.md b/old_docs/API_docs_v55/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v55/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_installStickerSet.md b/old_docs/API_docs_v55/methods/messages_installStickerSet.md index 3dde52a7..6073eb13 100644 --- a/old_docs/API_docs_v55/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_migrateChat.md b/old_docs/API_docs_v55/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v55/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v55/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_readHistory.md b/old_docs/API_docs_v55/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v55/methods/messages_readHistory.md +++ b/old_docs/API_docs_v55/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_receivedQueue.md b/old_docs/API_docs_v55/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v55/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v55/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_reportSpam.md b/old_docs/API_docs_v55/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v55/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v55/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_saveDraft.md b/old_docs/API_docs_v55/methods/messages_saveDraft.md index 42308b46..ef5e65c5 100644 --- a/old_docs/API_docs_v55/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v55/methods/messages_saveDraft.md @@ -23,13 +23,6 @@ description: messages.saveDraft parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_saveGif.md b/old_docs/API_docs_v55/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v55/methods/messages_saveGif.md +++ b/old_docs/API_docs_v55/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md index 5e74b88f..e430c512 100644 --- a/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md @@ -19,13 +19,6 @@ description: messages.saveRecentSticker parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKER_ID_INVALID|The provided sticker ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_search.md b/old_docs/API_docs_v55/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v55/methods/messages_search.md +++ b/old_docs/API_docs_v55/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_searchGifs.md b/old_docs/API_docs_v55/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v55/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v55/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_searchGlobal.md b/old_docs/API_docs_v55/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v55/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v55/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md index 8a91e882..6ab41f50 100644 --- a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md @@ -24,15 +24,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendMedia.md b/old_docs/API_docs_v55/methods/messages_sendMedia.md index 6c5e65d5..68e2c41b 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v55/methods/messages_sendMedia.md @@ -24,27 +24,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendMessage.md b/old_docs/API_docs_v55/methods/messages_sendMessage.md index f9f2aa8a..cabccdb3 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v55/methods/messages_sendMessage.md @@ -27,31 +27,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md index fb10afe1..cf6845b7 100644 --- a/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md @@ -21,13 +21,6 @@ description: messages.setBotCallbackAnswer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md index 8b5625f3..cf74e5e4 100644 --- a/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md @@ -24,23 +24,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_setTyping.md b/old_docs/API_docs_v55/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v55/methods/messages_setTyping.md +++ b/old_docs/API_docs_v55/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_startBot.md b/old_docs/API_docs_v55/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v55/methods/messages_startBot.md +++ b/old_docs/API_docs_v55/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/photos_getUserPhotos.md b/old_docs/API_docs_v55/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v55/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v55/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md index ae20fdfc..790f5cb0 100644 --- a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md @@ -21,17 +21,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v55/methods/users_getUsers.md b/old_docs/API_docs_v55/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v55/methods/users_getUsers.md +++ b/old_docs/API_docs_v55/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/README.md b/old_docs/API_docs_v57/methods/README.md index 5b370094..966e96f0 100644 --- a/old_docs/API_docs_v57/methods/README.md +++ b/old_docs/API_docs_v57/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v57/methods/account_changePhone.md b/old_docs/API_docs_v57/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v57/methods/account_changePhone.md +++ b/old_docs/API_docs_v57/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_checkUsername.md b/old_docs/API_docs_v57/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v57/methods/account_checkUsername.md +++ b/old_docs/API_docs_v57/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_confirmPhone.md b/old_docs/API_docs_v57/methods/account_confirmPhone.md index 0d2dc5c6..c2526b2a 100644 --- a/old_docs/API_docs_v57/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v57/methods/account_confirmPhone.md @@ -19,14 +19,6 @@ description: account.confirmPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_HASH_INVALID|Code hash invalid| -|PHONE_CODE_EMPTY|phone_code is missing| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_getNotifySettings.md b/old_docs/API_docs_v57/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v57/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_getPasswordSettings.md b/old_docs/API_docs_v57/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v57/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_getPrivacy.md b/old_docs/API_docs_v57/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v57/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v57/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_registerDevice.md b/old_docs/API_docs_v57/methods/account_registerDevice.md index 3cc7f98d..6865551e 100644 --- a/old_docs/API_docs_v57/methods/account_registerDevice.md +++ b/old_docs/API_docs_v57/methods/account_registerDevice.md @@ -19,13 +19,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_reportPeer.md b/old_docs/API_docs_v57/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v57/methods/account_reportPeer.md +++ b/old_docs/API_docs_v57/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_resetAuthorization.md b/old_docs/API_docs_v57/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v57/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v57/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md index 4be218f2..a1f49156 100644 --- a/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md @@ -20,13 +20,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md index 009fcb09..5ad44987 100644 --- a/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md @@ -20,13 +20,6 @@ description: account.sendConfirmPhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_setAccountTTL.md b/old_docs/API_docs_v57/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v57/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v57/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_setPrivacy.md b/old_docs/API_docs_v57/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v57/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v57/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_unregisterDevice.md b/old_docs/API_docs_v57/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v57/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v57/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_updateNotifySettings.md b/old_docs/API_docs_v57/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v57/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_updateProfile.md b/old_docs/API_docs_v57/methods/account_updateProfile.md index a50eaea5..531bbb02 100644 --- a/old_docs/API_docs_v57/methods/account_updateProfile.md +++ b/old_docs/API_docs_v57/methods/account_updateProfile.md @@ -20,14 +20,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/account_updateUsername.md b/old_docs/API_docs_v57/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v57/methods/account_updateUsername.md +++ b/old_docs/API_docs_v57/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_cancelCode.md b/old_docs/API_docs_v57/methods/auth_cancelCode.md index dc390329..cc93fff5 100644 --- a/old_docs/API_docs_v57/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v57/methods/auth_cancelCode.md @@ -19,13 +19,6 @@ description: auth.cancelCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_checkPassword.md b/old_docs/API_docs_v57/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v57/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v57/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_checkPhone.md b/old_docs/API_docs_v57/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v57/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v57/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_exportAuthorization.md b/old_docs/API_docs_v57/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v57/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_importAuthorization.md b/old_docs/API_docs_v57/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v57/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_recoverPassword.md b/old_docs/API_docs_v57/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v57/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v57/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_resendCode.md b/old_docs/API_docs_v57/methods/auth_resendCode.md index 14d08ddd..92f7aa30 100644 --- a/old_docs/API_docs_v57/methods/auth_resendCode.md +++ b/old_docs/API_docs_v57/methods/auth_resendCode.md @@ -19,13 +19,6 @@ description: auth.resendCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_sendInvites.md b/old_docs/API_docs_v57/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v57/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v57/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_checkUsername.md b/old_docs/API_docs_v57/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v57/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v57/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_createChannel.md b/old_docs/API_docs_v57/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v57/methods/channels_createChannel.md +++ b/old_docs/API_docs_v57/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_deleteChannel.md b/old_docs/API_docs_v57/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v57/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_deleteMessages.md b/old_docs/API_docs_v57/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v57/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_editAbout.md b/old_docs/API_docs_v57/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v57/methods/channels_editAbout.md +++ b/old_docs/API_docs_v57/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_editAdmin.md b/old_docs/API_docs_v57/methods/channels_editAdmin.md index a0a6eb30..cb821297 100644 --- a/old_docs/API_docs_v57/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v57/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_editPhoto.md b/old_docs/API_docs_v57/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v57/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v57/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_editTitle.md b/old_docs/API_docs_v57/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v57/methods/channels_editTitle.md +++ b/old_docs/API_docs_v57/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_exportInvite.md b/old_docs/API_docs_v57/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v57/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v57/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_exportMessageLink.md b/old_docs/API_docs_v57/methods/channels_exportMessageLink.md index 9831c9c0..9e7135ab 100644 --- a/old_docs/API_docs_v57/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v57/methods/channels_exportMessageLink.md @@ -19,13 +19,6 @@ description: channels.exportMessageLink parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_getChannels.md b/old_docs/API_docs_v57/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v57/methods/channels_getChannels.md +++ b/old_docs/API_docs_v57/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_getMessages.md b/old_docs/API_docs_v57/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v57/methods/channels_getMessages.md +++ b/old_docs/API_docs_v57/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_getParticipant.md b/old_docs/API_docs_v57/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v57/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v57/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_joinChannel.md b/old_docs/API_docs_v57/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v57/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v57/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_leaveChannel.md b/old_docs/API_docs_v57/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v57/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v57/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_readHistory.md b/old_docs/API_docs_v57/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v57/methods/channels_readHistory.md +++ b/old_docs/API_docs_v57/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_reportSpam.md b/old_docs/API_docs_v57/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v57/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v57/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_toggleInvites.md b/old_docs/API_docs_v57/methods/channels_toggleInvites.md index d84339b2..0733d419 100644 --- a/old_docs/API_docs_v57/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v57/methods/channels_toggleInvites.md @@ -19,14 +19,6 @@ description: channels.toggleInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_toggleSignatures.md b/old_docs/API_docs_v57/methods/channels_toggleSignatures.md index a214b849..3056eaee 100644 --- a/old_docs/API_docs_v57/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v57/methods/channels_toggleSignatures.md @@ -19,13 +19,6 @@ description: channels.toggleSignatures parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md index 7376df10..d2314d85 100644 --- a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md @@ -20,15 +20,6 @@ description: channels.updatePinnedMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_updateUsername.md b/old_docs/API_docs_v57/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v57/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v57/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_block.md b/old_docs/API_docs_v57/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v57/methods/contacts_block.md +++ b/old_docs/API_docs_v57/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_deleteContact.md b/old_docs/API_docs_v57/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v57/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v57/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_deleteContacts.md b/old_docs/API_docs_v57/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v57/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v57/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_getTopPeers.md b/old_docs/API_docs_v57/methods/contacts_getTopPeers.md index 1caa1d77..60967d06 100644 --- a/old_docs/API_docs_v57/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v57/methods/contacts_getTopPeers.md @@ -25,13 +25,6 @@ description: contacts.getTopPeers parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TYPES_EMPTY|The types field is empty| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_importCard.md b/old_docs/API_docs_v57/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v57/methods/contacts_importCard.md +++ b/old_docs/API_docs_v57/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md index 738494b2..2f784189 100644 --- a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md @@ -19,13 +19,6 @@ description: contacts.resetTopPeerRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_search.md b/old_docs/API_docs_v57/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v57/methods/contacts_search.md +++ b/old_docs/API_docs_v57/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_unblock.md b/old_docs/API_docs_v57/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v57/methods/contacts_unblock.md +++ b/old_docs/API_docs_v57/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/initConnection.md b/old_docs/API_docs_v57/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v57/methods/initConnection.md +++ b/old_docs/API_docs_v57/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/invokeWithLayer.md b/old_docs/API_docs_v57/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v57/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v57/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_addChatUser.md b/old_docs/API_docs_v57/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v57/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v57/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_createChat.md b/old_docs/API_docs_v57/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v57/methods/messages_createChat.md +++ b/old_docs/API_docs_v57/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_deleteHistory.md b/old_docs/API_docs_v57/methods/messages_deleteHistory.md index ce6ba6e7..fb9b7763 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v57/methods/messages_deleteHistory.md @@ -20,13 +20,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_deleteMessages.md b/old_docs/API_docs_v57/methods/messages_deleteMessages.md index 65dbbc4a..6ff68f5b 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v57/methods/messages_deleteMessages.md @@ -18,13 +18,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_editChatAdmin.md b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_editChatTitle.md b/old_docs/API_docs_v57/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v57/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md index 621c81a3..083d4a61 100644 --- a/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md @@ -23,14 +23,6 @@ description: messages.editInlineBotMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_editMessage.md b/old_docs/API_docs_v57/methods/messages_editMessage.md index 8bc79038..a2766336 100644 --- a/old_docs/API_docs_v57/methods/messages_editMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editMessage.md @@ -24,20 +24,6 @@ description: messages.editMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessage.md b/old_docs/API_docs_v57/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessages.md b/old_docs/API_docs_v57/methods/messages_forwardMessages.md index e08cc5ba..8b91a208 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessages.md @@ -23,31 +23,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md index 433144c3..9d9470d0 100644 --- a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md @@ -21,16 +21,6 @@ description: messages.getBotCallbackAnswer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getChats.md b/old_docs/API_docs_v57/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v57/methods/messages_getChats.md +++ b/old_docs/API_docs_v57/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getDhConfig.md b/old_docs/API_docs_v57/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v57/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v57/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getDialogs.md b/old_docs/API_docs_v57/methods/messages_getDialogs.md index 7d57d188..d59c4955 100644 --- a/old_docs/API_docs_v57/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v57/methods/messages_getDialogs.md @@ -21,15 +21,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getGameHighScores.md b/old_docs/API_docs_v57/methods/messages_getGameHighScores.md index 935bb95a..d558df8a 100644 --- a/old_docs/API_docs_v57/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v57/methods/messages_getGameHighScores.md @@ -20,14 +20,6 @@ description: messages.getGameHighScores parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getHistory.md b/old_docs/API_docs_v57/methods/messages_getHistory.md index f6db78c4..273eb6a9 100644 --- a/old_docs/API_docs_v57/methods/messages_getHistory.md +++ b/old_docs/API_docs_v57/methods/messages_getHistory.md @@ -24,18 +24,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md index ad41660e..f5da1c5a 100644 --- a/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md @@ -22,15 +22,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md index 7cc04d0d..24b512ca 100644 --- a/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md @@ -19,14 +19,6 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getMessageEditData.md b/old_docs/API_docs_v57/methods/messages_getMessageEditData.md index 4e20a108..ee07fd74 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v57/methods/messages_getMessageEditData.md @@ -19,14 +19,6 @@ description: messages.getMessageEditData parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md index 3da60038..e388e309 100644 --- a/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md @@ -18,14 +18,6 @@ description: messages.getPeerDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getPeerSettings.md b/old_docs/API_docs_v57/methods/messages_getPeerSettings.md index d3e3cfc3..26776c43 100644 --- a/old_docs/API_docs_v57/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v57/methods/messages_getPeerSettings.md @@ -18,14 +18,6 @@ description: messages.getPeerSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getStickerSet.md b/old_docs/API_docs_v57/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v57/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_hideReportSpam.md b/old_docs/API_docs_v57/methods/messages_hideReportSpam.md index 2dfe4dd7..20bc6f18 100644 --- a/old_docs/API_docs_v57/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v57/methods/messages_hideReportSpam.md @@ -18,13 +18,6 @@ description: messages.hideReportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_importChatInvite.md b/old_docs/API_docs_v57/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v57/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_installStickerSet.md b/old_docs/API_docs_v57/methods/messages_installStickerSet.md index 3dde52a7..6073eb13 100644 --- a/old_docs/API_docs_v57/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_migrateChat.md b/old_docs/API_docs_v57/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v57/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v57/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_readHistory.md b/old_docs/API_docs_v57/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v57/methods/messages_readHistory.md +++ b/old_docs/API_docs_v57/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_receivedQueue.md b/old_docs/API_docs_v57/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v57/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v57/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_reportSpam.md b/old_docs/API_docs_v57/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v57/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v57/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_saveDraft.md b/old_docs/API_docs_v57/methods/messages_saveDraft.md index 42308b46..ef5e65c5 100644 --- a/old_docs/API_docs_v57/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v57/methods/messages_saveDraft.md @@ -23,13 +23,6 @@ description: messages.saveDraft parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_saveGif.md b/old_docs/API_docs_v57/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v57/methods/messages_saveGif.md +++ b/old_docs/API_docs_v57/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md index 8d45be5e..cb4f98b3 100644 --- a/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md @@ -20,13 +20,6 @@ description: messages.saveRecentSticker parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKER_ID_INVALID|The provided sticker ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_search.md b/old_docs/API_docs_v57/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v57/methods/messages_search.md +++ b/old_docs/API_docs_v57/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_searchGifs.md b/old_docs/API_docs_v57/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v57/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v57/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_searchGlobal.md b/old_docs/API_docs_v57/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v57/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v57/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md index 8a91e882..6ab41f50 100644 --- a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md @@ -24,15 +24,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendMedia.md b/old_docs/API_docs_v57/methods/messages_sendMedia.md index 6c5e65d5..68e2c41b 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v57/methods/messages_sendMedia.md @@ -24,27 +24,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendMessage.md b/old_docs/API_docs_v57/methods/messages_sendMessage.md index f9f2aa8a..cabccdb3 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v57/methods/messages_sendMessage.md @@ -27,31 +27,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md index fb10afe1..cf6845b7 100644 --- a/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md @@ -21,13 +21,6 @@ description: messages.setBotCallbackAnswer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setGameScore.md b/old_docs/API_docs_v57/methods/messages_setGameScore.md index 795974e9..ffde63a4 100644 --- a/old_docs/API_docs_v57/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v57/methods/messages_setGameScore.md @@ -22,14 +22,6 @@ description: messages.setGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md index 8b5625f3..cf74e5e4 100644 --- a/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md @@ -24,23 +24,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md index a91ad6a7..fa7f1a55 100644 --- a/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md @@ -21,14 +21,6 @@ description: messages.setInlineGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setTyping.md b/old_docs/API_docs_v57/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v57/methods/messages_setTyping.md +++ b/old_docs/API_docs_v57/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_startBot.md b/old_docs/API_docs_v57/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v57/methods/messages_startBot.md +++ b/old_docs/API_docs_v57/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/photos_getUserPhotos.md b/old_docs/API_docs_v57/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v57/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v57/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md index 58541f23..6de32dae 100644 --- a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md @@ -18,17 +18,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v57/methods/users_getUsers.md b/old_docs/API_docs_v57/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v57/methods/users_getUsers.md +++ b/old_docs/API_docs_v57/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/README.md b/old_docs/API_docs_v62/methods/README.md index 8a6e861d..3e7510f1 100644 --- a/old_docs/API_docs_v62/methods/README.md +++ b/old_docs/API_docs_v62/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v62/methods/account_changePhone.md b/old_docs/API_docs_v62/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v62/methods/account_changePhone.md +++ b/old_docs/API_docs_v62/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_checkUsername.md b/old_docs/API_docs_v62/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v62/methods/account_checkUsername.md +++ b/old_docs/API_docs_v62/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_confirmPhone.md b/old_docs/API_docs_v62/methods/account_confirmPhone.md index 0d2dc5c6..c2526b2a 100644 --- a/old_docs/API_docs_v62/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v62/methods/account_confirmPhone.md @@ -19,14 +19,6 @@ description: account.confirmPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_HASH_INVALID|Code hash invalid| -|PHONE_CODE_EMPTY|phone_code is missing| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_getNotifySettings.md b/old_docs/API_docs_v62/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v62/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_getPasswordSettings.md b/old_docs/API_docs_v62/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v62/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_getPrivacy.md b/old_docs/API_docs_v62/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v62/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v62/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_registerDevice.md b/old_docs/API_docs_v62/methods/account_registerDevice.md index 3cc7f98d..6865551e 100644 --- a/old_docs/API_docs_v62/methods/account_registerDevice.md +++ b/old_docs/API_docs_v62/methods/account_registerDevice.md @@ -19,13 +19,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_reportPeer.md b/old_docs/API_docs_v62/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v62/methods/account_reportPeer.md +++ b/old_docs/API_docs_v62/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_resetAuthorization.md b/old_docs/API_docs_v62/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v62/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v62/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md index 4be218f2..a1f49156 100644 --- a/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md @@ -20,13 +20,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md index 009fcb09..5ad44987 100644 --- a/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md @@ -20,13 +20,6 @@ description: account.sendConfirmPhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_setAccountTTL.md b/old_docs/API_docs_v62/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v62/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v62/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_setPrivacy.md b/old_docs/API_docs_v62/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v62/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v62/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_unregisterDevice.md b/old_docs/API_docs_v62/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v62/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v62/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_updateNotifySettings.md b/old_docs/API_docs_v62/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v62/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_updateProfile.md b/old_docs/API_docs_v62/methods/account_updateProfile.md index a50eaea5..531bbb02 100644 --- a/old_docs/API_docs_v62/methods/account_updateProfile.md +++ b/old_docs/API_docs_v62/methods/account_updateProfile.md @@ -20,14 +20,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/account_updateUsername.md b/old_docs/API_docs_v62/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v62/methods/account_updateUsername.md +++ b/old_docs/API_docs_v62/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_cancelCode.md b/old_docs/API_docs_v62/methods/auth_cancelCode.md index dc390329..cc93fff5 100644 --- a/old_docs/API_docs_v62/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v62/methods/auth_cancelCode.md @@ -19,13 +19,6 @@ description: auth.cancelCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_checkPassword.md b/old_docs/API_docs_v62/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v62/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v62/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_checkPhone.md b/old_docs/API_docs_v62/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v62/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v62/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_exportAuthorization.md b/old_docs/API_docs_v62/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v62/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_importAuthorization.md b/old_docs/API_docs_v62/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v62/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_recoverPassword.md b/old_docs/API_docs_v62/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v62/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v62/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_resendCode.md b/old_docs/API_docs_v62/methods/auth_resendCode.md index 14d08ddd..92f7aa30 100644 --- a/old_docs/API_docs_v62/methods/auth_resendCode.md +++ b/old_docs/API_docs_v62/methods/auth_resendCode.md @@ -19,13 +19,6 @@ description: auth.resendCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_sendInvites.md b/old_docs/API_docs_v62/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v62/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v62/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_checkUsername.md b/old_docs/API_docs_v62/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v62/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v62/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_createChannel.md b/old_docs/API_docs_v62/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v62/methods/channels_createChannel.md +++ b/old_docs/API_docs_v62/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_deleteChannel.md b/old_docs/API_docs_v62/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v62/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_deleteMessages.md b/old_docs/API_docs_v62/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v62/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_editAbout.md b/old_docs/API_docs_v62/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v62/methods/channels_editAbout.md +++ b/old_docs/API_docs_v62/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_editAdmin.md b/old_docs/API_docs_v62/methods/channels_editAdmin.md index a0a6eb30..cb821297 100644 --- a/old_docs/API_docs_v62/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v62/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_editPhoto.md b/old_docs/API_docs_v62/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v62/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v62/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_editTitle.md b/old_docs/API_docs_v62/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v62/methods/channels_editTitle.md +++ b/old_docs/API_docs_v62/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_exportInvite.md b/old_docs/API_docs_v62/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v62/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v62/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_exportMessageLink.md b/old_docs/API_docs_v62/methods/channels_exportMessageLink.md index 9831c9c0..9e7135ab 100644 --- a/old_docs/API_docs_v62/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v62/methods/channels_exportMessageLink.md @@ -19,13 +19,6 @@ description: channels.exportMessageLink parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_getChannels.md b/old_docs/API_docs_v62/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v62/methods/channels_getChannels.md +++ b/old_docs/API_docs_v62/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_getMessages.md b/old_docs/API_docs_v62/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v62/methods/channels_getMessages.md +++ b/old_docs/API_docs_v62/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_getParticipant.md b/old_docs/API_docs_v62/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v62/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v62/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_joinChannel.md b/old_docs/API_docs_v62/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v62/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v62/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_leaveChannel.md b/old_docs/API_docs_v62/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v62/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v62/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_readHistory.md b/old_docs/API_docs_v62/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v62/methods/channels_readHistory.md +++ b/old_docs/API_docs_v62/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_reportSpam.md b/old_docs/API_docs_v62/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v62/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v62/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_toggleInvites.md b/old_docs/API_docs_v62/methods/channels_toggleInvites.md index d84339b2..0733d419 100644 --- a/old_docs/API_docs_v62/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v62/methods/channels_toggleInvites.md @@ -19,14 +19,6 @@ description: channels.toggleInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_toggleSignatures.md b/old_docs/API_docs_v62/methods/channels_toggleSignatures.md index a214b849..3056eaee 100644 --- a/old_docs/API_docs_v62/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v62/methods/channels_toggleSignatures.md @@ -19,13 +19,6 @@ description: channels.toggleSignatures parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md index 7376df10..d2314d85 100644 --- a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md @@ -20,15 +20,6 @@ description: channels.updatePinnedMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_updateUsername.md b/old_docs/API_docs_v62/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v62/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v62/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_block.md b/old_docs/API_docs_v62/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v62/methods/contacts_block.md +++ b/old_docs/API_docs_v62/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_deleteContact.md b/old_docs/API_docs_v62/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v62/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v62/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_deleteContacts.md b/old_docs/API_docs_v62/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v62/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v62/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_getTopPeers.md b/old_docs/API_docs_v62/methods/contacts_getTopPeers.md index 1caa1d77..60967d06 100644 --- a/old_docs/API_docs_v62/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v62/methods/contacts_getTopPeers.md @@ -25,13 +25,6 @@ description: contacts.getTopPeers parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TYPES_EMPTY|The types field is empty| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_importCard.md b/old_docs/API_docs_v62/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v62/methods/contacts_importCard.md +++ b/old_docs/API_docs_v62/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md index 738494b2..2f784189 100644 --- a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md @@ -19,13 +19,6 @@ description: contacts.resetTopPeerRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_search.md b/old_docs/API_docs_v62/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v62/methods/contacts_search.md +++ b/old_docs/API_docs_v62/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_unblock.md b/old_docs/API_docs_v62/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v62/methods/contacts_unblock.md +++ b/old_docs/API_docs_v62/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/initConnection.md b/old_docs/API_docs_v62/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v62/methods/initConnection.md +++ b/old_docs/API_docs_v62/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/invokeWithLayer.md b/old_docs/API_docs_v62/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v62/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v62/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_addChatUser.md b/old_docs/API_docs_v62/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v62/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v62/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_createChat.md b/old_docs/API_docs_v62/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v62/methods/messages_createChat.md +++ b/old_docs/API_docs_v62/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_deleteHistory.md b/old_docs/API_docs_v62/methods/messages_deleteHistory.md index ce6ba6e7..fb9b7763 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v62/methods/messages_deleteHistory.md @@ -20,13 +20,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_deleteMessages.md b/old_docs/API_docs_v62/methods/messages_deleteMessages.md index 2b88a73f..2949f64a 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v62/methods/messages_deleteMessages.md @@ -19,13 +19,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_editChatAdmin.md b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_editChatTitle.md b/old_docs/API_docs_v62/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v62/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md index 621c81a3..083d4a61 100644 --- a/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md @@ -23,14 +23,6 @@ description: messages.editInlineBotMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_editMessage.md b/old_docs/API_docs_v62/methods/messages_editMessage.md index 8bc79038..a2766336 100644 --- a/old_docs/API_docs_v62/methods/messages_editMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editMessage.md @@ -24,20 +24,6 @@ description: messages.editMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessage.md b/old_docs/API_docs_v62/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessages.md b/old_docs/API_docs_v62/methods/messages_forwardMessages.md index e08cc5ba..8b91a208 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessages.md @@ -23,31 +23,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md index 433144c3..9d9470d0 100644 --- a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md @@ -21,16 +21,6 @@ description: messages.getBotCallbackAnswer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getChats.md b/old_docs/API_docs_v62/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v62/methods/messages_getChats.md +++ b/old_docs/API_docs_v62/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getCommonChats.md b/old_docs/API_docs_v62/methods/messages_getCommonChats.md index 0c601ca9..985a52df 100644 --- a/old_docs/API_docs_v62/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v62/methods/messages_getCommonChats.md @@ -20,13 +20,6 @@ description: messages.getCommonChats parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getDhConfig.md b/old_docs/API_docs_v62/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v62/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v62/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getDialogs.md b/old_docs/API_docs_v62/methods/messages_getDialogs.md index 27f0d655..e38aa996 100644 --- a/old_docs/API_docs_v62/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getDialogs.md @@ -22,15 +22,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getGameHighScores.md b/old_docs/API_docs_v62/methods/messages_getGameHighScores.md index 935bb95a..d558df8a 100644 --- a/old_docs/API_docs_v62/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v62/methods/messages_getGameHighScores.md @@ -20,14 +20,6 @@ description: messages.getGameHighScores parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getHistory.md b/old_docs/API_docs_v62/methods/messages_getHistory.md index f6db78c4..273eb6a9 100644 --- a/old_docs/API_docs_v62/methods/messages_getHistory.md +++ b/old_docs/API_docs_v62/methods/messages_getHistory.md @@ -24,18 +24,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md index ad41660e..f5da1c5a 100644 --- a/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md @@ -22,15 +22,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md index 7cc04d0d..24b512ca 100644 --- a/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md @@ -19,14 +19,6 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getMessageEditData.md b/old_docs/API_docs_v62/methods/messages_getMessageEditData.md index 4e20a108..ee07fd74 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v62/methods/messages_getMessageEditData.md @@ -19,14 +19,6 @@ description: messages.getMessageEditData parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md index 3da60038..e388e309 100644 --- a/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md @@ -18,14 +18,6 @@ description: messages.getPeerDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getPeerSettings.md b/old_docs/API_docs_v62/methods/messages_getPeerSettings.md index d3e3cfc3..26776c43 100644 --- a/old_docs/API_docs_v62/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v62/methods/messages_getPeerSettings.md @@ -18,14 +18,6 @@ description: messages.getPeerSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getStickerSet.md b/old_docs/API_docs_v62/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v62/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_hideReportSpam.md b/old_docs/API_docs_v62/methods/messages_hideReportSpam.md index 2dfe4dd7..20bc6f18 100644 --- a/old_docs/API_docs_v62/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v62/methods/messages_hideReportSpam.md @@ -18,13 +18,6 @@ description: messages.hideReportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_importChatInvite.md b/old_docs/API_docs_v62/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v62/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_installStickerSet.md b/old_docs/API_docs_v62/methods/messages_installStickerSet.md index 3dde52a7..6073eb13 100644 --- a/old_docs/API_docs_v62/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_migrateChat.md b/old_docs/API_docs_v62/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v62/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v62/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_readHistory.md b/old_docs/API_docs_v62/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v62/methods/messages_readHistory.md +++ b/old_docs/API_docs_v62/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_receivedQueue.md b/old_docs/API_docs_v62/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v62/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v62/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md index 30102fd7..2660b363 100644 --- a/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md @@ -19,13 +19,6 @@ description: messages.reorderPinnedDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md index 30ef3473..5764b848 100644 --- a/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md @@ -18,13 +18,6 @@ description: messages.reportEncryptedSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_reportSpam.md b/old_docs/API_docs_v62/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v62/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v62/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_saveDraft.md b/old_docs/API_docs_v62/methods/messages_saveDraft.md index 42308b46..ef5e65c5 100644 --- a/old_docs/API_docs_v62/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v62/methods/messages_saveDraft.md @@ -23,13 +23,6 @@ description: messages.saveDraft parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_saveGif.md b/old_docs/API_docs_v62/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v62/methods/messages_saveGif.md +++ b/old_docs/API_docs_v62/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md index 8d45be5e..cb4f98b3 100644 --- a/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md @@ -20,13 +20,6 @@ description: messages.saveRecentSticker parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKER_ID_INVALID|The provided sticker ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_search.md b/old_docs/API_docs_v62/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v62/methods/messages_search.md +++ b/old_docs/API_docs_v62/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_searchGifs.md b/old_docs/API_docs_v62/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v62/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v62/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_searchGlobal.md b/old_docs/API_docs_v62/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v62/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v62/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md index 8a91e882..6ab41f50 100644 --- a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md @@ -24,15 +24,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendMedia.md b/old_docs/API_docs_v62/methods/messages_sendMedia.md index 6c5e65d5..68e2c41b 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v62/methods/messages_sendMedia.md @@ -24,27 +24,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendMessage.md b/old_docs/API_docs_v62/methods/messages_sendMessage.md index f9f2aa8a..cabccdb3 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v62/methods/messages_sendMessage.md @@ -27,31 +27,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md index 2c51854f..ef9b8f7a 100644 --- a/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md @@ -22,13 +22,6 @@ description: messages.setBotCallbackAnswer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setGameScore.md b/old_docs/API_docs_v62/methods/messages_setGameScore.md index 3137f7c9..f16a7539 100644 --- a/old_docs/API_docs_v62/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v62/methods/messages_setGameScore.md @@ -23,14 +23,6 @@ description: messages.setGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md index 8b5625f3..cf74e5e4 100644 --- a/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md @@ -24,23 +24,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md index 36752f35..c922f937 100644 --- a/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md @@ -22,14 +22,6 @@ description: messages.setInlineGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setTyping.md b/old_docs/API_docs_v62/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v62/methods/messages_setTyping.md +++ b/old_docs/API_docs_v62/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_startBot.md b/old_docs/API_docs_v62/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v62/methods/messages_startBot.md +++ b/old_docs/API_docs_v62/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md index f35f2f40..f4506918 100644 --- a/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md @@ -19,13 +19,6 @@ description: messages.toggleDialogPin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/phone_receivedCall.md b/old_docs/API_docs_v62/methods/phone_receivedCall.md index 9d59b1ea..b06a90ad 100644 --- a/old_docs/API_docs_v62/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v62/methods/phone_receivedCall.md @@ -18,14 +18,6 @@ description: phone.receivedCall parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_ALREADY_DECLINED|The call was already declined| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/photos_getUserPhotos.md b/old_docs/API_docs_v62/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v62/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v62/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md index 58541f23..6de32dae 100644 --- a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md @@ -18,17 +18,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v62/methods/users_getUsers.md b/old_docs/API_docs_v62/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v62/methods/users_getUsers.md +++ b/old_docs/API_docs_v62/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/README.md b/old_docs/API_docs_v65/methods/README.md index 9ffe5f80..f548c313 100644 --- a/old_docs/API_docs_v65/methods/README.md +++ b/old_docs/API_docs_v65/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v65/methods/account_changePhone.md b/old_docs/API_docs_v65/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v65/methods/account_changePhone.md +++ b/old_docs/API_docs_v65/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_checkUsername.md b/old_docs/API_docs_v65/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v65/methods/account_checkUsername.md +++ b/old_docs/API_docs_v65/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_confirmPhone.md b/old_docs/API_docs_v65/methods/account_confirmPhone.md index 0d2dc5c6..c2526b2a 100644 --- a/old_docs/API_docs_v65/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v65/methods/account_confirmPhone.md @@ -19,14 +19,6 @@ description: account.confirmPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_HASH_INVALID|Code hash invalid| -|PHONE_CODE_EMPTY|phone_code is missing| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_getNotifySettings.md b/old_docs/API_docs_v65/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v65/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v65/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_getPasswordSettings.md b/old_docs/API_docs_v65/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v65/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v65/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_getPrivacy.md b/old_docs/API_docs_v65/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v65/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v65/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_getTmpPassword.md b/old_docs/API_docs_v65/methods/account_getTmpPassword.md index a6fed592..c368baf7 100644 --- a/old_docs/API_docs_v65/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v65/methods/account_getTmpPassword.md @@ -19,13 +19,6 @@ description: account.getTmpPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TMP_PASSWORD_DISABLED|The temporary password is disabled| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_registerDevice.md b/old_docs/API_docs_v65/methods/account_registerDevice.md index 3cc7f98d..6865551e 100644 --- a/old_docs/API_docs_v65/methods/account_registerDevice.md +++ b/old_docs/API_docs_v65/methods/account_registerDevice.md @@ -19,13 +19,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_reportPeer.md b/old_docs/API_docs_v65/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v65/methods/account_reportPeer.md +++ b/old_docs/API_docs_v65/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_resetAuthorization.md b/old_docs/API_docs_v65/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v65/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v65/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md index 4be218f2..a1f49156 100644 --- a/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md @@ -20,13 +20,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md index 009fcb09..5ad44987 100644 --- a/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md @@ -20,13 +20,6 @@ description: account.sendConfirmPhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_setAccountTTL.md b/old_docs/API_docs_v65/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v65/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v65/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_setPrivacy.md b/old_docs/API_docs_v65/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v65/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v65/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_unregisterDevice.md b/old_docs/API_docs_v65/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v65/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v65/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_updateNotifySettings.md b/old_docs/API_docs_v65/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v65/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v65/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_updateProfile.md b/old_docs/API_docs_v65/methods/account_updateProfile.md index a50eaea5..531bbb02 100644 --- a/old_docs/API_docs_v65/methods/account_updateProfile.md +++ b/old_docs/API_docs_v65/methods/account_updateProfile.md @@ -20,14 +20,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/account_updateUsername.md b/old_docs/API_docs_v65/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v65/methods/account_updateUsername.md +++ b/old_docs/API_docs_v65/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_cancelCode.md b/old_docs/API_docs_v65/methods/auth_cancelCode.md index dc390329..cc93fff5 100644 --- a/old_docs/API_docs_v65/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v65/methods/auth_cancelCode.md @@ -19,13 +19,6 @@ description: auth.cancelCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_checkPassword.md b/old_docs/API_docs_v65/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v65/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v65/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_checkPhone.md b/old_docs/API_docs_v65/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v65/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v65/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_exportAuthorization.md b/old_docs/API_docs_v65/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v65/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v65/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_importAuthorization.md b/old_docs/API_docs_v65/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v65/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v65/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_recoverPassword.md b/old_docs/API_docs_v65/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v65/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v65/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_resendCode.md b/old_docs/API_docs_v65/methods/auth_resendCode.md index 14d08ddd..92f7aa30 100644 --- a/old_docs/API_docs_v65/methods/auth_resendCode.md +++ b/old_docs/API_docs_v65/methods/auth_resendCode.md @@ -19,13 +19,6 @@ description: auth.resendCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_sendInvites.md b/old_docs/API_docs_v65/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v65/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v65/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md index ae1efce3..59c134d4 100644 --- a/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md @@ -19,14 +19,6 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md index 927f18c5..57a49e6e 100644 --- a/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md @@ -19,13 +19,6 @@ description: bots.sendCustomRequest parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_checkUsername.md b/old_docs/API_docs_v65/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v65/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v65/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_createChannel.md b/old_docs/API_docs_v65/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v65/methods/channels_createChannel.md +++ b/old_docs/API_docs_v65/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_deleteChannel.md b/old_docs/API_docs_v65/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v65/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_deleteMessages.md b/old_docs/API_docs_v65/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v65/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_editAbout.md b/old_docs/API_docs_v65/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v65/methods/channels_editAbout.md +++ b/old_docs/API_docs_v65/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_editAdmin.md b/old_docs/API_docs_v65/methods/channels_editAdmin.md index a0a6eb30..cb821297 100644 --- a/old_docs/API_docs_v65/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v65/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_editPhoto.md b/old_docs/API_docs_v65/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v65/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v65/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_editTitle.md b/old_docs/API_docs_v65/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v65/methods/channels_editTitle.md +++ b/old_docs/API_docs_v65/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_exportInvite.md b/old_docs/API_docs_v65/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v65/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v65/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_exportMessageLink.md b/old_docs/API_docs_v65/methods/channels_exportMessageLink.md index 9831c9c0..9e7135ab 100644 --- a/old_docs/API_docs_v65/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v65/methods/channels_exportMessageLink.md @@ -19,13 +19,6 @@ description: channels.exportMessageLink parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_getChannels.md b/old_docs/API_docs_v65/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v65/methods/channels_getChannels.md +++ b/old_docs/API_docs_v65/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_getMessages.md b/old_docs/API_docs_v65/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v65/methods/channels_getMessages.md +++ b/old_docs/API_docs_v65/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_getParticipant.md b/old_docs/API_docs_v65/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v65/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v65/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_inviteToChannel.md b/old_docs/API_docs_v65/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v65/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v65/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_joinChannel.md b/old_docs/API_docs_v65/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v65/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v65/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_leaveChannel.md b/old_docs/API_docs_v65/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v65/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v65/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_readHistory.md b/old_docs/API_docs_v65/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v65/methods/channels_readHistory.md +++ b/old_docs/API_docs_v65/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_reportSpam.md b/old_docs/API_docs_v65/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v65/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v65/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_toggleInvites.md b/old_docs/API_docs_v65/methods/channels_toggleInvites.md index d84339b2..0733d419 100644 --- a/old_docs/API_docs_v65/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v65/methods/channels_toggleInvites.md @@ -19,14 +19,6 @@ description: channels.toggleInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_toggleSignatures.md b/old_docs/API_docs_v65/methods/channels_toggleSignatures.md index a214b849..3056eaee 100644 --- a/old_docs/API_docs_v65/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v65/methods/channels_toggleSignatures.md @@ -19,13 +19,6 @@ description: channels.toggleSignatures parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md index 7376df10..d2314d85 100644 --- a/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md @@ -20,15 +20,6 @@ description: channels.updatePinnedMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_updateUsername.md b/old_docs/API_docs_v65/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v65/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v65/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_block.md b/old_docs/API_docs_v65/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v65/methods/contacts_block.md +++ b/old_docs/API_docs_v65/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_deleteContact.md b/old_docs/API_docs_v65/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v65/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v65/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_deleteContacts.md b/old_docs/API_docs_v65/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v65/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v65/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_getTopPeers.md b/old_docs/API_docs_v65/methods/contacts_getTopPeers.md index 1caa1d77..60967d06 100644 --- a/old_docs/API_docs_v65/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v65/methods/contacts_getTopPeers.md @@ -25,13 +25,6 @@ description: contacts.getTopPeers parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TYPES_EMPTY|The types field is empty| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_importCard.md b/old_docs/API_docs_v65/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v65/methods/contacts_importCard.md +++ b/old_docs/API_docs_v65/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md index 738494b2..2f784189 100644 --- a/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md @@ -19,13 +19,6 @@ description: contacts.resetTopPeerRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_search.md b/old_docs/API_docs_v65/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v65/methods/contacts_search.md +++ b/old_docs/API_docs_v65/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_unblock.md b/old_docs/API_docs_v65/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v65/methods/contacts_unblock.md +++ b/old_docs/API_docs_v65/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/initConnection.md b/old_docs/API_docs_v65/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v65/methods/initConnection.md +++ b/old_docs/API_docs_v65/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/invokeWithLayer.md b/old_docs/API_docs_v65/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v65/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v65/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_addChatUser.md b/old_docs/API_docs_v65/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v65/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v65/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_checkChatInvite.md b/old_docs/API_docs_v65/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v65/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_createChat.md b/old_docs/API_docs_v65/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v65/methods/messages_createChat.md +++ b/old_docs/API_docs_v65/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_deleteChatUser.md b/old_docs/API_docs_v65/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v65/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_deleteHistory.md b/old_docs/API_docs_v65/methods/messages_deleteHistory.md index ce6ba6e7..fb9b7763 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v65/methods/messages_deleteHistory.md @@ -20,13 +20,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_deleteMessages.md b/old_docs/API_docs_v65/methods/messages_deleteMessages.md index 2b88a73f..2949f64a 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v65/methods/messages_deleteMessages.md @@ -19,13 +19,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_editChatAdmin.md b/old_docs/API_docs_v65/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v65/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_editChatPhoto.md b/old_docs/API_docs_v65/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v65/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_editChatTitle.md b/old_docs/API_docs_v65/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v65/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md index 621c81a3..083d4a61 100644 --- a/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md @@ -23,14 +23,6 @@ description: messages.editInlineBotMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_editMessage.md b/old_docs/API_docs_v65/methods/messages_editMessage.md index 8bc79038..a2766336 100644 --- a/old_docs/API_docs_v65/methods/messages_editMessage.md +++ b/old_docs/API_docs_v65/methods/messages_editMessage.md @@ -24,20 +24,6 @@ description: messages.editMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_exportChatInvite.md b/old_docs/API_docs_v65/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v65/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessage.md b/old_docs/API_docs_v65/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessages.md b/old_docs/API_docs_v65/methods/messages_forwardMessages.md index e08cc5ba..8b91a208 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessages.md @@ -23,31 +23,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md index 433144c3..9d9470d0 100644 --- a/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md @@ -21,16 +21,6 @@ description: messages.getBotCallbackAnswer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getChats.md b/old_docs/API_docs_v65/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v65/methods/messages_getChats.md +++ b/old_docs/API_docs_v65/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getCommonChats.md b/old_docs/API_docs_v65/methods/messages_getCommonChats.md index 0c601ca9..985a52df 100644 --- a/old_docs/API_docs_v65/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v65/methods/messages_getCommonChats.md @@ -20,13 +20,6 @@ description: messages.getCommonChats parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getDhConfig.md b/old_docs/API_docs_v65/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v65/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v65/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getDialogs.md b/old_docs/API_docs_v65/methods/messages_getDialogs.md index 27f0d655..e38aa996 100644 --- a/old_docs/API_docs_v65/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_getDialogs.md @@ -22,15 +22,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getGameHighScores.md b/old_docs/API_docs_v65/methods/messages_getGameHighScores.md index 935bb95a..d558df8a 100644 --- a/old_docs/API_docs_v65/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v65/methods/messages_getGameHighScores.md @@ -20,14 +20,6 @@ description: messages.getGameHighScores parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getHistory.md b/old_docs/API_docs_v65/methods/messages_getHistory.md index f6db78c4..273eb6a9 100644 --- a/old_docs/API_docs_v65/methods/messages_getHistory.md +++ b/old_docs/API_docs_v65/methods/messages_getHistory.md @@ -24,18 +24,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md index ad41660e..f5da1c5a 100644 --- a/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md @@ -22,15 +22,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md index 7cc04d0d..24b512ca 100644 --- a/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md @@ -19,14 +19,6 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getMessageEditData.md b/old_docs/API_docs_v65/methods/messages_getMessageEditData.md index 4e20a108..ee07fd74 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v65/methods/messages_getMessageEditData.md @@ -19,14 +19,6 @@ description: messages.getMessageEditData parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getMessagesViews.md b/old_docs/API_docs_v65/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v65/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md index 3da60038..e388e309 100644 --- a/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md @@ -18,14 +18,6 @@ description: messages.getPeerDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getPeerSettings.md b/old_docs/API_docs_v65/methods/messages_getPeerSettings.md index d3e3cfc3..26776c43 100644 --- a/old_docs/API_docs_v65/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v65/methods/messages_getPeerSettings.md @@ -18,14 +18,6 @@ description: messages.getPeerSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getStickerSet.md b/old_docs/API_docs_v65/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v65/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_hideReportSpam.md b/old_docs/API_docs_v65/methods/messages_hideReportSpam.md index 2dfe4dd7..20bc6f18 100644 --- a/old_docs/API_docs_v65/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v65/methods/messages_hideReportSpam.md @@ -18,13 +18,6 @@ description: messages.hideReportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_importChatInvite.md b/old_docs/API_docs_v65/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v65/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_installStickerSet.md b/old_docs/API_docs_v65/methods/messages_installStickerSet.md index 3dde52a7..6073eb13 100644 --- a/old_docs/API_docs_v65/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_migrateChat.md b/old_docs/API_docs_v65/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v65/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v65/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_readHistory.md b/old_docs/API_docs_v65/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v65/methods/messages_readHistory.md +++ b/old_docs/API_docs_v65/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_receivedQueue.md b/old_docs/API_docs_v65/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v65/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v65/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md index 30102fd7..2660b363 100644 --- a/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md @@ -19,13 +19,6 @@ description: messages.reorderPinnedDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md index 30ef3473..5764b848 100644 --- a/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md @@ -18,13 +18,6 @@ description: messages.reportEncryptedSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_reportSpam.md b/old_docs/API_docs_v65/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v65/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v65/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_saveDraft.md b/old_docs/API_docs_v65/methods/messages_saveDraft.md index 42308b46..ef5e65c5 100644 --- a/old_docs/API_docs_v65/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v65/methods/messages_saveDraft.md @@ -23,13 +23,6 @@ description: messages.saveDraft parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_saveGif.md b/old_docs/API_docs_v65/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v65/methods/messages_saveGif.md +++ b/old_docs/API_docs_v65/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md index 8d45be5e..cb4f98b3 100644 --- a/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md @@ -20,13 +20,6 @@ description: messages.saveRecentSticker parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKER_ID_INVALID|The provided sticker ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_search.md b/old_docs/API_docs_v65/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v65/methods/messages_search.md +++ b/old_docs/API_docs_v65/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_searchGifs.md b/old_docs/API_docs_v65/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v65/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v65/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_searchGlobal.md b/old_docs/API_docs_v65/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v65/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v65/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendEncrypted.md b/old_docs/API_docs_v65/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md index 8a91e882..6ab41f50 100644 --- a/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md @@ -24,15 +24,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendMedia.md b/old_docs/API_docs_v65/methods/messages_sendMedia.md index 6c5e65d5..68e2c41b 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v65/methods/messages_sendMedia.md @@ -24,27 +24,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendMessage.md b/old_docs/API_docs_v65/methods/messages_sendMessage.md index f9f2aa8a..cabccdb3 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v65/methods/messages_sendMessage.md @@ -27,31 +27,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md index 2c51854f..ef9b8f7a 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md @@ -22,13 +22,6 @@ description: messages.setBotCallbackAnswer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md index 25ed5ed5..92bdcb9e 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md @@ -20,13 +20,6 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ERROR_TEXT_EMPTY|The provided error message is empty| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md index 49ac2896..e2c7cd45 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md @@ -20,13 +20,6 @@ description: messages.setBotShippingResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setGameScore.md b/old_docs/API_docs_v65/methods/messages_setGameScore.md index 3137f7c9..f16a7539 100644 --- a/old_docs/API_docs_v65/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v65/methods/messages_setGameScore.md @@ -23,14 +23,6 @@ description: messages.setGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md index 8b5625f3..cf74e5e4 100644 --- a/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md @@ -24,23 +24,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md index 36752f35..c922f937 100644 --- a/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md @@ -22,14 +22,6 @@ description: messages.setInlineGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setTyping.md b/old_docs/API_docs_v65/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v65/methods/messages_setTyping.md +++ b/old_docs/API_docs_v65/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_startBot.md b/old_docs/API_docs_v65/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v65/methods/messages_startBot.md +++ b/old_docs/API_docs_v65/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md index f35f2f40..f4506918 100644 --- a/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md @@ -19,13 +19,6 @@ description: messages.toggleDialogPin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/payments_getPaymentForm.md b/old_docs/API_docs_v65/methods/payments_getPaymentForm.md index 15f6e26b..fa82f22d 100644 --- a/old_docs/API_docs_v65/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v65/methods/payments_getPaymentForm.md @@ -18,13 +18,6 @@ description: payments.getPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md index 51433563..d6b5f5d6 100644 --- a/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md @@ -18,13 +18,6 @@ description: payments.getPaymentReceipt parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md index a63a3980..831516a3 100644 --- a/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md @@ -21,13 +21,6 @@ description: payments.sendPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md index d839a2df..4102a473 100644 --- a/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md @@ -20,13 +20,6 @@ description: payments.validateRequestedInfo parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/phone_receivedCall.md b/old_docs/API_docs_v65/methods/phone_receivedCall.md index 9d59b1ea..b06a90ad 100644 --- a/old_docs/API_docs_v65/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v65/methods/phone_receivedCall.md @@ -18,14 +18,6 @@ description: phone.receivedCall parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_ALREADY_DECLINED|The call was already declined| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/phone_saveCallDebug.md b/old_docs/API_docs_v65/methods/phone_saveCallDebug.md index 4dee5c97..589dc522 100644 --- a/old_docs/API_docs_v65/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v65/methods/phone_saveCallDebug.md @@ -19,14 +19,6 @@ description: phone.saveCallDebug parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| -|DATA_JSON_INVALID|The provided JSON data is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/phone_setCallRating.md b/old_docs/API_docs_v65/methods/phone_setCallRating.md index fea236d1..a2b2e27c 100644 --- a/old_docs/API_docs_v65/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v65/methods/phone_setCallRating.md @@ -20,13 +20,6 @@ description: phone.setCallRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/photos_getUserPhotos.md b/old_docs/API_docs_v65/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v65/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v65/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md index 58541f23..6de32dae 100644 --- a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md @@ -18,17 +18,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/upload_getWebFile.md b/old_docs/API_docs_v65/methods/upload_getWebFile.md index ec7c05b4..fab17a7f 100644 --- a/old_docs/API_docs_v65/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v65/methods/upload_getWebFile.md @@ -20,13 +20,6 @@ description: upload.getWebFile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LOCATION_INVALID|The provided location is invalid| - - ### Example: diff --git a/old_docs/API_docs_v65/methods/users_getUsers.md b/old_docs/API_docs_v65/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v65/methods/users_getUsers.md +++ b/old_docs/API_docs_v65/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/README.md b/old_docs/API_docs_v66/methods/README.md index 56da82cd..31adb12a 100644 --- a/old_docs/API_docs_v66/methods/README.md +++ b/old_docs/API_docs_v66/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v66/methods/account_changePhone.md b/old_docs/API_docs_v66/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v66/methods/account_changePhone.md +++ b/old_docs/API_docs_v66/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_checkUsername.md b/old_docs/API_docs_v66/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v66/methods/account_checkUsername.md +++ b/old_docs/API_docs_v66/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_confirmPhone.md b/old_docs/API_docs_v66/methods/account_confirmPhone.md index 0d2dc5c6..c2526b2a 100644 --- a/old_docs/API_docs_v66/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v66/methods/account_confirmPhone.md @@ -19,14 +19,6 @@ description: account.confirmPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_HASH_INVALID|Code hash invalid| -|PHONE_CODE_EMPTY|phone_code is missing| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_getNotifySettings.md b/old_docs/API_docs_v66/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v66/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v66/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_getPasswordSettings.md b/old_docs/API_docs_v66/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v66/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v66/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_getPrivacy.md b/old_docs/API_docs_v66/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v66/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v66/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_getTmpPassword.md b/old_docs/API_docs_v66/methods/account_getTmpPassword.md index a6fed592..c368baf7 100644 --- a/old_docs/API_docs_v66/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v66/methods/account_getTmpPassword.md @@ -19,13 +19,6 @@ description: account.getTmpPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TMP_PASSWORD_DISABLED|The temporary password is disabled| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_registerDevice.md b/old_docs/API_docs_v66/methods/account_registerDevice.md index 3cc7f98d..6865551e 100644 --- a/old_docs/API_docs_v66/methods/account_registerDevice.md +++ b/old_docs/API_docs_v66/methods/account_registerDevice.md @@ -19,13 +19,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_reportPeer.md b/old_docs/API_docs_v66/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v66/methods/account_reportPeer.md +++ b/old_docs/API_docs_v66/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_resetAuthorization.md b/old_docs/API_docs_v66/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v66/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v66/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md index 4be218f2..a1f49156 100644 --- a/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md @@ -20,13 +20,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md index 009fcb09..5ad44987 100644 --- a/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md @@ -20,13 +20,6 @@ description: account.sendConfirmPhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_setAccountTTL.md b/old_docs/API_docs_v66/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v66/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v66/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_setPrivacy.md b/old_docs/API_docs_v66/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v66/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v66/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_unregisterDevice.md b/old_docs/API_docs_v66/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v66/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v66/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_updateNotifySettings.md b/old_docs/API_docs_v66/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v66/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v66/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_updateProfile.md b/old_docs/API_docs_v66/methods/account_updateProfile.md index a50eaea5..531bbb02 100644 --- a/old_docs/API_docs_v66/methods/account_updateProfile.md +++ b/old_docs/API_docs_v66/methods/account_updateProfile.md @@ -20,14 +20,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/account_updateUsername.md b/old_docs/API_docs_v66/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v66/methods/account_updateUsername.md +++ b/old_docs/API_docs_v66/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_cancelCode.md b/old_docs/API_docs_v66/methods/auth_cancelCode.md index dc390329..cc93fff5 100644 --- a/old_docs/API_docs_v66/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v66/methods/auth_cancelCode.md @@ -19,13 +19,6 @@ description: auth.cancelCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_checkPassword.md b/old_docs/API_docs_v66/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v66/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v66/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_checkPhone.md b/old_docs/API_docs_v66/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v66/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v66/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_exportAuthorization.md b/old_docs/API_docs_v66/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v66/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v66/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_importAuthorization.md b/old_docs/API_docs_v66/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v66/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v66/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_recoverPassword.md b/old_docs/API_docs_v66/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v66/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v66/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_resendCode.md b/old_docs/API_docs_v66/methods/auth_resendCode.md index 14d08ddd..92f7aa30 100644 --- a/old_docs/API_docs_v66/methods/auth_resendCode.md +++ b/old_docs/API_docs_v66/methods/auth_resendCode.md @@ -19,13 +19,6 @@ description: auth.resendCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_sendInvites.md b/old_docs/API_docs_v66/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v66/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v66/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md index ae1efce3..59c134d4 100644 --- a/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md @@ -19,14 +19,6 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md index 927f18c5..57a49e6e 100644 --- a/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md @@ -19,13 +19,6 @@ description: bots.sendCustomRequest parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_checkUsername.md b/old_docs/API_docs_v66/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v66/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v66/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_createChannel.md b/old_docs/API_docs_v66/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v66/methods/channels_createChannel.md +++ b/old_docs/API_docs_v66/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_deleteChannel.md b/old_docs/API_docs_v66/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v66/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_deleteMessages.md b/old_docs/API_docs_v66/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v66/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_editAbout.md b/old_docs/API_docs_v66/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v66/methods/channels_editAbout.md +++ b/old_docs/API_docs_v66/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_editAdmin.md b/old_docs/API_docs_v66/methods/channels_editAdmin.md index a0a6eb30..cb821297 100644 --- a/old_docs/API_docs_v66/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v66/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_editPhoto.md b/old_docs/API_docs_v66/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v66/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v66/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_editTitle.md b/old_docs/API_docs_v66/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v66/methods/channels_editTitle.md +++ b/old_docs/API_docs_v66/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_exportInvite.md b/old_docs/API_docs_v66/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v66/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v66/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_exportMessageLink.md b/old_docs/API_docs_v66/methods/channels_exportMessageLink.md index 9831c9c0..9e7135ab 100644 --- a/old_docs/API_docs_v66/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v66/methods/channels_exportMessageLink.md @@ -19,13 +19,6 @@ description: channels.exportMessageLink parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_getChannels.md b/old_docs/API_docs_v66/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v66/methods/channels_getChannels.md +++ b/old_docs/API_docs_v66/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_getMessages.md b/old_docs/API_docs_v66/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v66/methods/channels_getMessages.md +++ b/old_docs/API_docs_v66/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_getParticipant.md b/old_docs/API_docs_v66/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v66/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v66/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_inviteToChannel.md b/old_docs/API_docs_v66/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v66/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v66/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_joinChannel.md b/old_docs/API_docs_v66/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v66/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v66/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_leaveChannel.md b/old_docs/API_docs_v66/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v66/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v66/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_readHistory.md b/old_docs/API_docs_v66/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v66/methods/channels_readHistory.md +++ b/old_docs/API_docs_v66/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_reportSpam.md b/old_docs/API_docs_v66/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v66/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v66/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_toggleInvites.md b/old_docs/API_docs_v66/methods/channels_toggleInvites.md index d84339b2..0733d419 100644 --- a/old_docs/API_docs_v66/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v66/methods/channels_toggleInvites.md @@ -19,14 +19,6 @@ description: channels.toggleInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_toggleSignatures.md b/old_docs/API_docs_v66/methods/channels_toggleSignatures.md index a214b849..3056eaee 100644 --- a/old_docs/API_docs_v66/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v66/methods/channels_toggleSignatures.md @@ -19,13 +19,6 @@ description: channels.toggleSignatures parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md index 7376df10..d2314d85 100644 --- a/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md @@ -20,15 +20,6 @@ description: channels.updatePinnedMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_updateUsername.md b/old_docs/API_docs_v66/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v66/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v66/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_block.md b/old_docs/API_docs_v66/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v66/methods/contacts_block.md +++ b/old_docs/API_docs_v66/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_deleteContact.md b/old_docs/API_docs_v66/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v66/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v66/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_deleteContacts.md b/old_docs/API_docs_v66/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v66/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v66/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_getTopPeers.md b/old_docs/API_docs_v66/methods/contacts_getTopPeers.md index 1caa1d77..60967d06 100644 --- a/old_docs/API_docs_v66/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v66/methods/contacts_getTopPeers.md @@ -25,13 +25,6 @@ description: contacts.getTopPeers parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TYPES_EMPTY|The types field is empty| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_importCard.md b/old_docs/API_docs_v66/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v66/methods/contacts_importCard.md +++ b/old_docs/API_docs_v66/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md index 738494b2..2f784189 100644 --- a/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md @@ -19,13 +19,6 @@ description: contacts.resetTopPeerRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_search.md b/old_docs/API_docs_v66/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v66/methods/contacts_search.md +++ b/old_docs/API_docs_v66/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_unblock.md b/old_docs/API_docs_v66/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v66/methods/contacts_unblock.md +++ b/old_docs/API_docs_v66/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/initConnection.md b/old_docs/API_docs_v66/methods/initConnection.md index 0d22a1cb..de94798b 100644 --- a/old_docs/API_docs_v66/methods/initConnection.md +++ b/old_docs/API_docs_v66/methods/initConnection.md @@ -23,14 +23,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/invokeWithLayer.md b/old_docs/API_docs_v66/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v66/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v66/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_addChatUser.md b/old_docs/API_docs_v66/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v66/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v66/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_checkChatInvite.md b/old_docs/API_docs_v66/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v66/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_createChat.md b/old_docs/API_docs_v66/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v66/methods/messages_createChat.md +++ b/old_docs/API_docs_v66/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_deleteChatUser.md b/old_docs/API_docs_v66/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v66/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_deleteHistory.md b/old_docs/API_docs_v66/methods/messages_deleteHistory.md index ce6ba6e7..fb9b7763 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v66/methods/messages_deleteHistory.md @@ -20,13 +20,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_deleteMessages.md b/old_docs/API_docs_v66/methods/messages_deleteMessages.md index 2b88a73f..2949f64a 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v66/methods/messages_deleteMessages.md @@ -19,13 +19,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_editChatAdmin.md b/old_docs/API_docs_v66/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v66/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_editChatPhoto.md b/old_docs/API_docs_v66/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v66/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_editChatTitle.md b/old_docs/API_docs_v66/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v66/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md index 621c81a3..083d4a61 100644 --- a/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md @@ -23,14 +23,6 @@ description: messages.editInlineBotMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_editMessage.md b/old_docs/API_docs_v66/methods/messages_editMessage.md index 8bc79038..a2766336 100644 --- a/old_docs/API_docs_v66/methods/messages_editMessage.md +++ b/old_docs/API_docs_v66/methods/messages_editMessage.md @@ -24,20 +24,6 @@ description: messages.editMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_exportChatInvite.md b/old_docs/API_docs_v66/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v66/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessage.md b/old_docs/API_docs_v66/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessages.md b/old_docs/API_docs_v66/methods/messages_forwardMessages.md index e08cc5ba..8b91a208 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessages.md @@ -23,31 +23,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md index 433144c3..9d9470d0 100644 --- a/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md @@ -21,16 +21,6 @@ description: messages.getBotCallbackAnswer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getChats.md b/old_docs/API_docs_v66/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v66/methods/messages_getChats.md +++ b/old_docs/API_docs_v66/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getCommonChats.md b/old_docs/API_docs_v66/methods/messages_getCommonChats.md index 0c601ca9..985a52df 100644 --- a/old_docs/API_docs_v66/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v66/methods/messages_getCommonChats.md @@ -20,13 +20,6 @@ description: messages.getCommonChats parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getDhConfig.md b/old_docs/API_docs_v66/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v66/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v66/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getDialogs.md b/old_docs/API_docs_v66/methods/messages_getDialogs.md index 27f0d655..e38aa996 100644 --- a/old_docs/API_docs_v66/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_getDialogs.md @@ -22,15 +22,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getGameHighScores.md b/old_docs/API_docs_v66/methods/messages_getGameHighScores.md index 935bb95a..d558df8a 100644 --- a/old_docs/API_docs_v66/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v66/methods/messages_getGameHighScores.md @@ -20,14 +20,6 @@ description: messages.getGameHighScores parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getHistory.md b/old_docs/API_docs_v66/methods/messages_getHistory.md index f6db78c4..273eb6a9 100644 --- a/old_docs/API_docs_v66/methods/messages_getHistory.md +++ b/old_docs/API_docs_v66/methods/messages_getHistory.md @@ -24,18 +24,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md index ad41660e..f5da1c5a 100644 --- a/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md @@ -22,15 +22,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md index 7cc04d0d..24b512ca 100644 --- a/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md @@ -19,14 +19,6 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getMessageEditData.md b/old_docs/API_docs_v66/methods/messages_getMessageEditData.md index 4e20a108..ee07fd74 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v66/methods/messages_getMessageEditData.md @@ -19,14 +19,6 @@ description: messages.getMessageEditData parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getMessagesViews.md b/old_docs/API_docs_v66/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v66/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md index 3da60038..e388e309 100644 --- a/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md @@ -18,14 +18,6 @@ description: messages.getPeerDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getPeerSettings.md b/old_docs/API_docs_v66/methods/messages_getPeerSettings.md index d3e3cfc3..26776c43 100644 --- a/old_docs/API_docs_v66/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v66/methods/messages_getPeerSettings.md @@ -18,14 +18,6 @@ description: messages.getPeerSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getStickerSet.md b/old_docs/API_docs_v66/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v66/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_hideReportSpam.md b/old_docs/API_docs_v66/methods/messages_hideReportSpam.md index 2dfe4dd7..20bc6f18 100644 --- a/old_docs/API_docs_v66/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v66/methods/messages_hideReportSpam.md @@ -18,13 +18,6 @@ description: messages.hideReportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_importChatInvite.md b/old_docs/API_docs_v66/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v66/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_installStickerSet.md b/old_docs/API_docs_v66/methods/messages_installStickerSet.md index 3dde52a7..6073eb13 100644 --- a/old_docs/API_docs_v66/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_migrateChat.md b/old_docs/API_docs_v66/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v66/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v66/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_readHistory.md b/old_docs/API_docs_v66/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v66/methods/messages_readHistory.md +++ b/old_docs/API_docs_v66/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_receivedQueue.md b/old_docs/API_docs_v66/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v66/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v66/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md index 30102fd7..2660b363 100644 --- a/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md @@ -19,13 +19,6 @@ description: messages.reorderPinnedDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md index 30ef3473..5764b848 100644 --- a/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md @@ -18,13 +18,6 @@ description: messages.reportEncryptedSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_reportSpam.md b/old_docs/API_docs_v66/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v66/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v66/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_saveDraft.md b/old_docs/API_docs_v66/methods/messages_saveDraft.md index 42308b46..ef5e65c5 100644 --- a/old_docs/API_docs_v66/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v66/methods/messages_saveDraft.md @@ -23,13 +23,6 @@ description: messages.saveDraft parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_saveGif.md b/old_docs/API_docs_v66/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v66/methods/messages_saveGif.md +++ b/old_docs/API_docs_v66/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md index 8d45be5e..cb4f98b3 100644 --- a/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md @@ -20,13 +20,6 @@ description: messages.saveRecentSticker parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKER_ID_INVALID|The provided sticker ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_search.md b/old_docs/API_docs_v66/methods/messages_search.md index 8c0d9116..01e4c614 100644 --- a/old_docs/API_docs_v66/methods/messages_search.md +++ b/old_docs/API_docs_v66/methods/messages_search.md @@ -25,17 +25,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_searchGifs.md b/old_docs/API_docs_v66/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v66/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v66/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_searchGlobal.md b/old_docs/API_docs_v66/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v66/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v66/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendEncrypted.md b/old_docs/API_docs_v66/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md index 8a91e882..6ab41f50 100644 --- a/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md @@ -24,15 +24,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendMedia.md b/old_docs/API_docs_v66/methods/messages_sendMedia.md index 6c5e65d5..68e2c41b 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v66/methods/messages_sendMedia.md @@ -24,27 +24,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendMessage.md b/old_docs/API_docs_v66/methods/messages_sendMessage.md index f9f2aa8a..cabccdb3 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v66/methods/messages_sendMessage.md @@ -27,31 +27,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md index 2c51854f..ef9b8f7a 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md @@ -22,13 +22,6 @@ description: messages.setBotCallbackAnswer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md index 25ed5ed5..92bdcb9e 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md @@ -20,13 +20,6 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ERROR_TEXT_EMPTY|The provided error message is empty| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md index 49ac2896..e2c7cd45 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md @@ -20,13 +20,6 @@ description: messages.setBotShippingResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setGameScore.md b/old_docs/API_docs_v66/methods/messages_setGameScore.md index 3137f7c9..f16a7539 100644 --- a/old_docs/API_docs_v66/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v66/methods/messages_setGameScore.md @@ -23,14 +23,6 @@ description: messages.setGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md index 8b5625f3..cf74e5e4 100644 --- a/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md @@ -24,23 +24,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md index 36752f35..c922f937 100644 --- a/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md @@ -22,14 +22,6 @@ description: messages.setInlineGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setTyping.md b/old_docs/API_docs_v66/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v66/methods/messages_setTyping.md +++ b/old_docs/API_docs_v66/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_startBot.md b/old_docs/API_docs_v66/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v66/methods/messages_startBot.md +++ b/old_docs/API_docs_v66/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md index f35f2f40..f4506918 100644 --- a/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md @@ -19,13 +19,6 @@ description: messages.toggleDialogPin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/payments_getPaymentForm.md b/old_docs/API_docs_v66/methods/payments_getPaymentForm.md index 15f6e26b..fa82f22d 100644 --- a/old_docs/API_docs_v66/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v66/methods/payments_getPaymentForm.md @@ -18,13 +18,6 @@ description: payments.getPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md index 51433563..d6b5f5d6 100644 --- a/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md @@ -18,13 +18,6 @@ description: payments.getPaymentReceipt parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md index a63a3980..831516a3 100644 --- a/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md @@ -21,13 +21,6 @@ description: payments.sendPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md index d839a2df..4102a473 100644 --- a/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md @@ -20,13 +20,6 @@ description: payments.validateRequestedInfo parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/phone_receivedCall.md b/old_docs/API_docs_v66/methods/phone_receivedCall.md index 9d59b1ea..b06a90ad 100644 --- a/old_docs/API_docs_v66/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v66/methods/phone_receivedCall.md @@ -18,14 +18,6 @@ description: phone.receivedCall parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_ALREADY_DECLINED|The call was already declined| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/phone_saveCallDebug.md b/old_docs/API_docs_v66/methods/phone_saveCallDebug.md index 4dee5c97..589dc522 100644 --- a/old_docs/API_docs_v66/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v66/methods/phone_saveCallDebug.md @@ -19,14 +19,6 @@ description: phone.saveCallDebug parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| -|DATA_JSON_INVALID|The provided JSON data is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/phone_setCallRating.md b/old_docs/API_docs_v66/methods/phone_setCallRating.md index fea236d1..a2b2e27c 100644 --- a/old_docs/API_docs_v66/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v66/methods/phone_setCallRating.md @@ -20,13 +20,6 @@ description: phone.setCallRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/photos_getUserPhotos.md b/old_docs/API_docs_v66/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v66/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v66/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md index 58541f23..6de32dae 100644 --- a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md @@ -18,17 +18,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/upload_getWebFile.md b/old_docs/API_docs_v66/methods/upload_getWebFile.md index ec7c05b4..fab17a7f 100644 --- a/old_docs/API_docs_v66/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v66/methods/upload_getWebFile.md @@ -20,13 +20,6 @@ description: upload.getWebFile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LOCATION_INVALID|The provided location is invalid| - - ### Example: diff --git a/old_docs/API_docs_v66/methods/users_getUsers.md b/old_docs/API_docs_v66/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v66/methods/users_getUsers.md +++ b/old_docs/API_docs_v66/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/README.md b/old_docs/API_docs_v68/methods/README.md index 7bc1f7a2..36373a90 100644 --- a/old_docs/API_docs_v68/methods/README.md +++ b/old_docs/API_docs_v68/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v68/methods/account_changePhone.md b/old_docs/API_docs_v68/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v68/methods/account_changePhone.md +++ b/old_docs/API_docs_v68/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_checkUsername.md b/old_docs/API_docs_v68/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v68/methods/account_checkUsername.md +++ b/old_docs/API_docs_v68/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_confirmPhone.md b/old_docs/API_docs_v68/methods/account_confirmPhone.md index 0d2dc5c6..c2526b2a 100644 --- a/old_docs/API_docs_v68/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v68/methods/account_confirmPhone.md @@ -19,14 +19,6 @@ description: account.confirmPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_HASH_INVALID|Code hash invalid| -|PHONE_CODE_EMPTY|phone_code is missing| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_getNotifySettings.md b/old_docs/API_docs_v68/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v68/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v68/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_getPasswordSettings.md b/old_docs/API_docs_v68/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v68/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v68/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_getPrivacy.md b/old_docs/API_docs_v68/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v68/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v68/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_getTmpPassword.md b/old_docs/API_docs_v68/methods/account_getTmpPassword.md index a6fed592..c368baf7 100644 --- a/old_docs/API_docs_v68/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v68/methods/account_getTmpPassword.md @@ -19,13 +19,6 @@ description: account.getTmpPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TMP_PASSWORD_DISABLED|The temporary password is disabled| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_registerDevice.md b/old_docs/API_docs_v68/methods/account_registerDevice.md index 3cc7f98d..6865551e 100644 --- a/old_docs/API_docs_v68/methods/account_registerDevice.md +++ b/old_docs/API_docs_v68/methods/account_registerDevice.md @@ -19,13 +19,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_reportPeer.md b/old_docs/API_docs_v68/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v68/methods/account_reportPeer.md +++ b/old_docs/API_docs_v68/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_resetAuthorization.md b/old_docs/API_docs_v68/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v68/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v68/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md index 4be218f2..a1f49156 100644 --- a/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md @@ -20,13 +20,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md index 009fcb09..5ad44987 100644 --- a/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md @@ -20,13 +20,6 @@ description: account.sendConfirmPhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_setAccountTTL.md b/old_docs/API_docs_v68/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v68/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v68/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_setPrivacy.md b/old_docs/API_docs_v68/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v68/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v68/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_unregisterDevice.md b/old_docs/API_docs_v68/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v68/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v68/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_updateNotifySettings.md b/old_docs/API_docs_v68/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v68/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v68/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_updateProfile.md b/old_docs/API_docs_v68/methods/account_updateProfile.md index a50eaea5..531bbb02 100644 --- a/old_docs/API_docs_v68/methods/account_updateProfile.md +++ b/old_docs/API_docs_v68/methods/account_updateProfile.md @@ -20,14 +20,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/account_updateUsername.md b/old_docs/API_docs_v68/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v68/methods/account_updateUsername.md +++ b/old_docs/API_docs_v68/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_cancelCode.md b/old_docs/API_docs_v68/methods/auth_cancelCode.md index dc390329..cc93fff5 100644 --- a/old_docs/API_docs_v68/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v68/methods/auth_cancelCode.md @@ -19,13 +19,6 @@ description: auth.cancelCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_checkPassword.md b/old_docs/API_docs_v68/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v68/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v68/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_checkPhone.md b/old_docs/API_docs_v68/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v68/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v68/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_exportAuthorization.md b/old_docs/API_docs_v68/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v68/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v68/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_importAuthorization.md b/old_docs/API_docs_v68/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v68/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v68/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_recoverPassword.md b/old_docs/API_docs_v68/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v68/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v68/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_resendCode.md b/old_docs/API_docs_v68/methods/auth_resendCode.md index 14d08ddd..92f7aa30 100644 --- a/old_docs/API_docs_v68/methods/auth_resendCode.md +++ b/old_docs/API_docs_v68/methods/auth_resendCode.md @@ -19,13 +19,6 @@ description: auth.resendCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_sendInvites.md b/old_docs/API_docs_v68/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v68/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v68/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md index ae1efce3..59c134d4 100644 --- a/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md @@ -19,14 +19,6 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md index 927f18c5..57a49e6e 100644 --- a/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md @@ -19,13 +19,6 @@ description: bots.sendCustomRequest parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_checkUsername.md b/old_docs/API_docs_v68/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v68/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v68/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_createChannel.md b/old_docs/API_docs_v68/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v68/methods/channels_createChannel.md +++ b/old_docs/API_docs_v68/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_deleteChannel.md b/old_docs/API_docs_v68/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v68/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_deleteMessages.md b/old_docs/API_docs_v68/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v68/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_editAbout.md b/old_docs/API_docs_v68/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v68/methods/channels_editAbout.md +++ b/old_docs/API_docs_v68/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_editAdmin.md b/old_docs/API_docs_v68/methods/channels_editAdmin.md index 4147c213..242496ab 100644 --- a/old_docs/API_docs_v68/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v68/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_editBanned.md b/old_docs/API_docs_v68/methods/channels_editBanned.md index 7fb904b9..7d3fc1d0 100644 --- a/old_docs/API_docs_v68/methods/channels_editBanned.md +++ b/old_docs/API_docs_v68/methods/channels_editBanned.md @@ -20,17 +20,6 @@ description: channels.editBanned parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ADMIN_INVALID|You're not an admin| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_editPhoto.md b/old_docs/API_docs_v68/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v68/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v68/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_editTitle.md b/old_docs/API_docs_v68/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v68/methods/channels_editTitle.md +++ b/old_docs/API_docs_v68/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_exportInvite.md b/old_docs/API_docs_v68/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v68/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v68/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_exportMessageLink.md b/old_docs/API_docs_v68/methods/channels_exportMessageLink.md index 9831c9c0..9e7135ab 100644 --- a/old_docs/API_docs_v68/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v68/methods/channels_exportMessageLink.md @@ -19,13 +19,6 @@ description: channels.exportMessageLink parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_getAdminLog.md b/old_docs/API_docs_v68/methods/channels_getAdminLog.md index f4a70e98..4775c872 100644 --- a/old_docs/API_docs_v68/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v68/methods/channels_getAdminLog.md @@ -24,14 +24,6 @@ description: channels.getAdminLog parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_getChannels.md b/old_docs/API_docs_v68/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v68/methods/channels_getChannels.md +++ b/old_docs/API_docs_v68/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_getMessages.md b/old_docs/API_docs_v68/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v68/methods/channels_getMessages.md +++ b/old_docs/API_docs_v68/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_getParticipant.md b/old_docs/API_docs_v68/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v68/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v68/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_inviteToChannel.md b/old_docs/API_docs_v68/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v68/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v68/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_joinChannel.md b/old_docs/API_docs_v68/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v68/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v68/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_leaveChannel.md b/old_docs/API_docs_v68/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v68/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v68/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_readHistory.md b/old_docs/API_docs_v68/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v68/methods/channels_readHistory.md +++ b/old_docs/API_docs_v68/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_reportSpam.md b/old_docs/API_docs_v68/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v68/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v68/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_toggleInvites.md b/old_docs/API_docs_v68/methods/channels_toggleInvites.md index d84339b2..0733d419 100644 --- a/old_docs/API_docs_v68/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v68/methods/channels_toggleInvites.md @@ -19,14 +19,6 @@ description: channels.toggleInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_toggleSignatures.md b/old_docs/API_docs_v68/methods/channels_toggleSignatures.md index a214b849..3056eaee 100644 --- a/old_docs/API_docs_v68/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v68/methods/channels_toggleSignatures.md @@ -19,13 +19,6 @@ description: channels.toggleSignatures parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md index 7376df10..d2314d85 100644 --- a/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md @@ -20,15 +20,6 @@ description: channels.updatePinnedMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_updateUsername.md b/old_docs/API_docs_v68/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v68/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v68/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_block.md b/old_docs/API_docs_v68/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v68/methods/contacts_block.md +++ b/old_docs/API_docs_v68/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_deleteContact.md b/old_docs/API_docs_v68/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v68/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v68/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_deleteContacts.md b/old_docs/API_docs_v68/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v68/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v68/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_getTopPeers.md b/old_docs/API_docs_v68/methods/contacts_getTopPeers.md index cbd64cc0..a1c85ce0 100644 --- a/old_docs/API_docs_v68/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v68/methods/contacts_getTopPeers.md @@ -26,13 +26,6 @@ description: contacts.getTopPeers parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TYPES_EMPTY|The types field is empty| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_importCard.md b/old_docs/API_docs_v68/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v68/methods/contacts_importCard.md +++ b/old_docs/API_docs_v68/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md index 738494b2..2f784189 100644 --- a/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md @@ -19,13 +19,6 @@ description: contacts.resetTopPeerRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_search.md b/old_docs/API_docs_v68/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v68/methods/contacts_search.md +++ b/old_docs/API_docs_v68/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_unblock.md b/old_docs/API_docs_v68/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v68/methods/contacts_unblock.md +++ b/old_docs/API_docs_v68/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/initConnection.md b/old_docs/API_docs_v68/methods/initConnection.md index b66ab859..c34dd3d0 100644 --- a/old_docs/API_docs_v68/methods/initConnection.md +++ b/old_docs/API_docs_v68/methods/initConnection.md @@ -25,14 +25,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/invokeWithLayer.md b/old_docs/API_docs_v68/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v68/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v68/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/langpack_getDifference.md b/old_docs/API_docs_v68/methods/langpack_getDifference.md index 2e77cc3b..422a3b55 100644 --- a/old_docs/API_docs_v68/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v68/methods/langpack_getDifference.md @@ -18,13 +18,6 @@ description: langpack.getDifference parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/langpack_getLangPack.md b/old_docs/API_docs_v68/methods/langpack_getLangPack.md index 5d4d0b81..de1e01ed 100644 --- a/old_docs/API_docs_v68/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v68/methods/langpack_getLangPack.md @@ -18,13 +18,6 @@ description: langpack.getLangPack parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/langpack_getLanguages.md b/old_docs/API_docs_v68/methods/langpack_getLanguages.md index abaa0de3..4fccd707 100644 --- a/old_docs/API_docs_v68/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v68/methods/langpack_getLanguages.md @@ -13,13 +13,6 @@ description: langpack.getLanguages parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/langpack_getStrings.md b/old_docs/API_docs_v68/methods/langpack_getStrings.md index 9bb740dc..fd1e0534 100644 --- a/old_docs/API_docs_v68/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v68/methods/langpack_getStrings.md @@ -19,13 +19,6 @@ description: langpack.getStrings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_addChatUser.md b/old_docs/API_docs_v68/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v68/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v68/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_checkChatInvite.md b/old_docs/API_docs_v68/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v68/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_createChat.md b/old_docs/API_docs_v68/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v68/methods/messages_createChat.md +++ b/old_docs/API_docs_v68/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_deleteChatUser.md b/old_docs/API_docs_v68/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v68/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_deleteHistory.md b/old_docs/API_docs_v68/methods/messages_deleteHistory.md index ce6ba6e7..fb9b7763 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v68/methods/messages_deleteHistory.md @@ -20,13 +20,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_deleteMessages.md b/old_docs/API_docs_v68/methods/messages_deleteMessages.md index 2b88a73f..2949f64a 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v68/methods/messages_deleteMessages.md @@ -19,13 +19,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_editChatAdmin.md b/old_docs/API_docs_v68/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v68/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_editChatPhoto.md b/old_docs/API_docs_v68/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v68/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_editChatTitle.md b/old_docs/API_docs_v68/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v68/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md index 621c81a3..083d4a61 100644 --- a/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md @@ -23,14 +23,6 @@ description: messages.editInlineBotMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_editMessage.md b/old_docs/API_docs_v68/methods/messages_editMessage.md index 8bc79038..a2766336 100644 --- a/old_docs/API_docs_v68/methods/messages_editMessage.md +++ b/old_docs/API_docs_v68/methods/messages_editMessage.md @@ -24,20 +24,6 @@ description: messages.editMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_exportChatInvite.md b/old_docs/API_docs_v68/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v68/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessage.md b/old_docs/API_docs_v68/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessages.md b/old_docs/API_docs_v68/methods/messages_forwardMessages.md index e08cc5ba..8b91a208 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessages.md @@ -23,31 +23,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md index 433144c3..9d9470d0 100644 --- a/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md @@ -21,16 +21,6 @@ description: messages.getBotCallbackAnswer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getChats.md b/old_docs/API_docs_v68/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v68/methods/messages_getChats.md +++ b/old_docs/API_docs_v68/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getCommonChats.md b/old_docs/API_docs_v68/methods/messages_getCommonChats.md index 0c601ca9..985a52df 100644 --- a/old_docs/API_docs_v68/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v68/methods/messages_getCommonChats.md @@ -20,13 +20,6 @@ description: messages.getCommonChats parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getDhConfig.md b/old_docs/API_docs_v68/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v68/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v68/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getDialogs.md b/old_docs/API_docs_v68/methods/messages_getDialogs.md index 27f0d655..e38aa996 100644 --- a/old_docs/API_docs_v68/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_getDialogs.md @@ -22,15 +22,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getGameHighScores.md b/old_docs/API_docs_v68/methods/messages_getGameHighScores.md index 935bb95a..d558df8a 100644 --- a/old_docs/API_docs_v68/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v68/methods/messages_getGameHighScores.md @@ -20,14 +20,6 @@ description: messages.getGameHighScores parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getHistory.md b/old_docs/API_docs_v68/methods/messages_getHistory.md index f6db78c4..273eb6a9 100644 --- a/old_docs/API_docs_v68/methods/messages_getHistory.md +++ b/old_docs/API_docs_v68/methods/messages_getHistory.md @@ -24,18 +24,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md index ad41660e..f5da1c5a 100644 --- a/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md @@ -22,15 +22,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md index 7cc04d0d..24b512ca 100644 --- a/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md @@ -19,14 +19,6 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getMessageEditData.md b/old_docs/API_docs_v68/methods/messages_getMessageEditData.md index 4e20a108..ee07fd74 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v68/methods/messages_getMessageEditData.md @@ -19,14 +19,6 @@ description: messages.getMessageEditData parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getMessagesViews.md b/old_docs/API_docs_v68/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v68/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md index 3da60038..e388e309 100644 --- a/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md @@ -18,14 +18,6 @@ description: messages.getPeerDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getPeerSettings.md b/old_docs/API_docs_v68/methods/messages_getPeerSettings.md index d3e3cfc3..26776c43 100644 --- a/old_docs/API_docs_v68/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v68/methods/messages_getPeerSettings.md @@ -18,14 +18,6 @@ description: messages.getPeerSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getStickerSet.md b/old_docs/API_docs_v68/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v68/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_hideReportSpam.md b/old_docs/API_docs_v68/methods/messages_hideReportSpam.md index 2dfe4dd7..20bc6f18 100644 --- a/old_docs/API_docs_v68/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v68/methods/messages_hideReportSpam.md @@ -18,13 +18,6 @@ description: messages.hideReportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_importChatInvite.md b/old_docs/API_docs_v68/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v68/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_installStickerSet.md b/old_docs/API_docs_v68/methods/messages_installStickerSet.md index 3dde52a7..6073eb13 100644 --- a/old_docs/API_docs_v68/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_migrateChat.md b/old_docs/API_docs_v68/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v68/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v68/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_readHistory.md b/old_docs/API_docs_v68/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v68/methods/messages_readHistory.md +++ b/old_docs/API_docs_v68/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_receivedQueue.md b/old_docs/API_docs_v68/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v68/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v68/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md index 30102fd7..2660b363 100644 --- a/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md @@ -19,13 +19,6 @@ description: messages.reorderPinnedDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md index 30ef3473..5764b848 100644 --- a/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md @@ -18,13 +18,6 @@ description: messages.reportEncryptedSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_reportSpam.md b/old_docs/API_docs_v68/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v68/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v68/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_saveDraft.md b/old_docs/API_docs_v68/methods/messages_saveDraft.md index 42308b46..ef5e65c5 100644 --- a/old_docs/API_docs_v68/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v68/methods/messages_saveDraft.md @@ -23,13 +23,6 @@ description: messages.saveDraft parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_saveGif.md b/old_docs/API_docs_v68/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v68/methods/messages_saveGif.md +++ b/old_docs/API_docs_v68/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md index 8d45be5e..cb4f98b3 100644 --- a/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md @@ -20,13 +20,6 @@ description: messages.saveRecentSticker parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKER_ID_INVALID|The provided sticker ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_search.md b/old_docs/API_docs_v68/methods/messages_search.md index 2d6062a7..dfdb24f7 100644 --- a/old_docs/API_docs_v68/methods/messages_search.md +++ b/old_docs/API_docs_v68/methods/messages_search.md @@ -26,17 +26,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_searchGifs.md b/old_docs/API_docs_v68/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v68/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v68/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_searchGlobal.md b/old_docs/API_docs_v68/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v68/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v68/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendEncrypted.md b/old_docs/API_docs_v68/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md index 8a91e882..6ab41f50 100644 --- a/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md @@ -24,15 +24,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendMedia.md b/old_docs/API_docs_v68/methods/messages_sendMedia.md index 6c5e65d5..68e2c41b 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v68/methods/messages_sendMedia.md @@ -24,27 +24,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendMessage.md b/old_docs/API_docs_v68/methods/messages_sendMessage.md index f9f2aa8a..cabccdb3 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v68/methods/messages_sendMessage.md @@ -27,31 +27,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md index 2c51854f..ef9b8f7a 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md @@ -22,13 +22,6 @@ description: messages.setBotCallbackAnswer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md index 25ed5ed5..92bdcb9e 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md @@ -20,13 +20,6 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ERROR_TEXT_EMPTY|The provided error message is empty| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md index 49ac2896..e2c7cd45 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md @@ -20,13 +20,6 @@ description: messages.setBotShippingResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setGameScore.md b/old_docs/API_docs_v68/methods/messages_setGameScore.md index 3137f7c9..f16a7539 100644 --- a/old_docs/API_docs_v68/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v68/methods/messages_setGameScore.md @@ -23,14 +23,6 @@ description: messages.setGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md index 8b5625f3..cf74e5e4 100644 --- a/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md @@ -24,23 +24,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md index 36752f35..c922f937 100644 --- a/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md @@ -22,14 +22,6 @@ description: messages.setInlineGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setTyping.md b/old_docs/API_docs_v68/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v68/methods/messages_setTyping.md +++ b/old_docs/API_docs_v68/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_startBot.md b/old_docs/API_docs_v68/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v68/methods/messages_startBot.md +++ b/old_docs/API_docs_v68/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md index f35f2f40..f4506918 100644 --- a/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md @@ -19,13 +19,6 @@ description: messages.toggleDialogPin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_uploadMedia.md b/old_docs/API_docs_v68/methods/messages_uploadMedia.md index 9f3f91ff..64fd8372 100644 --- a/old_docs/API_docs_v68/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v68/methods/messages_uploadMedia.md @@ -19,14 +19,6 @@ description: messages.uploadMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/payments_getPaymentForm.md b/old_docs/API_docs_v68/methods/payments_getPaymentForm.md index 15f6e26b..fa82f22d 100644 --- a/old_docs/API_docs_v68/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v68/methods/payments_getPaymentForm.md @@ -18,13 +18,6 @@ description: payments.getPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md index 51433563..d6b5f5d6 100644 --- a/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md @@ -18,13 +18,6 @@ description: payments.getPaymentReceipt parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md index a63a3980..831516a3 100644 --- a/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md @@ -21,13 +21,6 @@ description: payments.sendPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md index d839a2df..4102a473 100644 --- a/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md @@ -20,13 +20,6 @@ description: payments.validateRequestedInfo parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/phone_receivedCall.md b/old_docs/API_docs_v68/methods/phone_receivedCall.md index 9d59b1ea..b06a90ad 100644 --- a/old_docs/API_docs_v68/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v68/methods/phone_receivedCall.md @@ -18,14 +18,6 @@ description: phone.receivedCall parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_ALREADY_DECLINED|The call was already declined| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/phone_saveCallDebug.md b/old_docs/API_docs_v68/methods/phone_saveCallDebug.md index 4dee5c97..589dc522 100644 --- a/old_docs/API_docs_v68/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v68/methods/phone_saveCallDebug.md @@ -19,14 +19,6 @@ description: phone.saveCallDebug parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| -|DATA_JSON_INVALID|The provided JSON data is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/phone_setCallRating.md b/old_docs/API_docs_v68/methods/phone_setCallRating.md index fea236d1..a2b2e27c 100644 --- a/old_docs/API_docs_v68/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v68/methods/phone_setCallRating.md @@ -20,13 +20,6 @@ description: phone.setCallRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/photos_getUserPhotos.md b/old_docs/API_docs_v68/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v68/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v68/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md index 58541f23..6de32dae 100644 --- a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md @@ -18,17 +18,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md index bf62fa09..620e773a 100644 --- a/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md @@ -19,14 +19,6 @@ description: stickers.addStickerToSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md index a5784b3a..b7f38ec3 100644 --- a/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md @@ -19,14 +19,6 @@ description: stickers.changeStickerPosition parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKER_INVALID|The provided sticker is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md index 02ec673b..cacdd73a 100644 --- a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md @@ -22,17 +22,6 @@ description: stickers.createStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|PACK_SHORT_NAME_INVALID|Short pack name invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|STICKERS_EMPTY|No sticker provided| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md index d485db14..7edd4b43 100644 --- a/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md @@ -18,14 +18,6 @@ description: stickers.removeStickerFromSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKER_INVALID|The provided sticker is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/upload_getWebFile.md b/old_docs/API_docs_v68/methods/upload_getWebFile.md index ec7c05b4..fab17a7f 100644 --- a/old_docs/API_docs_v68/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v68/methods/upload_getWebFile.md @@ -20,13 +20,6 @@ description: upload.getWebFile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LOCATION_INVALID|The provided location is invalid| - - ### Example: diff --git a/old_docs/API_docs_v68/methods/users_getUsers.md b/old_docs/API_docs_v68/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v68/methods/users_getUsers.md +++ b/old_docs/API_docs_v68/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/README.md b/old_docs/API_docs_v70/methods/README.md index 81a2f5ec..8305a302 100644 --- a/old_docs/API_docs_v70/methods/README.md +++ b/old_docs/API_docs_v70/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v70/methods/account_changePhone.md b/old_docs/API_docs_v70/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v70/methods/account_changePhone.md +++ b/old_docs/API_docs_v70/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_checkUsername.md b/old_docs/API_docs_v70/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v70/methods/account_checkUsername.md +++ b/old_docs/API_docs_v70/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_confirmPhone.md b/old_docs/API_docs_v70/methods/account_confirmPhone.md index 0d2dc5c6..c2526b2a 100644 --- a/old_docs/API_docs_v70/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v70/methods/account_confirmPhone.md @@ -19,14 +19,6 @@ description: account.confirmPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_HASH_INVALID|Code hash invalid| -|PHONE_CODE_EMPTY|phone_code is missing| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_getNotifySettings.md b/old_docs/API_docs_v70/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v70/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v70/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_getPasswordSettings.md b/old_docs/API_docs_v70/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v70/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v70/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_getPrivacy.md b/old_docs/API_docs_v70/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v70/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v70/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_getTmpPassword.md b/old_docs/API_docs_v70/methods/account_getTmpPassword.md index a6fed592..c368baf7 100644 --- a/old_docs/API_docs_v70/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v70/methods/account_getTmpPassword.md @@ -19,13 +19,6 @@ description: account.getTmpPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TMP_PASSWORD_DISABLED|The temporary password is disabled| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_registerDevice.md b/old_docs/API_docs_v70/methods/account_registerDevice.md index 3cc7f98d..6865551e 100644 --- a/old_docs/API_docs_v70/methods/account_registerDevice.md +++ b/old_docs/API_docs_v70/methods/account_registerDevice.md @@ -19,13 +19,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_reportPeer.md b/old_docs/API_docs_v70/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v70/methods/account_reportPeer.md +++ b/old_docs/API_docs_v70/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_resetAuthorization.md b/old_docs/API_docs_v70/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v70/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v70/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md index 4be218f2..a1f49156 100644 --- a/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md @@ -20,13 +20,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md index 009fcb09..5ad44987 100644 --- a/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md @@ -20,13 +20,6 @@ description: account.sendConfirmPhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_setAccountTTL.md b/old_docs/API_docs_v70/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v70/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v70/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_setPrivacy.md b/old_docs/API_docs_v70/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v70/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v70/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_unregisterDevice.md b/old_docs/API_docs_v70/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v70/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v70/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_updateNotifySettings.md b/old_docs/API_docs_v70/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v70/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v70/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_updateProfile.md b/old_docs/API_docs_v70/methods/account_updateProfile.md index a50eaea5..531bbb02 100644 --- a/old_docs/API_docs_v70/methods/account_updateProfile.md +++ b/old_docs/API_docs_v70/methods/account_updateProfile.md @@ -20,14 +20,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/account_updateUsername.md b/old_docs/API_docs_v70/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v70/methods/account_updateUsername.md +++ b/old_docs/API_docs_v70/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_cancelCode.md b/old_docs/API_docs_v70/methods/auth_cancelCode.md index dc390329..cc93fff5 100644 --- a/old_docs/API_docs_v70/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v70/methods/auth_cancelCode.md @@ -19,13 +19,6 @@ description: auth.cancelCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_checkPassword.md b/old_docs/API_docs_v70/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v70/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v70/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_checkPhone.md b/old_docs/API_docs_v70/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v70/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v70/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_exportAuthorization.md b/old_docs/API_docs_v70/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v70/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v70/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_importAuthorization.md b/old_docs/API_docs_v70/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v70/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v70/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_recoverPassword.md b/old_docs/API_docs_v70/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v70/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v70/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_resendCode.md b/old_docs/API_docs_v70/methods/auth_resendCode.md index 14d08ddd..92f7aa30 100644 --- a/old_docs/API_docs_v70/methods/auth_resendCode.md +++ b/old_docs/API_docs_v70/methods/auth_resendCode.md @@ -19,13 +19,6 @@ description: auth.resendCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_sendInvites.md b/old_docs/API_docs_v70/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v70/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v70/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md index ae1efce3..59c134d4 100644 --- a/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md @@ -19,14 +19,6 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md index 927f18c5..57a49e6e 100644 --- a/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md @@ -19,13 +19,6 @@ description: bots.sendCustomRequest parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_checkUsername.md b/old_docs/API_docs_v70/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v70/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v70/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_createChannel.md b/old_docs/API_docs_v70/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v70/methods/channels_createChannel.md +++ b/old_docs/API_docs_v70/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_deleteChannel.md b/old_docs/API_docs_v70/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v70/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_deleteMessages.md b/old_docs/API_docs_v70/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v70/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_editAbout.md b/old_docs/API_docs_v70/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v70/methods/channels_editAbout.md +++ b/old_docs/API_docs_v70/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_editAdmin.md b/old_docs/API_docs_v70/methods/channels_editAdmin.md index 4147c213..242496ab 100644 --- a/old_docs/API_docs_v70/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v70/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_editBanned.md b/old_docs/API_docs_v70/methods/channels_editBanned.md index 7fb904b9..7d3fc1d0 100644 --- a/old_docs/API_docs_v70/methods/channels_editBanned.md +++ b/old_docs/API_docs_v70/methods/channels_editBanned.md @@ -20,17 +20,6 @@ description: channels.editBanned parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ADMIN_INVALID|You're not an admin| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_editPhoto.md b/old_docs/API_docs_v70/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v70/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v70/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_editTitle.md b/old_docs/API_docs_v70/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v70/methods/channels_editTitle.md +++ b/old_docs/API_docs_v70/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_exportInvite.md b/old_docs/API_docs_v70/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v70/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v70/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_exportMessageLink.md b/old_docs/API_docs_v70/methods/channels_exportMessageLink.md index 9831c9c0..9e7135ab 100644 --- a/old_docs/API_docs_v70/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v70/methods/channels_exportMessageLink.md @@ -19,13 +19,6 @@ description: channels.exportMessageLink parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_getAdminLog.md b/old_docs/API_docs_v70/methods/channels_getAdminLog.md index f4a70e98..4775c872 100644 --- a/old_docs/API_docs_v70/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v70/methods/channels_getAdminLog.md @@ -24,14 +24,6 @@ description: channels.getAdminLog parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_getChannels.md b/old_docs/API_docs_v70/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v70/methods/channels_getChannels.md +++ b/old_docs/API_docs_v70/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_getMessages.md b/old_docs/API_docs_v70/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v70/methods/channels_getMessages.md +++ b/old_docs/API_docs_v70/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_getParticipant.md b/old_docs/API_docs_v70/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v70/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v70/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_inviteToChannel.md b/old_docs/API_docs_v70/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v70/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v70/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_joinChannel.md b/old_docs/API_docs_v70/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v70/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v70/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_leaveChannel.md b/old_docs/API_docs_v70/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v70/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v70/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_readHistory.md b/old_docs/API_docs_v70/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v70/methods/channels_readHistory.md +++ b/old_docs/API_docs_v70/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_reportSpam.md b/old_docs/API_docs_v70/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v70/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v70/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_toggleInvites.md b/old_docs/API_docs_v70/methods/channels_toggleInvites.md index d84339b2..0733d419 100644 --- a/old_docs/API_docs_v70/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v70/methods/channels_toggleInvites.md @@ -19,14 +19,6 @@ description: channels.toggleInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_toggleSignatures.md b/old_docs/API_docs_v70/methods/channels_toggleSignatures.md index a214b849..3056eaee 100644 --- a/old_docs/API_docs_v70/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v70/methods/channels_toggleSignatures.md @@ -19,13 +19,6 @@ description: channels.toggleSignatures parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md index 7376df10..d2314d85 100644 --- a/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md @@ -20,15 +20,6 @@ description: channels.updatePinnedMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_updateUsername.md b/old_docs/API_docs_v70/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v70/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v70/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_block.md b/old_docs/API_docs_v70/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v70/methods/contacts_block.md +++ b/old_docs/API_docs_v70/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_deleteContact.md b/old_docs/API_docs_v70/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v70/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v70/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_deleteContacts.md b/old_docs/API_docs_v70/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v70/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v70/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_getTopPeers.md b/old_docs/API_docs_v70/methods/contacts_getTopPeers.md index cbd64cc0..a1c85ce0 100644 --- a/old_docs/API_docs_v70/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v70/methods/contacts_getTopPeers.md @@ -26,13 +26,6 @@ description: contacts.getTopPeers parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TYPES_EMPTY|The types field is empty| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_importCard.md b/old_docs/API_docs_v70/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v70/methods/contacts_importCard.md +++ b/old_docs/API_docs_v70/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md index 738494b2..2f784189 100644 --- a/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md @@ -19,13 +19,6 @@ description: contacts.resetTopPeerRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_search.md b/old_docs/API_docs_v70/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v70/methods/contacts_search.md +++ b/old_docs/API_docs_v70/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_unblock.md b/old_docs/API_docs_v70/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v70/methods/contacts_unblock.md +++ b/old_docs/API_docs_v70/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/initConnection.md b/old_docs/API_docs_v70/methods/initConnection.md index b66ab859..c34dd3d0 100644 --- a/old_docs/API_docs_v70/methods/initConnection.md +++ b/old_docs/API_docs_v70/methods/initConnection.md @@ -25,14 +25,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/invokeWithLayer.md b/old_docs/API_docs_v70/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v70/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v70/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/langpack_getDifference.md b/old_docs/API_docs_v70/methods/langpack_getDifference.md index 2e77cc3b..422a3b55 100644 --- a/old_docs/API_docs_v70/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v70/methods/langpack_getDifference.md @@ -18,13 +18,6 @@ description: langpack.getDifference parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/langpack_getLangPack.md b/old_docs/API_docs_v70/methods/langpack_getLangPack.md index 5d4d0b81..de1e01ed 100644 --- a/old_docs/API_docs_v70/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v70/methods/langpack_getLangPack.md @@ -18,13 +18,6 @@ description: langpack.getLangPack parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/langpack_getLanguages.md b/old_docs/API_docs_v70/methods/langpack_getLanguages.md index abaa0de3..4fccd707 100644 --- a/old_docs/API_docs_v70/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v70/methods/langpack_getLanguages.md @@ -13,13 +13,6 @@ description: langpack.getLanguages parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/langpack_getStrings.md b/old_docs/API_docs_v70/methods/langpack_getStrings.md index 9bb740dc..fd1e0534 100644 --- a/old_docs/API_docs_v70/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v70/methods/langpack_getStrings.md @@ -19,13 +19,6 @@ description: langpack.getStrings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_addChatUser.md b/old_docs/API_docs_v70/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v70/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v70/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_checkChatInvite.md b/old_docs/API_docs_v70/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v70/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_createChat.md b/old_docs/API_docs_v70/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v70/methods/messages_createChat.md +++ b/old_docs/API_docs_v70/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_deleteChatUser.md b/old_docs/API_docs_v70/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v70/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_deleteHistory.md b/old_docs/API_docs_v70/methods/messages_deleteHistory.md index ce6ba6e7..fb9b7763 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v70/methods/messages_deleteHistory.md @@ -20,13 +20,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_deleteMessages.md b/old_docs/API_docs_v70/methods/messages_deleteMessages.md index 2b88a73f..2949f64a 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v70/methods/messages_deleteMessages.md @@ -19,13 +19,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_editChatAdmin.md b/old_docs/API_docs_v70/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v70/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_editChatPhoto.md b/old_docs/API_docs_v70/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v70/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_editChatTitle.md b/old_docs/API_docs_v70/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v70/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md index 621c81a3..083d4a61 100644 --- a/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md @@ -23,14 +23,6 @@ description: messages.editInlineBotMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_editMessage.md b/old_docs/API_docs_v70/methods/messages_editMessage.md index 8bc79038..a2766336 100644 --- a/old_docs/API_docs_v70/methods/messages_editMessage.md +++ b/old_docs/API_docs_v70/methods/messages_editMessage.md @@ -24,20 +24,6 @@ description: messages.editMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_exportChatInvite.md b/old_docs/API_docs_v70/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v70/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessage.md b/old_docs/API_docs_v70/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessages.md b/old_docs/API_docs_v70/methods/messages_forwardMessages.md index e08cc5ba..8b91a208 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessages.md @@ -23,31 +23,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md index 433144c3..9d9470d0 100644 --- a/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md @@ -21,16 +21,6 @@ description: messages.getBotCallbackAnswer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getChats.md b/old_docs/API_docs_v70/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v70/methods/messages_getChats.md +++ b/old_docs/API_docs_v70/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getCommonChats.md b/old_docs/API_docs_v70/methods/messages_getCommonChats.md index 0c601ca9..985a52df 100644 --- a/old_docs/API_docs_v70/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v70/methods/messages_getCommonChats.md @@ -20,13 +20,6 @@ description: messages.getCommonChats parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getDhConfig.md b/old_docs/API_docs_v70/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v70/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v70/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getDialogs.md b/old_docs/API_docs_v70/methods/messages_getDialogs.md index 27f0d655..e38aa996 100644 --- a/old_docs/API_docs_v70/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_getDialogs.md @@ -22,15 +22,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getGameHighScores.md b/old_docs/API_docs_v70/methods/messages_getGameHighScores.md index 935bb95a..d558df8a 100644 --- a/old_docs/API_docs_v70/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v70/methods/messages_getGameHighScores.md @@ -20,14 +20,6 @@ description: messages.getGameHighScores parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getHistory.md b/old_docs/API_docs_v70/methods/messages_getHistory.md index f6db78c4..273eb6a9 100644 --- a/old_docs/API_docs_v70/methods/messages_getHistory.md +++ b/old_docs/API_docs_v70/methods/messages_getHistory.md @@ -24,18 +24,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md index ad41660e..f5da1c5a 100644 --- a/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md @@ -22,15 +22,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md index 7cc04d0d..24b512ca 100644 --- a/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md @@ -19,14 +19,6 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getMessageEditData.md b/old_docs/API_docs_v70/methods/messages_getMessageEditData.md index 4e20a108..ee07fd74 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v70/methods/messages_getMessageEditData.md @@ -19,14 +19,6 @@ description: messages.getMessageEditData parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getMessagesViews.md b/old_docs/API_docs_v70/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v70/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md index 3da60038..e388e309 100644 --- a/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md @@ -18,14 +18,6 @@ description: messages.getPeerDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getPeerSettings.md b/old_docs/API_docs_v70/methods/messages_getPeerSettings.md index d3e3cfc3..26776c43 100644 --- a/old_docs/API_docs_v70/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v70/methods/messages_getPeerSettings.md @@ -18,14 +18,6 @@ description: messages.getPeerSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getStickerSet.md b/old_docs/API_docs_v70/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v70/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_hideReportSpam.md b/old_docs/API_docs_v70/methods/messages_hideReportSpam.md index 2dfe4dd7..20bc6f18 100644 --- a/old_docs/API_docs_v70/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v70/methods/messages_hideReportSpam.md @@ -18,13 +18,6 @@ description: messages.hideReportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_importChatInvite.md b/old_docs/API_docs_v70/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v70/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_installStickerSet.md b/old_docs/API_docs_v70/methods/messages_installStickerSet.md index 3dde52a7..6073eb13 100644 --- a/old_docs/API_docs_v70/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_migrateChat.md b/old_docs/API_docs_v70/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v70/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v70/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_readHistory.md b/old_docs/API_docs_v70/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v70/methods/messages_readHistory.md +++ b/old_docs/API_docs_v70/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_receivedQueue.md b/old_docs/API_docs_v70/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v70/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v70/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md index 30102fd7..2660b363 100644 --- a/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md @@ -19,13 +19,6 @@ description: messages.reorderPinnedDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md index 30ef3473..5764b848 100644 --- a/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md @@ -18,13 +18,6 @@ description: messages.reportEncryptedSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_reportSpam.md b/old_docs/API_docs_v70/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v70/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v70/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_saveDraft.md b/old_docs/API_docs_v70/methods/messages_saveDraft.md index 42308b46..ef5e65c5 100644 --- a/old_docs/API_docs_v70/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v70/methods/messages_saveDraft.md @@ -23,13 +23,6 @@ description: messages.saveDraft parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_saveGif.md b/old_docs/API_docs_v70/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v70/methods/messages_saveGif.md +++ b/old_docs/API_docs_v70/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md index 8d45be5e..cb4f98b3 100644 --- a/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md @@ -20,13 +20,6 @@ description: messages.saveRecentSticker parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKER_ID_INVALID|The provided sticker ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_search.md b/old_docs/API_docs_v70/methods/messages_search.md index 2d6062a7..dfdb24f7 100644 --- a/old_docs/API_docs_v70/methods/messages_search.md +++ b/old_docs/API_docs_v70/methods/messages_search.md @@ -26,17 +26,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_searchGifs.md b/old_docs/API_docs_v70/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v70/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v70/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_searchGlobal.md b/old_docs/API_docs_v70/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v70/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v70/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendEncrypted.md b/old_docs/API_docs_v70/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md index 8a91e882..6ab41f50 100644 --- a/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md @@ -24,15 +24,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendMedia.md b/old_docs/API_docs_v70/methods/messages_sendMedia.md index 6c5e65d5..68e2c41b 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v70/methods/messages_sendMedia.md @@ -24,27 +24,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendMessage.md b/old_docs/API_docs_v70/methods/messages_sendMessage.md index f9f2aa8a..cabccdb3 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v70/methods/messages_sendMessage.md @@ -27,31 +27,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md index a725a12b..7c895738 100644 --- a/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md +++ b/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md @@ -19,13 +19,6 @@ description: messages.sendScreenshotNotification parameters, return type and exa ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md index 2c51854f..ef9b8f7a 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md @@ -22,13 +22,6 @@ description: messages.setBotCallbackAnswer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md index 25ed5ed5..92bdcb9e 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md @@ -20,13 +20,6 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ERROR_TEXT_EMPTY|The provided error message is empty| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md index 49ac2896..e2c7cd45 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md @@ -20,13 +20,6 @@ description: messages.setBotShippingResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setGameScore.md b/old_docs/API_docs_v70/methods/messages_setGameScore.md index 3137f7c9..f16a7539 100644 --- a/old_docs/API_docs_v70/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v70/methods/messages_setGameScore.md @@ -23,14 +23,6 @@ description: messages.setGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md index 8b5625f3..cf74e5e4 100644 --- a/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md @@ -24,23 +24,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md index 36752f35..c922f937 100644 --- a/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md @@ -22,14 +22,6 @@ description: messages.setInlineGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setTyping.md b/old_docs/API_docs_v70/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v70/methods/messages_setTyping.md +++ b/old_docs/API_docs_v70/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_startBot.md b/old_docs/API_docs_v70/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v70/methods/messages_startBot.md +++ b/old_docs/API_docs_v70/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md index f35f2f40..f4506918 100644 --- a/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md @@ -19,13 +19,6 @@ description: messages.toggleDialogPin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_uploadMedia.md b/old_docs/API_docs_v70/methods/messages_uploadMedia.md index 9f3f91ff..64fd8372 100644 --- a/old_docs/API_docs_v70/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v70/methods/messages_uploadMedia.md @@ -19,14 +19,6 @@ description: messages.uploadMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/payments_getPaymentForm.md b/old_docs/API_docs_v70/methods/payments_getPaymentForm.md index 15f6e26b..fa82f22d 100644 --- a/old_docs/API_docs_v70/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v70/methods/payments_getPaymentForm.md @@ -18,13 +18,6 @@ description: payments.getPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md index 51433563..d6b5f5d6 100644 --- a/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md @@ -18,13 +18,6 @@ description: payments.getPaymentReceipt parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md index a63a3980..831516a3 100644 --- a/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md @@ -21,13 +21,6 @@ description: payments.sendPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md index d839a2df..4102a473 100644 --- a/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md @@ -20,13 +20,6 @@ description: payments.validateRequestedInfo parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/phone_receivedCall.md b/old_docs/API_docs_v70/methods/phone_receivedCall.md index 9d59b1ea..b06a90ad 100644 --- a/old_docs/API_docs_v70/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v70/methods/phone_receivedCall.md @@ -18,14 +18,6 @@ description: phone.receivedCall parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_ALREADY_DECLINED|The call was already declined| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/phone_saveCallDebug.md b/old_docs/API_docs_v70/methods/phone_saveCallDebug.md index 4dee5c97..589dc522 100644 --- a/old_docs/API_docs_v70/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v70/methods/phone_saveCallDebug.md @@ -19,14 +19,6 @@ description: phone.saveCallDebug parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| -|DATA_JSON_INVALID|The provided JSON data is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/phone_setCallRating.md b/old_docs/API_docs_v70/methods/phone_setCallRating.md index fea236d1..a2b2e27c 100644 --- a/old_docs/API_docs_v70/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v70/methods/phone_setCallRating.md @@ -20,13 +20,6 @@ description: phone.setCallRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/photos_getUserPhotos.md b/old_docs/API_docs_v70/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v70/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v70/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md index 58541f23..6de32dae 100644 --- a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md @@ -18,17 +18,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md index bf62fa09..620e773a 100644 --- a/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md @@ -19,14 +19,6 @@ description: stickers.addStickerToSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md index 942d3a33..6b517d4c 100644 --- a/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md @@ -19,14 +19,6 @@ description: stickers.changeStickerPosition parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKER_INVALID|The provided sticker is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md index 02ec673b..cacdd73a 100644 --- a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md @@ -22,17 +22,6 @@ description: stickers.createStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|PACK_SHORT_NAME_INVALID|Short pack name invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|STICKERS_EMPTY|No sticker provided| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md index 51e52f95..941b24f4 100644 --- a/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md @@ -18,14 +18,6 @@ description: stickers.removeStickerFromSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKER_INVALID|The provided sticker is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/upload_getWebFile.md b/old_docs/API_docs_v70/methods/upload_getWebFile.md index ec7c05b4..fab17a7f 100644 --- a/old_docs/API_docs_v70/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v70/methods/upload_getWebFile.md @@ -20,13 +20,6 @@ description: upload.getWebFile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LOCATION_INVALID|The provided location is invalid| - - ### Example: diff --git a/old_docs/API_docs_v70/methods/users_getUsers.md b/old_docs/API_docs_v70/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v70/methods/users_getUsers.md +++ b/old_docs/API_docs_v70/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/README.md b/old_docs/API_docs_v71/methods/README.md index b8d391a8..07f2ea19 100644 --- a/old_docs/API_docs_v71/methods/README.md +++ b/old_docs/API_docs_v71/methods/README.md @@ -14,7 +14,7 @@ $MadelineProto->[complete_phone_login](https://docs.madelineproto.xyz/complete_p $MadelineProto->[complete_2FA_login](https://docs.madelineproto.xyz/complete_2FA_login.html)($password); -$MadelineProto->[bot_login](https://docs.madelineproto.xyz/complete_phone_login.html)($token); +$MadelineProto->[bot_login](https://docs.madelineproto.xyz/bot_login.html)($token); $MadelineProto->[get_dialogs](https://docs.madelineproto.xyz/get_dialogs.html)(); diff --git a/old_docs/API_docs_v71/methods/account_changePhone.md b/old_docs/API_docs_v71/methods/account_changePhone.md index 5d1801d0..fd659365 100644 --- a/old_docs/API_docs_v71/methods/account_changePhone.md +++ b/old_docs/API_docs_v71/methods/account_changePhone.md @@ -20,13 +20,6 @@ description: account.changePhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_checkUsername.md b/old_docs/API_docs_v71/methods/account_checkUsername.md index afc59b6c..3d8746b5 100644 --- a/old_docs/API_docs_v71/methods/account_checkUsername.md +++ b/old_docs/API_docs_v71/methods/account_checkUsername.md @@ -18,13 +18,6 @@ description: account.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_confirmPhone.md b/old_docs/API_docs_v71/methods/account_confirmPhone.md index 0d2dc5c6..c2526b2a 100644 --- a/old_docs/API_docs_v71/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v71/methods/account_confirmPhone.md @@ -19,14 +19,6 @@ description: account.confirmPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_HASH_INVALID|Code hash invalid| -|PHONE_CODE_EMPTY|phone_code is missing| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_getNotifySettings.md b/old_docs/API_docs_v71/methods/account_getNotifySettings.md index 8ee710d8..a00cb68b 100644 --- a/old_docs/API_docs_v71/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v71/methods/account_getNotifySettings.md @@ -18,13 +18,6 @@ description: account.getNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_getPasswordSettings.md b/old_docs/API_docs_v71/methods/account_getPasswordSettings.md index 02cb77f7..623cdd16 100644 --- a/old_docs/API_docs_v71/methods/account_getPasswordSettings.md +++ b/old_docs/API_docs_v71/methods/account_getPasswordSettings.md @@ -18,13 +18,6 @@ description: account.getPasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_getPrivacy.md b/old_docs/API_docs_v71/methods/account_getPrivacy.md index 52786b79..1197b79f 100644 --- a/old_docs/API_docs_v71/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v71/methods/account_getPrivacy.md @@ -18,13 +18,6 @@ description: account.getPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_getTmpPassword.md b/old_docs/API_docs_v71/methods/account_getTmpPassword.md index a6fed592..c368baf7 100644 --- a/old_docs/API_docs_v71/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v71/methods/account_getTmpPassword.md @@ -19,13 +19,6 @@ description: account.getTmpPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TMP_PASSWORD_DISABLED|The temporary password is disabled| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_registerDevice.md b/old_docs/API_docs_v71/methods/account_registerDevice.md index 3cc7f98d..6865551e 100644 --- a/old_docs/API_docs_v71/methods/account_registerDevice.md +++ b/old_docs/API_docs_v71/methods/account_registerDevice.md @@ -19,13 +19,6 @@ description: account.registerDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_reportPeer.md b/old_docs/API_docs_v71/methods/account_reportPeer.md index 1545c3b8..a23458df 100644 --- a/old_docs/API_docs_v71/methods/account_reportPeer.md +++ b/old_docs/API_docs_v71/methods/account_reportPeer.md @@ -19,13 +19,6 @@ description: account.reportPeer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_resetAuthorization.md b/old_docs/API_docs_v71/methods/account_resetAuthorization.md index e44334f2..41940ac0 100644 --- a/old_docs/API_docs_v71/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v71/methods/account_resetAuthorization.md @@ -18,13 +18,6 @@ description: account.resetAuthorization parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md index 4be218f2..a1f49156 100644 --- a/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v71/methods/account_sendChangePhoneCode.md @@ -20,13 +20,6 @@ description: account.sendChangePhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md index 009fcb09..5ad44987 100644 --- a/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v71/methods/account_sendConfirmPhoneCode.md @@ -20,13 +20,6 @@ description: account.sendConfirmPhoneCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|HASH_INVALID|The provided hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_setAccountTTL.md b/old_docs/API_docs_v71/methods/account_setAccountTTL.md index f06eb676..035b5584 100644 --- a/old_docs/API_docs_v71/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v71/methods/account_setAccountTTL.md @@ -18,13 +18,6 @@ description: account.setAccountTTL parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TTL_DAYS_INVALID|The provided TTL is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_setPrivacy.md b/old_docs/API_docs_v71/methods/account_setPrivacy.md index 56aebbcc..768f1c1a 100644 --- a/old_docs/API_docs_v71/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v71/methods/account_setPrivacy.md @@ -19,13 +19,6 @@ description: account.setPrivacy parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PRIVACY_KEY_INVALID|The privacy key is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_unregisterDevice.md b/old_docs/API_docs_v71/methods/account_unregisterDevice.md index 41899b6e..ebdcd222 100644 --- a/old_docs/API_docs_v71/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v71/methods/account_unregisterDevice.md @@ -19,13 +19,6 @@ description: account.unregisterDevice parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TOKEN_INVALID|The provided token is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_updateNotifySettings.md b/old_docs/API_docs_v71/methods/account_updateNotifySettings.md index 8389b5c2..4e45415b 100644 --- a/old_docs/API_docs_v71/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v71/methods/account_updateNotifySettings.md @@ -19,13 +19,6 @@ description: account.updateNotifySettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md index ad4c10cc..6a3b6e3f 100644 --- a/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v71/methods/account_updatePasswordSettings.md @@ -19,15 +19,6 @@ description: account.updatePasswordSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEW_SALT_INVALID|The new salt is invalid| -|NEW_SETTINGS_INVALID|The new settings are invalid| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_updateProfile.md b/old_docs/API_docs_v71/methods/account_updateProfile.md index a50eaea5..531bbb02 100644 --- a/old_docs/API_docs_v71/methods/account_updateProfile.md +++ b/old_docs/API_docs_v71/methods/account_updateProfile.md @@ -20,14 +20,6 @@ description: account.updateProfile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long| -|FIRSTNAME_INVALID|The first name is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/account_updateUsername.md b/old_docs/API_docs_v71/methods/account_updateUsername.md index 22be2fd4..ec677a83 100644 --- a/old_docs/API_docs_v71/methods/account_updateUsername.md +++ b/old_docs/API_docs_v71/methods/account_updateUsername.md @@ -18,15 +18,6 @@ description: account.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_NOT_MODIFIED|The username was not modified| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v71/methods/auth_bindTempAuthKey.md index e3d72dd5..4c4fb228 100644 --- a/old_docs/API_docs_v71/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v71/methods/auth_bindTempAuthKey.md @@ -21,15 +21,6 @@ description: auth.bindTempAuthKey parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| -|INPUT_REQUEST_TOO_LONG|The request is too big| -|TEMP_AUTH_KEY_EMPTY|No temporary auth key provided| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/auth_cancelCode.md b/old_docs/API_docs_v71/methods/auth_cancelCode.md index dc390329..cc93fff5 100644 --- a/old_docs/API_docs_v71/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v71/methods/auth_cancelCode.md @@ -19,13 +19,6 @@ description: auth.cancelCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/auth_checkPassword.md b/old_docs/API_docs_v71/methods/auth_checkPassword.md index d5559186..9456c29e 100644 --- a/old_docs/API_docs_v71/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v71/methods/auth_checkPassword.md @@ -18,13 +18,6 @@ description: auth.checkPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_HASH_INVALID|The provided password hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/auth_checkPhone.md b/old_docs/API_docs_v71/methods/auth_checkPhone.md index 3455904d..9acbe605 100644 --- a/old_docs/API_docs_v71/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v71/methods/auth_checkPhone.md @@ -18,15 +18,6 @@ description: auth.checkPhone parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| -|PHONE_NUMBER_INVALID|The phone number is invalid| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/auth_exportAuthorization.md b/old_docs/API_docs_v71/methods/auth_exportAuthorization.md index 44c45b70..63a9f058 100644 --- a/old_docs/API_docs_v71/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v71/methods/auth_exportAuthorization.md @@ -18,13 +18,6 @@ description: auth.exportAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DC_ID_INVALID|The provided DC ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/auth_importAuthorization.md b/old_docs/API_docs_v71/methods/auth_importAuthorization.md index e0fd534f..83c50cb8 100644 --- a/old_docs/API_docs_v71/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v71/methods/auth_importAuthorization.md @@ -19,14 +19,6 @@ description: auth.importAuthorization parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/auth_recoverPassword.md b/old_docs/API_docs_v71/methods/auth_recoverPassword.md index c2ce3fed..113638eb 100644 --- a/old_docs/API_docs_v71/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v71/methods/auth_recoverPassword.md @@ -18,13 +18,6 @@ description: auth.recoverPassword parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CODE_EMPTY|The provided code is empty| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md index 101b1cf7..043420f0 100644 --- a/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v71/methods/auth_requestPasswordRecovery.md @@ -13,13 +13,6 @@ description: auth.requestPasswordRecovery parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PASSWORD_EMPTY|The provided password is empty| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/auth_resendCode.md b/old_docs/API_docs_v71/methods/auth_resendCode.md index 14d08ddd..92f7aa30 100644 --- a/old_docs/API_docs_v71/methods/auth_resendCode.md +++ b/old_docs/API_docs_v71/methods/auth_resendCode.md @@ -19,13 +19,6 @@ description: auth.resendCode parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PHONE_NUMBER_INVALID|The phone number is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md index 87a39a22..d0e4582d 100644 --- a/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v71/methods/auth_resetAuthorizations.md @@ -13,13 +13,6 @@ description: auth.resetAuthorizations parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/auth_sendInvites.md b/old_docs/API_docs_v71/methods/auth_sendInvites.md index 604fc65d..8141275d 100644 --- a/old_docs/API_docs_v71/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v71/methods/auth_sendInvites.md @@ -19,13 +19,6 @@ description: auth.sendInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_EMPTY|The provided message is empty| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v71/methods/bots_answerWebhookJSONQuery.md index ae1efce3..59c134d4 100644 --- a/old_docs/API_docs_v71/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v71/methods/bots_answerWebhookJSONQuery.md @@ -19,14 +19,6 @@ description: bots.answerWebhookJSONQuery parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md index 927f18c5..57a49e6e 100644 --- a/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v71/methods/bots_sendCustomRequest.md @@ -19,13 +19,6 @@ description: bots.sendCustomRequest parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_checkUsername.md b/old_docs/API_docs_v71/methods/channels_checkUsername.md index d6ea876d..98858545 100644 --- a/old_docs/API_docs_v71/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v71/methods/channels_checkUsername.md @@ -19,15 +19,6 @@ description: channels.checkUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ID_INVALID|The provided chat id is invalid| -|USERNAME_INVALID|The provided username is not valid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_createChannel.md b/old_docs/API_docs_v71/methods/channels_createChannel.md index 9ba02e9e..b87fb840 100644 --- a/old_docs/API_docs_v71/methods/channels_createChannel.md +++ b/old_docs/API_docs_v71/methods/channels_createChannel.md @@ -21,14 +21,6 @@ description: channels.createChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_TITLE_EMPTY|No chat title provided| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_deleteChannel.md b/old_docs/API_docs_v71/methods/channels_deleteChannel.md index 912ab080..09c2458d 100644 --- a/old_docs/API_docs_v71/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v71/methods/channels_deleteChannel.md @@ -18,14 +18,6 @@ description: channels.deleteChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_deleteMessages.md b/old_docs/API_docs_v71/methods/channels_deleteMessages.md index b3481294..ef6264f7 100644 --- a/old_docs/API_docs_v71/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v71/methods/channels_deleteMessages.md @@ -19,15 +19,6 @@ description: channels.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md index 66843269..7bf7bcdd 100644 --- a/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md @@ -19,14 +19,6 @@ description: channels.deleteUserHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_editAbout.md b/old_docs/API_docs_v71/methods/channels_editAbout.md index 9438df1b..f5d7c9f0 100644 --- a/old_docs/API_docs_v71/methods/channels_editAbout.md +++ b/old_docs/API_docs_v71/methods/channels_editAbout.md @@ -19,15 +19,6 @@ description: channels.editAbout parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_editAdmin.md b/old_docs/API_docs_v71/methods/channels_editAdmin.md index 4147c213..242496ab 100644 --- a/old_docs/API_docs_v71/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v71/methods/channels_editAdmin.md @@ -20,20 +20,6 @@ description: channels.editAdmin parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|RIGHT_FORBIDDEN|Your admin rights do not allow you to do this| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_editBanned.md b/old_docs/API_docs_v71/methods/channels_editBanned.md index 7fb904b9..7d3fc1d0 100644 --- a/old_docs/API_docs_v71/methods/channels_editBanned.md +++ b/old_docs/API_docs_v71/methods/channels_editBanned.md @@ -20,17 +20,6 @@ description: channels.editBanned parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ADMIN_INVALID|You're not an admin| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_editPhoto.md b/old_docs/API_docs_v71/methods/channels_editPhoto.md index 5511f4a4..c5b82316 100644 --- a/old_docs/API_docs_v71/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v71/methods/channels_editPhoto.md @@ -19,13 +19,6 @@ description: channels.editPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_editTitle.md b/old_docs/API_docs_v71/methods/channels_editTitle.md index 04e8ce12..8c023c9e 100644 --- a/old_docs/API_docs_v71/methods/channels_editTitle.md +++ b/old_docs/API_docs_v71/methods/channels_editTitle.md @@ -19,15 +19,6 @@ description: channels.editTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_exportInvite.md b/old_docs/API_docs_v71/methods/channels_exportInvite.md index 2ed80f6c..9bc223cd 100644 --- a/old_docs/API_docs_v71/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v71/methods/channels_exportInvite.md @@ -18,15 +18,6 @@ description: channels.exportInvite parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|INVITE_HASH_EXPIRED|The invite link has expired| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_exportMessageLink.md b/old_docs/API_docs_v71/methods/channels_exportMessageLink.md index 9831c9c0..9e7135ab 100644 --- a/old_docs/API_docs_v71/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v71/methods/channels_exportMessageLink.md @@ -19,13 +19,6 @@ description: channels.exportMessageLink parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_getAdminLog.md b/old_docs/API_docs_v71/methods/channels_getAdminLog.md index f4a70e98..4775c872 100644 --- a/old_docs/API_docs_v71/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v71/methods/channels_getAdminLog.md @@ -24,14 +24,6 @@ description: channels.getAdminLog parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_getChannels.md b/old_docs/API_docs_v71/methods/channels_getChannels.md index 13304938..aec66fd5 100644 --- a/old_docs/API_docs_v71/methods/channels_getChannels.md +++ b/old_docs/API_docs_v71/methods/channels_getChannels.md @@ -18,15 +18,6 @@ description: channels.getChannels parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_getMessages.md b/old_docs/API_docs_v71/methods/channels_getMessages.md index ac27dd82..40ece818 100644 --- a/old_docs/API_docs_v71/methods/channels_getMessages.md +++ b/old_docs/API_docs_v71/methods/channels_getMessages.md @@ -19,14 +19,6 @@ description: channels.getMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_getParticipant.md b/old_docs/API_docs_v71/methods/channels_getParticipant.md index d2c78746..ea3b8635 100644 --- a/old_docs/API_docs_v71/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v71/methods/channels_getParticipant.md @@ -19,16 +19,6 @@ description: channels.getParticipant parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_inviteToChannel.md b/old_docs/API_docs_v71/methods/channels_inviteToChannel.md index 2eed6b3c..8ac2c9e3 100644 --- a/old_docs/API_docs_v71/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v71/methods/channels_inviteToChannel.md @@ -19,28 +19,6 @@ description: channels.inviteToChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups| -|BOTS_TOO_MUCH|There are too many bots in this chat/channel| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_BLOCKED|User blocked| -|USER_BOT|Bots can only be admins in channels.| -|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_KICKED|This user was kicked from this supergroup/channel| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_joinChannel.md b/old_docs/API_docs_v71/methods/channels_joinChannel.md index f31730a1..a3e0965b 100644 --- a/old_docs/API_docs_v71/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v71/methods/channels_joinChannel.md @@ -18,15 +18,6 @@ description: channels.joinChannel parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_leaveChannel.md b/old_docs/API_docs_v71/methods/channels_leaveChannel.md index dcb11a21..4f76ab9a 100644 --- a/old_docs/API_docs_v71/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v71/methods/channels_leaveChannel.md @@ -18,16 +18,6 @@ description: channels.leaveChannel parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|USER_CREATOR|You can't leave this channel, because you're its creator| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_readHistory.md b/old_docs/API_docs_v71/methods/channels_readHistory.md index bedc7c9c..838e748e 100644 --- a/old_docs/API_docs_v71/methods/channels_readHistory.md +++ b/old_docs/API_docs_v71/methods/channels_readHistory.md @@ -19,13 +19,6 @@ description: channels.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_readMessageContents.md b/old_docs/API_docs_v71/methods/channels_readMessageContents.md index e6401f3c..ac998616 100644 --- a/old_docs/API_docs_v71/methods/channels_readMessageContents.md +++ b/old_docs/API_docs_v71/methods/channels_readMessageContents.md @@ -19,13 +19,6 @@ description: channels.readMessageContents parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_reportSpam.md b/old_docs/API_docs_v71/methods/channels_reportSpam.md index 9b90ad2d..e08d5171 100644 --- a/old_docs/API_docs_v71/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v71/methods/channels_reportSpam.md @@ -20,13 +20,6 @@ description: channels.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_setStickers.md b/old_docs/API_docs_v71/methods/channels_setStickers.md index 6712ada0..ddc4d566 100644 --- a/old_docs/API_docs_v71/methods/channels_setStickers.md +++ b/old_docs/API_docs_v71/methods/channels_setStickers.md @@ -19,14 +19,6 @@ description: channels.setStickers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PARTICIPANTS_TOO_FEW|Not enough participants| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_toggleInvites.md b/old_docs/API_docs_v71/methods/channels_toggleInvites.md index d84339b2..0733d419 100644 --- a/old_docs/API_docs_v71/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v71/methods/channels_toggleInvites.md @@ -19,14 +19,6 @@ description: channels.toggleInvites parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_toggleSignatures.md b/old_docs/API_docs_v71/methods/channels_toggleSignatures.md index a214b849..3056eaee 100644 --- a/old_docs/API_docs_v71/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v71/methods/channels_toggleSignatures.md @@ -19,13 +19,6 @@ description: channels.toggleSignatures parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md index 7376df10..d2314d85 100644 --- a/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v71/methods/channels_updatePinnedMessage.md @@ -20,15 +20,6 @@ description: channels.updatePinnedMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/channels_updateUsername.md b/old_docs/API_docs_v71/methods/channels_updateUsername.md index 4e0b9053..f9691e5e 100644 --- a/old_docs/API_docs_v71/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v71/methods/channels_updateUsername.md @@ -19,16 +19,6 @@ description: channels.updateUsername parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|USERNAME_INVALID|The provided username is not valid| -|USERNAME_OCCUPIED|The provided username is already occupied| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/contacts_block.md b/old_docs/API_docs_v71/methods/contacts_block.md index d9d58e37..6a9ec42e 100644 --- a/old_docs/API_docs_v71/methods/contacts_block.md +++ b/old_docs/API_docs_v71/methods/contacts_block.md @@ -18,13 +18,6 @@ description: contacts.block parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/contacts_deleteContact.md b/old_docs/API_docs_v71/methods/contacts_deleteContact.md index cd8c17ad..04446ed8 100644 --- a/old_docs/API_docs_v71/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v71/methods/contacts_deleteContact.md @@ -18,13 +18,6 @@ description: contacts.deleteContact parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/contacts_deleteContacts.md b/old_docs/API_docs_v71/methods/contacts_deleteContacts.md index fc65880d..c45d7ac1 100644 --- a/old_docs/API_docs_v71/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v71/methods/contacts_deleteContacts.md @@ -18,14 +18,6 @@ description: contacts.deleteContacts parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/contacts_getTopPeers.md b/old_docs/API_docs_v71/methods/contacts_getTopPeers.md index cbd64cc0..a1c85ce0 100644 --- a/old_docs/API_docs_v71/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v71/methods/contacts_getTopPeers.md @@ -26,13 +26,6 @@ description: contacts.getTopPeers parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|TYPES_EMPTY|The types field is empty| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/contacts_importCard.md b/old_docs/API_docs_v71/methods/contacts_importCard.md index a6abf56d..1e9ea489 100644 --- a/old_docs/API_docs_v71/methods/contacts_importCard.md +++ b/old_docs/API_docs_v71/methods/contacts_importCard.md @@ -18,14 +18,6 @@ description: contacts.importCard parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|EXPORT_CARD_INVALID|Provided card is invalid| -|NEED_MEMBER_INVALID|The provided member is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md index 738494b2..2f784189 100644 --- a/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v71/methods/contacts_resetTopPeerRating.md @@ -19,13 +19,6 @@ description: contacts.resetTopPeerRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/contacts_search.md b/old_docs/API_docs_v71/methods/contacts_search.md index 9fc09dd2..de0ad6fa 100644 --- a/old_docs/API_docs_v71/methods/contacts_search.md +++ b/old_docs/API_docs_v71/methods/contacts_search.md @@ -19,14 +19,6 @@ description: contacts.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_TOO_SHORT|The query string is too short| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/contacts_unblock.md b/old_docs/API_docs_v71/methods/contacts_unblock.md index a1977c24..57885941 100644 --- a/old_docs/API_docs_v71/methods/contacts_unblock.md +++ b/old_docs/API_docs_v71/methods/contacts_unblock.md @@ -18,13 +18,6 @@ description: contacts.unblock parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONTACT_ID_INVALID|The provided contact ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/initConnection.md b/old_docs/API_docs_v71/methods/initConnection.md index b66ab859..c34dd3d0 100644 --- a/old_docs/API_docs_v71/methods/initConnection.md +++ b/old_docs/API_docs_v71/methods/initConnection.md @@ -25,14 +25,6 @@ description: initConnection parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CONNECTION_LAYER_INVALID|Layer invalid| -|INPUT_FETCH_FAIL|Failed deserializing TL payload| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/invokeWithLayer.md b/old_docs/API_docs_v71/methods/invokeWithLayer.md index 90d0bb74..140736ee 100644 --- a/old_docs/API_docs_v71/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v71/methods/invokeWithLayer.md @@ -19,16 +19,6 @@ description: invokeWithLayer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid| -|CDN_METHOD_INVALID|You can't call this method in a CDN DC| -|CONNECTION_API_ID_INVALID|The provided API id is invalid| -|INPUT_LAYER_INVALID|The provided layer is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/langpack_getDifference.md b/old_docs/API_docs_v71/methods/langpack_getDifference.md index 2e77cc3b..422a3b55 100644 --- a/old_docs/API_docs_v71/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v71/methods/langpack_getDifference.md @@ -18,13 +18,6 @@ description: langpack.getDifference parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/langpack_getLangPack.md b/old_docs/API_docs_v71/methods/langpack_getLangPack.md index 5d4d0b81..de1e01ed 100644 --- a/old_docs/API_docs_v71/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v71/methods/langpack_getLangPack.md @@ -18,13 +18,6 @@ description: langpack.getLangPack parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/langpack_getLanguages.md b/old_docs/API_docs_v71/methods/langpack_getLanguages.md index abaa0de3..4fccd707 100644 --- a/old_docs/API_docs_v71/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v71/methods/langpack_getLanguages.md @@ -13,13 +13,6 @@ description: langpack.getLanguages parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/langpack_getStrings.md b/old_docs/API_docs_v71/methods/langpack_getStrings.md index 9bb740dc..fd1e0534 100644 --- a/old_docs/API_docs_v71/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v71/methods/langpack_getStrings.md @@ -19,13 +19,6 @@ description: langpack.getStrings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LANG_PACK_INVALID|The provided language pack is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_addChatUser.md b/old_docs/API_docs_v71/methods/messages_addChatUser.md index ce22bc31..90bd397f 100644 --- a/old_docs/API_docs_v71/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v71/methods/messages_addChatUser.md @@ -20,20 +20,6 @@ description: messages.addChatUser parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USER_ID_INVALID|The provided user ID is invalid| -|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| -|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_checkChatInvite.md b/old_docs/API_docs_v71/methods/messages_checkChatInvite.md index c5eb1c06..f7c45e59 100644 --- a/old_docs/API_docs_v71/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages_checkChatInvite.md @@ -18,15 +18,6 @@ description: messages.checkChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_createChat.md b/old_docs/API_docs_v71/methods/messages_createChat.md index f74c239e..c355273d 100644 --- a/old_docs/API_docs_v71/methods/messages_createChat.md +++ b/old_docs/API_docs_v71/methods/messages_createChat.md @@ -19,14 +19,6 @@ description: messages.createChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| -|USERS_TOO_FEW|Not enough users (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_deleteChatUser.md b/old_docs/API_docs_v71/methods/messages_deleteChatUser.md index 3d75d9cf..f4f1f9c0 100644 --- a/old_docs/API_docs_v71/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v71/methods/messages_deleteChatUser.md @@ -19,15 +19,6 @@ description: messages.deleteChatUser parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_deleteHistory.md b/old_docs/API_docs_v71/methods/messages_deleteHistory.md index ce6ba6e7..fb9b7763 100644 --- a/old_docs/API_docs_v71/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v71/methods/messages_deleteHistory.md @@ -20,13 +20,6 @@ description: messages.deleteHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_deleteMessages.md b/old_docs/API_docs_v71/methods/messages_deleteMessages.md index 2b88a73f..2949f64a 100644 --- a/old_docs/API_docs_v71/methods/messages_deleteMessages.md +++ b/old_docs/API_docs_v71/methods/messages_deleteMessages.md @@ -19,13 +19,6 @@ description: messages.deleteMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_editChatAdmin.md b/old_docs/API_docs_v71/methods/messages_editChatAdmin.md index e64d9da5..63a4a013 100644 --- a/old_docs/API_docs_v71/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v71/methods/messages_editChatAdmin.md @@ -20,13 +20,6 @@ description: messages.editChatAdmin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_editChatPhoto.md b/old_docs/API_docs_v71/methods/messages_editChatPhoto.md index 0bd5bef5..c05accf6 100644 --- a/old_docs/API_docs_v71/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v71/methods/messages_editChatPhoto.md @@ -19,14 +19,6 @@ description: messages.editChatPhoto parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_editChatTitle.md b/old_docs/API_docs_v71/methods/messages_editChatTitle.md index 88146cd8..4242c608 100644 --- a/old_docs/API_docs_v71/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v71/methods/messages_editChatTitle.md @@ -19,13 +19,6 @@ description: messages.editChatTitle parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_CHAT_INVALID|The provided chat is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md index 621c81a3..083d4a61 100644 --- a/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v71/methods/messages_editInlineBotMessage.md @@ -23,14 +23,6 @@ description: messages.editInlineBotMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_editMessage.md b/old_docs/API_docs_v71/methods/messages_editMessage.md index 8bc79038..a2766336 100644 --- a/old_docs/API_docs_v71/methods/messages_editMessage.md +++ b/old_docs/API_docs_v71/methods/messages_editMessage.md @@ -24,20 +24,6 @@ description: messages.editMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_NOT_MODIFIED|The message text has not changed| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_exportChatInvite.md b/old_docs/API_docs_v71/methods/messages_exportChatInvite.md index 4a6e28ff..88f946ff 100644 --- a/old_docs/API_docs_v71/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages_exportChatInvite.md @@ -18,13 +18,6 @@ description: messages.exportChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_faveSticker.md b/old_docs/API_docs_v71/methods/messages_faveSticker.md index 4ac9d019..161324a3 100644 --- a/old_docs/API_docs_v71/methods/messages_faveSticker.md +++ b/old_docs/API_docs_v71/methods/messages_faveSticker.md @@ -19,13 +19,6 @@ description: messages.faveSticker parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKER_ID_INVALID|The provided sticker ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_forwardMessage.md b/old_docs/API_docs_v71/methods/messages_forwardMessage.md index 4e2362db..1d4f18a1 100644 --- a/old_docs/API_docs_v71/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v71/methods/messages_forwardMessage.md @@ -19,16 +19,6 @@ description: messages.forwardMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_forwardMessages.md b/old_docs/API_docs_v71/methods/messages_forwardMessages.md index e08cc5ba..8b91a208 100644 --- a/old_docs/API_docs_v71/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v71/methods/messages_forwardMessages.md @@ -23,31 +23,6 @@ description: messages.forwardMessages parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| -|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| -|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|MEDIA_EMPTY|The provided media object is invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|MESSAGE_IDS_EMPTY|No message ids were provided| -|PEER_ID_INVALID|The provided peer id is invalid| -|PTS_CHANGE_EMPTY|No PTS change| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|RANDOM_ID_INVALID|A provided random ID is invalid| -|Timeout|A timeout occurred while fetching data from the bot| -|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| -|USER_IS_BOT|Bots can't send messages to other bots| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md index 433144c3..9d9470d0 100644 --- a/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v71/methods/messages_getBotCallbackAnswer.md @@ -21,16 +21,6 @@ description: messages.getBotCallbackAnswer parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getChats.md b/old_docs/API_docs_v71/methods/messages_getChats.md index 6fa30cbd..8b86c195 100644 --- a/old_docs/API_docs_v71/methods/messages_getChats.md +++ b/old_docs/API_docs_v71/methods/messages_getChats.md @@ -18,14 +18,6 @@ description: messages.getChats parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getCommonChats.md b/old_docs/API_docs_v71/methods/messages_getCommonChats.md index 0c601ca9..985a52df 100644 --- a/old_docs/API_docs_v71/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v71/methods/messages_getCommonChats.md @@ -20,13 +20,6 @@ description: messages.getCommonChats parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getDhConfig.md b/old_docs/API_docs_v71/methods/messages_getDhConfig.md index aac3354d..95c994c8 100644 --- a/old_docs/API_docs_v71/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v71/methods/messages_getDhConfig.md @@ -19,13 +19,6 @@ description: messages.getDhConfig parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|RANDOM_LENGTH_INVALID|Random length invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getDialogs.md b/old_docs/API_docs_v71/methods/messages_getDialogs.md index 27f0d655..e38aa996 100644 --- a/old_docs/API_docs_v71/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v71/methods/messages_getDialogs.md @@ -22,15 +22,6 @@ description: messages.getDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| -|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md index dda54bdd..7387d26d 100644 --- a/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v71/methods/messages_getDocumentByHash.md @@ -20,13 +20,6 @@ description: messages.getDocumentByHash parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SHA256_HASH_INVALID|The provided SHA256 hash is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getGameHighScores.md b/old_docs/API_docs_v71/methods/messages_getGameHighScores.md index 935bb95a..d558df8a 100644 --- a/old_docs/API_docs_v71/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v71/methods/messages_getGameHighScores.md @@ -20,14 +20,6 @@ description: messages.getGameHighScores parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getHistory.md b/old_docs/API_docs_v71/methods/messages_getHistory.md index f6db78c4..273eb6a9 100644 --- a/old_docs/API_docs_v71/methods/messages_getHistory.md +++ b/old_docs/API_docs_v71/methods/messages_getHistory.md @@ -24,18 +24,6 @@ description: messages.getHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md index ad41660e..f5da1c5a 100644 --- a/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v71/methods/messages_getInlineBotResults.md @@ -22,15 +22,6 @@ description: messages.getInlineBotResults parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode| -|BOT_INVALID|This is not a valid bot| -|Timeout|A timeout occurred while fetching data from the bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md index 7cc04d0d..24b512ca 100644 --- a/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v71/methods/messages_getInlineGameHighScores.md @@ -19,14 +19,6 @@ description: messages.getInlineGameHighScores parameters, return type and exampl ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getMessageEditData.md b/old_docs/API_docs_v71/methods/messages_getMessageEditData.md index 4e20a108..ee07fd74 100644 --- a/old_docs/API_docs_v71/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v71/methods/messages_getMessageEditData.md @@ -19,14 +19,6 @@ description: messages.getMessageEditData parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getMessagesViews.md b/old_docs/API_docs_v71/methods/messages_getMessagesViews.md index 263f3f95..fef96ce5 100644 --- a/old_docs/API_docs_v71/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v71/methods/messages_getMessagesViews.md @@ -20,15 +20,6 @@ description: messages.getMessagesViews parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md index 3da60038..e388e309 100644 --- a/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v71/methods/messages_getPeerDialogs.md @@ -18,14 +18,6 @@ description: messages.getPeerDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getPeerSettings.md b/old_docs/API_docs_v71/methods/messages_getPeerSettings.md index d3e3cfc3..26776c43 100644 --- a/old_docs/API_docs_v71/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v71/methods/messages_getPeerSettings.md @@ -18,14 +18,6 @@ description: messages.getPeerSettings parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getStickerSet.md b/old_docs/API_docs_v71/methods/messages_getStickerSet.md index 59f33916..61f81c28 100644 --- a/old_docs/API_docs_v71/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v71/methods/messages_getStickerSet.md @@ -18,13 +18,6 @@ description: messages.getStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md b/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md index 54e8cabf..fadbca81 100644 --- a/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md +++ b/old_docs/API_docs_v71/methods/messages_getUnreadMentions.md @@ -23,13 +23,6 @@ description: messages.getUnreadMentions parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_hideReportSpam.md b/old_docs/API_docs_v71/methods/messages_hideReportSpam.md index 2dfe4dd7..20bc6f18 100644 --- a/old_docs/API_docs_v71/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v71/methods/messages_hideReportSpam.md @@ -18,13 +18,6 @@ description: messages.hideReportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_importChatInvite.md b/old_docs/API_docs_v71/methods/messages_importChatInvite.md index 902298ff..537fd08d 100644 --- a/old_docs/API_docs_v71/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages_importChatInvite.md @@ -18,17 +18,6 @@ description: messages.importChatInvite parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty| -|INVITE_HASH_EXPIRED|The invite link has expired| -|INVITE_HASH_INVALID|The invite hash is invalid| -|USER_ALREADY_PARTICIPANT|The user is already in the group| -|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_installStickerSet.md b/old_docs/API_docs_v71/methods/messages_installStickerSet.md index 3dde52a7..6073eb13 100644 --- a/old_docs/API_docs_v71/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v71/methods/messages_installStickerSet.md @@ -19,13 +19,6 @@ description: messages.installStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_migrateChat.md b/old_docs/API_docs_v71/methods/messages_migrateChat.md index bc79547c..c038ad92 100644 --- a/old_docs/API_docs_v71/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v71/methods/messages_migrateChat.md @@ -18,15 +18,6 @@ description: messages.migrateChat parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md index 766ee07d..d1200ec5 100644 --- a/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v71/methods/messages_readEncryptedHistory.md @@ -19,13 +19,6 @@ description: messages.readEncryptedHistory parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_readHistory.md b/old_docs/API_docs_v71/methods/messages_readHistory.md index 3c1da836..3fb26f56 100644 --- a/old_docs/API_docs_v71/methods/messages_readHistory.md +++ b/old_docs/API_docs_v71/methods/messages_readHistory.md @@ -19,13 +19,6 @@ description: messages.readHistory parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_receivedQueue.md b/old_docs/API_docs_v71/methods/messages_receivedQueue.md index 3c7f1d4f..65b3eb36 100644 --- a/old_docs/API_docs_v71/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v71/methods/messages_receivedQueue.md @@ -18,13 +18,6 @@ description: messages.receivedQueue parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md index 30102fd7..2660b363 100644 --- a/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v71/methods/messages_reorderPinnedDialogs.md @@ -19,13 +19,6 @@ description: messages.reorderPinnedDialogs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md index 30ef3473..5764b848 100644 --- a/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v71/methods/messages_reportEncryptedSpam.md @@ -18,13 +18,6 @@ description: messages.reportEncryptedSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_reportSpam.md b/old_docs/API_docs_v71/methods/messages_reportSpam.md index bfadb9ab..a9f1da73 100644 --- a/old_docs/API_docs_v71/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v71/methods/messages_reportSpam.md @@ -18,13 +18,6 @@ description: messages.reportSpam parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_saveDraft.md b/old_docs/API_docs_v71/methods/messages_saveDraft.md index 42308b46..ef5e65c5 100644 --- a/old_docs/API_docs_v71/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v71/methods/messages_saveDraft.md @@ -23,13 +23,6 @@ description: messages.saveDraft parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_saveGif.md b/old_docs/API_docs_v71/methods/messages_saveGif.md index 31e48632..2d41d533 100644 --- a/old_docs/API_docs_v71/methods/messages_saveGif.md +++ b/old_docs/API_docs_v71/methods/messages_saveGif.md @@ -19,13 +19,6 @@ description: messages.saveGif parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|GIF_ID_INVALID|The provided GIF ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md index 8d45be5e..cb4f98b3 100644 --- a/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v71/methods/messages_saveRecentSticker.md @@ -20,13 +20,6 @@ description: messages.saveRecentSticker parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKER_ID_INVALID|The provided sticker ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_search.md b/old_docs/API_docs_v71/methods/messages_search.md index fe33b145..0d952193 100644 --- a/old_docs/API_docs_v71/methods/messages_search.md +++ b/old_docs/API_docs_v71/methods/messages_search.md @@ -28,17 +28,6 @@ description: messages.search parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|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| -|SEARCH_QUERY_EMPTY|The search query is empty| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_searchGifs.md b/old_docs/API_docs_v71/methods/messages_searchGifs.md index 3f4c4838..76a53903 100644 --- a/old_docs/API_docs_v71/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v71/methods/messages_searchGifs.md @@ -19,13 +19,6 @@ description: messages.searchGifs parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_searchGlobal.md b/old_docs/API_docs_v71/methods/messages_searchGlobal.md index 0553dd7a..f28e962d 100644 --- a/old_docs/API_docs_v71/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v71/methods/messages_searchGlobal.md @@ -22,13 +22,6 @@ description: messages.searchGlobal parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|SEARCH_QUERY_EMPTY|The search query is empty| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_sendEncrypted.md b/old_docs/API_docs_v71/methods/messages_sendEncrypted.md index ce1f2bf0..0b9a282c 100644 --- a/old_docs/API_docs_v71/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v71/methods/messages_sendEncrypted.md @@ -19,15 +19,6 @@ description: messages.sendEncrypted parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md index 8f7a73d9..fbc9cabf 100644 --- a/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v71/methods/messages_sendEncryptedFile.md @@ -20,13 +20,6 @@ description: messages.sendEncryptedFile parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md index f589a382..c84747e8 100644 --- a/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v71/methods/messages_sendEncryptedService.md @@ -19,14 +19,6 @@ description: messages.sendEncryptedService parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|DATA_INVALID|Encrypted data invalid| -|MSG_WAIT_FAILED|A waiting call returned an error| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md index 8a91e882..6ab41f50 100644 --- a/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v71/methods/messages_sendInlineBotResult.md @@ -24,15 +24,6 @@ description: messages.sendInlineBotResult parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired| -|PEER_ID_INVALID|The provided peer id is invalid| -|QUERY_ID_EMPTY|The query ID is empty| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_sendMedia.md b/old_docs/API_docs_v71/methods/messages_sendMedia.md index 6c5e65d5..68e2c41b 100644 --- a/old_docs/API_docs_v71/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v71/methods/messages_sendMedia.md @@ -24,27 +24,6 @@ description: messages.sendMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PART_LENGTH_INVALID|The length of a file part is invalid| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MEDIA_CAPTION_TOO_LONG|The caption is too long| -|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| -|STORAGE_CHECK_FAILED|Server storage check failed| -|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| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_sendMessage.md b/old_docs/API_docs_v71/methods/messages_sendMessage.md index f9f2aa8a..cabccdb3 100644 --- a/old_docs/API_docs_v71/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v71/methods/messages_sendMessage.md @@ -27,31 +27,6 @@ description: messages.sendMessage parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|ENTITY_MENTION_USER_INVALID|You can't use this entity| -|INPUT_USER_DEACTIVATED|The specified user was deleted| -|MESSAGE_EMPTY|The provided message is empty| -|MESSAGE_TOO_LONG|The provided message is too long| -|PEER_ID_INVALID|The provided peer id is invalid| -|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| -|REPLY_MARKUP_INVALID|The provided reply markup is 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| -|YOU_BLOCKED_USER|You blocked this user| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md index a725a12b..7c895738 100644 --- a/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md +++ b/old_docs/API_docs_v71/methods/messages_sendScreenshotNotification.md @@ -19,13 +19,6 @@ description: messages.sendScreenshotNotification parameters, return type and exa ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md index 2c51854f..ef9b8f7a 100644 --- a/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v71/methods/messages_setBotCallbackAnswer.md @@ -22,13 +22,6 @@ description: messages.setBotCallbackAnswer parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md index 25ed5ed5..92bdcb9e 100644 --- a/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v71/methods/messages_setBotPrecheckoutResults.md @@ -20,13 +20,6 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ERROR_TEXT_EMPTY|The provided error message is empty| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md index 49ac2896..e2c7cd45 100644 --- a/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v71/methods/messages_setBotShippingResults.md @@ -20,13 +20,6 @@ description: messages.setBotShippingResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md index a05b94dd..11e42919 100644 --- a/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v71/methods/messages_setEncryptedTyping.md @@ -19,13 +19,6 @@ description: messages.setEncryptedTyping parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_setGameScore.md b/old_docs/API_docs_v71/methods/messages_setGameScore.md index 3137f7c9..f16a7539 100644 --- a/old_docs/API_docs_v71/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v71/methods/messages_setGameScore.md @@ -23,14 +23,6 @@ description: messages.setGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md index 8b5625f3..cf74e5e4 100644 --- a/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v71/methods/messages_setInlineBotResults.md @@ -24,23 +24,6 @@ description: messages.setInlineBotResults parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty| -|BUTTON_DATA_INVALID|The provided button data is invalid| -|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| -|BUTTON_URL_INVALID|Button URL invalid| -|MESSAGE_EMPTY|The provided message is empty| -|QUERY_ID_INVALID|The query ID is invalid| -|REPLY_MARKUP_INVALID|The provided reply markup is invalid| -|RESULT_TYPE_INVALID|Result type invalid| -|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| -|START_PARAM_INVALID|Start parameter invalid| -|USER_BOT_INVALID|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md index 36752f35..c922f937 100644 --- a/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v71/methods/messages_setInlineGameScore.md @@ -22,14 +22,6 @@ description: messages.setInlineGameScore parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| -|USER_BOT_REQUIRED|This method can only be called by a bot| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_setTyping.md b/old_docs/API_docs_v71/methods/messages_setTyping.md index 3eff041b..90834622 100644 --- a/old_docs/API_docs_v71/methods/messages_setTyping.md +++ b/old_docs/API_docs_v71/methods/messages_setTyping.md @@ -19,17 +19,6 @@ description: messages.setTyping parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_WRITE_FORBIDDEN|You can't write in this chat| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_startBot.md b/old_docs/API_docs_v71/methods/messages_startBot.md index bfba0a2e..484327e8 100644 --- a/old_docs/API_docs_v71/methods/messages_startBot.md +++ b/old_docs/API_docs_v71/methods/messages_startBot.md @@ -20,15 +20,6 @@ description: messages.startBot parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| -|START_PARAM_EMPTY|The start parameter is empty| -|START_PARAM_INVALID|Start parameter invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md index 3bf8a419..c43b11b1 100644 --- a/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v71/methods/messages_toggleChatAdmins.md @@ -19,14 +19,6 @@ description: messages.toggleChatAdmins parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid| -|CHAT_NOT_MODIFIED|The pinned message wasn't modified| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md index f35f2f40..f4506918 100644 --- a/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v71/methods/messages_toggleDialogPin.md @@ -19,13 +19,6 @@ description: messages.toggleDialogPin parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md index 6763e64f..c456fc89 100644 --- a/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v71/methods/messages_uninstallStickerSet.md @@ -18,13 +18,6 @@ description: messages.uninstallStickerSet parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/messages_uploadMedia.md b/old_docs/API_docs_v71/methods/messages_uploadMedia.md index 9f3f91ff..64fd8372 100644 --- a/old_docs/API_docs_v71/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v71/methods/messages_uploadMedia.md @@ -19,14 +19,6 @@ description: messages.uploadMedia parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|PEER_ID_INVALID|The provided peer id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/payments_getPaymentForm.md b/old_docs/API_docs_v71/methods/payments_getPaymentForm.md index 15f6e26b..fa82f22d 100644 --- a/old_docs/API_docs_v71/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v71/methods/payments_getPaymentForm.md @@ -18,13 +18,6 @@ description: payments.getPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md index 51433563..d6b5f5d6 100644 --- a/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v71/methods/payments_getPaymentReceipt.md @@ -18,13 +18,6 @@ description: payments.getPaymentReceipt parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md index a63a3980..831516a3 100644 --- a/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v71/methods/payments_sendPaymentForm.md @@ -21,13 +21,6 @@ description: payments.sendPaymentForm parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md index d839a2df..4102a473 100644 --- a/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v71/methods/payments_validateRequestedInfo.md @@ -20,13 +20,6 @@ description: payments.validateRequestedInfo parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/phone_receivedCall.md b/old_docs/API_docs_v71/methods/phone_receivedCall.md index 9d59b1ea..b06a90ad 100644 --- a/old_docs/API_docs_v71/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v71/methods/phone_receivedCall.md @@ -18,14 +18,6 @@ description: phone.receivedCall parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_ALREADY_DECLINED|The call was already declined| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/phone_saveCallDebug.md b/old_docs/API_docs_v71/methods/phone_saveCallDebug.md index 4dee5c97..589dc522 100644 --- a/old_docs/API_docs_v71/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v71/methods/phone_saveCallDebug.md @@ -19,14 +19,6 @@ description: phone.saveCallDebug parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| -|DATA_JSON_INVALID|The provided JSON data is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/phone_setCallRating.md b/old_docs/API_docs_v71/methods/phone_setCallRating.md index fea236d1..a2b2e27c 100644 --- a/old_docs/API_docs_v71/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v71/methods/phone_setCallRating.md @@ -20,13 +20,6 @@ description: phone.setCallRating parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/photos_getUserPhotos.md b/old_docs/API_docs_v71/methods/photos_getUserPhotos.md index d6c2a380..61498d29 100644 --- a/old_docs/API_docs_v71/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v71/methods/photos_getUserPhotos.md @@ -21,14 +21,6 @@ description: photos.getUserPhotos parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md index 58541f23..6de32dae 100644 --- a/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v71/methods/photos_uploadProfilePhoto.md @@ -18,17 +18,6 @@ description: photos.uploadProfilePhoto parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|FILE_PART_0_MISSING|File part 0 missing| -|FILE_PARTS_INVALID|The number of file parts is invalid| -|IMAGE_PROCESS_FAILED|Failure while processing image| -|PHOTO_CROP_SIZE_SMALL|Photo is too small| -|PHOTO_EXT_INVALID|The extension of the photo is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md index bf62fa09..620e773a 100644 --- a/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v71/methods/stickers_addStickerToSet.md @@ -19,14 +19,6 @@ description: stickers.addStickerToSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKERSET_INVALID|The provided sticker set is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md index 942d3a33..6b517d4c 100644 --- a/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v71/methods/stickers_changeStickerPosition.md @@ -19,14 +19,6 @@ description: stickers.changeStickerPosition parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKER_INVALID|The provided sticker is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/stickers_createStickerSet.md b/old_docs/API_docs_v71/methods/stickers_createStickerSet.md index 02ec673b..cacdd73a 100644 --- a/old_docs/API_docs_v71/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v71/methods/stickers_createStickerSet.md @@ -22,17 +22,6 @@ description: stickers.createStickerSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|PACK_SHORT_NAME_INVALID|Short pack name invalid| -|PEER_ID_INVALID|The provided peer id is invalid| -|STICKERS_EMPTY|No sticker provided| -|USER_ID_INVALID|The provided user ID is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md index 51e52f95..941b24f4 100644 --- a/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v71/methods/stickers_removeStickerFromSet.md @@ -18,14 +18,6 @@ description: stickers.removeStickerFromSet parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|BOT_MISSING|This method can only be run by a bot| -|STICKER_INVALID|The provided sticker is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/upload_getWebFile.md b/old_docs/API_docs_v71/methods/upload_getWebFile.md index ec7c05b4..fab17a7f 100644 --- a/old_docs/API_docs_v71/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v71/methods/upload_getWebFile.md @@ -20,13 +20,6 @@ description: upload.getWebFile parameters, return type and example ### Can bots use this method: **NO** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|LOCATION_INVALID|The provided location is invalid| - - ### Example: diff --git a/old_docs/API_docs_v71/methods/users_getUsers.md b/old_docs/API_docs_v71/methods/users_getUsers.md index def6a4d6..93b47996 100644 --- a/old_docs/API_docs_v71/methods/users_getUsers.md +++ b/old_docs/API_docs_v71/methods/users_getUsers.md @@ -18,14 +18,6 @@ description: users.getUsers parameters, return type and example ### Can bots use this method: **YES** -### Errors this method can return: - -| Error | Description | -|----------|---------------| -|NEED_MEMBER_INVALID|The provided member is invalid| -|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| - - ### Example: diff --git a/secret_bot.php b/secret_bot.php index 038e4aab..9cc3271d 100755 --- a/secret_bot.php +++ b/secret_bot.php @@ -20,7 +20,7 @@ echo 'Deserializing MadelineProto from s.madeline...'.PHP_EOL; $MadelineProto = false; try { - $MadelineProto = \danog\MadelineProto\Serialization::deserialize('s.madeline'); + $MadelineProto = new \danog\MadelineProto\API('s.madeline'); } catch (\danog\MadelineProto\Exception $e) { var_dump($e->getMessage()); } diff --git a/src/Socket.php b/src/Socket.php index 39515597..9cadce14 100644 --- a/src/Socket.php +++ b/src/Socket.php @@ -9,6 +9,9 @@ See the GNU Affero General Public License for more details. You should have received a copy of the GNU General Public License along with MadelineProto. If not, see . */ +if (PHP_MAJOR_VERSION < 7) { + throw new Exception('MadelineProto requires php 7 to run'); +} if (!extension_loaded('pthreads')) { if (extension_loaded('sockets')) { diff --git a/src/danog/MadelineProto/API.php b/src/danog/MadelineProto/API.php index a340e7f2..f22fceff 100644 --- a/src/danog/MadelineProto/API.php +++ b/src/danog/MadelineProto/API.php @@ -21,6 +21,53 @@ class API extends APIFactory public function ___construct($params = []) { set_error_handler(['\danog\MadelineProto\Exception', 'ExceptionErrorHandler']); + if (is_string($params)) { + if (file_exists($params)) { + if (!file_exists($lock = $params.'.lock')) { + touch($lock); + clearstatcache(); + } + $lock = fopen($lock, 'r'); + flock($lock, LOCK_SH); + $unserialized = file_get_contents($params); + 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']); + } + + $this->APIFactory(); + $this->API = $unserialized->API; + return; + } $this->API = new MTProto($params); \danog\MadelineProto\Logger::log([\danog\MadelineProto\Lang::$current_lang['apifactory_start']], Logger::VERBOSE); @@ -94,10 +141,10 @@ class API extends APIFactory } } - public function serialize($filename) + public function serialize($params) { Logger::log([\danog\MadelineProto\Lang::$current_lang['serializing_madelineproto']]); - return Serialization::serialize($filename, $this); + return Serialization::serialize($params, $this); } } diff --git a/src/danog/MadelineProto/Serialization.php b/src/danog/MadelineProto/Serialization.php index 28a367b9..616ac875 100644 --- a/src/danog/MadelineProto/Serialization.php +++ b/src/danog/MadelineProto/Serialization.php @@ -58,49 +58,6 @@ class Serialization */ public static function deserialize($filename, $no_updates = false) { - set_error_handler(['\danog\MadelineProto\Exception', 'ExceptionErrorHandler']); - 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']); - } - - return $unserialized; + throw new \danog\MadelineProto\Exception('You can\'t call \danog\MadelineProto\Serialization::deserialize($filename) anymore, use new \danog\MadelineProto\API($filename) instead'.PHP_EOL.PHP_EOL."Protip: run the following command to fix all of your scripts:".PHP_EOL.PHP_EOL."find . -type f -exec sed 's/\\\\danog\\\\MadelineProto\\\\Serialization::deserialize/new \\\\danog\\\\MadelineProto\\\\API/g' -i {} +".PHP_EOL.PHP_EOL, 0, null, 'MadelineProto', 0); } } diff --git a/tests/testing.php b/tests/testing.php index 113df7fb..82edc9ac 100755 --- a/tests/testing.php +++ b/tests/testing.php @@ -12,6 +12,9 @@ If not, see . */ set_include_path(get_include_path().':'.realpath(dirname(__FILE__).'/../').':'.realpath(dirname(__FILE__).'/../MadelineProto/')); chdir(dirname(__FILE__).'/../'); +if (!file_exists('vendor/autoload.php')) { + die('You did not run composer update'); +} require_once 'vendor/autoload.php'; //include 'SocksProxy.php'; if (!function_exists('readline')) { @@ -35,7 +38,7 @@ echo 'Deserializing MadelineProto from session.madeline...'.PHP_EOL; $MadelineProto = false; try { - $MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); + $MadelineProto = new \danog\MadelineProto\API('session.madeline'); } catch (\danog\MadelineProto\Exception $e) { var_dump($e->getMessage()); } diff --git a/userbots/MadelineProto_bot.php b/userbots/MadelineProto_bot.php index 4cc42e81..1c74261b 100755 --- a/userbots/MadelineProto_bot.php +++ b/userbots/MadelineProto_bot.php @@ -17,7 +17,7 @@ $settings = ['app_info'=>['api_id'=>6, 'api_hash'=>'eb06d4abfb49dc3eeb1aeb98ae0f $MadelineProto = false; try { - $MadelineProto = \danog\MadelineProto\Serialization::deserialize('MadelineProto_bot.madeline'); + $MadelineProto = new \danog\MadelineProto\API('MadelineProto_bot.madeline'); } catch (\danog\MadelineProto\Exception $e) { } diff --git a/userbots/pipesbot.php b/userbots/pipesbot.php index 32dda300..8c31072f 100755 --- a/userbots/pipesbot.php +++ b/userbots/pipesbot.php @@ -17,13 +17,13 @@ $MadelineProto = false; $uMadelineProto = false; try { - $MadelineProto = \danog\MadelineProto\Serialization::deserialize('pipesbot.madeline'); + $MadelineProto = new \danog\MadelineProto\API('pipesbot.madeline'); } catch (\danog\MadelineProto\Exception $e) { var_dump($e->getMessage()); } try { - $uMadelineProto = \danog\MadelineProto\Serialization::deserialize('pwr.madeline'); + $uMadelineProto = new \danog\MadelineProto\API('pwr.madeline'); } catch (\danog\MadelineProto\Exception $e) { var_dump($e->getMessage()); } diff --git a/userbots/pwrtelegram_debug_bot.php b/userbots/pwrtelegram_debug_bot.php index 03ca3a36..41cc0724 100755 --- a/userbots/pwrtelegram_debug_bot.php +++ b/userbots/pwrtelegram_debug_bot.php @@ -15,7 +15,7 @@ $settings = ['app_info'=>['api_id'=>6, 'api_hash'=>'eb06d4abfb49dc3eeb1aeb98ae0f include_once 'token.php'; try { - $MadelineProto = \danog\MadelineProto\Serialization::deserialize('b.madeline'); + $MadelineProto = new \danog\MadelineProto\API('b.madeline'); } catch (\danog\MadelineProto\Exception $e) { $MadelineProto = new \danog\MadelineProto\API($settings); $authorization = $MadelineProto->bot_login($pwrtelegram_debug_token);