From d62904768696af8027ac39fe6a0baf8e793f6d7a Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 23 Feb 2020 19:29:04 +0100 Subject: [PATCH] Update docs --- docs/API_docs/methods/account.changePhone.md | 1 + .../API_docs/methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + docs/API_docs/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + docs/API_docs/methods/channels.editAdmin.md | 1 + docs/API_docs/methods/channels.editPhoto.md | 1 + docs/API_docs/methods/channels.getChannels.md | 1 + docs/API_docs/methods/channels.getMessages.md | 1 + docs/API_docs/methods/channels.joinChannel.md | 3 + docs/API_docs/methods/channels.readHistory.md | 1 + docs/API_docs/methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + docs/API_docs/methods/help.getConfig.md | 1 + docs/API_docs/methods/help.getNearestDc.md | 7 + docs/API_docs/methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatAbout.md | 1 + .../methods/messages.editChatPhoto.md | 1 + docs/API_docs/methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + docs/API_docs/methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../API_docs/methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + docs/API_docs/methods/messages.sendMedia.md | 8 + docs/API_docs/methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + docs/API_docs/methods/messages.setTyping.md | 1 + docs/API_docs/methods/messages.uploadMedia.md | 2 + docs/API_docs/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + docs/API_docs/methods/upload.saveFilePart.md | 1 + docs/API_docs/methods/users.getUsers.md | 1 + docs/docs/UPDATES.md | 260 +++++++----------- .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v100/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v100/methods/help.getConfig.md | 1 + .../methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatAbout.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v100/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v100/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v102/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v102/methods/help.getConfig.md | 1 + .../methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatAbout.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v102/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v102/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v103/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v103/methods/help.getConfig.md | 1 + .../methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatAbout.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v103/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v103/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v104/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v104/methods/help.getConfig.md | 1 + .../methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatAbout.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v104/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v104/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v105/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v105/methods/help.getConfig.md | 1 + .../methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatAbout.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v105/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v105/methods/users.getUsers.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v18/methods/help.getConfig.md | 1 + .../API_docs_v18/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v18/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v18/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v23/methods/help.getConfig.md | 1 + .../API_docs_v23/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v23/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v23/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v25/methods/help.getConfig.md | 1 + .../API_docs_v25/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v25/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v25/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v27/methods/help.getConfig.md | 1 + .../API_docs_v27/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v27/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v27/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v33/methods/help.getConfig.md | 1 + .../API_docs_v33/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v33/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v33/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../API_docs_v38/methods/help.getConfig.md | 1 + .../API_docs_v38/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v38/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v38/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v40/methods/help.getConfig.md | 1 + .../API_docs_v40/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v40/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v40/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../API_docs_v41/methods/help.getConfig.md | 1 + .../API_docs_v41/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v41/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v41/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../API_docs_v42/methods/help.getConfig.md | 1 + .../API_docs_v42/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v42/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v42/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../API_docs_v44/methods/help.getConfig.md | 1 + .../API_docs_v44/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v44/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v44/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../API_docs_v45/methods/help.getConfig.md | 1 + .../API_docs_v45/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v45/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v45/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../API_docs_v46/methods/help.getConfig.md | 1 + .../API_docs_v46/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v46/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v46/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v51/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v51/methods/help.getConfig.md | 1 + .../API_docs_v51/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v51/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v51/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v53/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v53/methods/help.getConfig.md | 1 + .../API_docs_v53/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v53/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v53/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v55/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v55/methods/help.getConfig.md | 1 + .../API_docs_v55/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v55/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v55/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v57/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v57/methods/help.getConfig.md | 1 + .../API_docs_v57/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v57/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v57/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v62/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v62/methods/help.getConfig.md | 1 + .../API_docs_v62/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v62/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v62/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v65/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v65/methods/help.getConfig.md | 1 + .../API_docs_v65/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v65/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v65/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v66/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v66/methods/help.getConfig.md | 1 + .../API_docs_v66/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../API_docs_v66/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v66/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v68/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v68/methods/help.getConfig.md | 1 + .../API_docs_v68/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v68/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v68/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v70/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v70/methods/help.getConfig.md | 1 + .../API_docs_v70/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v70/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v70/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v71/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v71/methods/help.getConfig.md | 1 + .../API_docs_v71/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v71/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v71/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v72/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v72/methods/help.getConfig.md | 1 + .../API_docs_v72/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v72/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v72/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v73/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v73/methods/help.getConfig.md | 1 + .../API_docs_v73/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v73/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v73/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v75/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v75/methods/help.getConfig.md | 1 + .../API_docs_v75/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v75/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v75/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v81/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v81/methods/help.getConfig.md | 1 + .../API_docs_v81/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v81/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v81/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v82/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v82/methods/help.getConfig.md | 1 + .../API_docs_v82/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v82/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v82/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v86/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v86/methods/help.getConfig.md | 1 + .../API_docs_v86/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v86/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v86/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v89/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v89/methods/help.getConfig.md | 1 + .../API_docs_v89/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v89/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v89/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v91/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v91/methods/help.getConfig.md | 1 + .../API_docs_v91/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v91/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v91/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v95/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v95/methods/help.getConfig.md | 1 + .../API_docs_v95/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatAbout.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v95/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v95/methods/users.getUsers.md | 1 + .../methods/account.changePhone.md | 1 + .../methods/account.checkUsername.md | 1 + .../methods/account.finishTakeoutSession.md | 7 + .../methods/account.getAuthorizations.md | 7 + .../methods/account.initTakeoutSession.md | 7 + .../methods/account.updateNotifySettings.md | 1 + .../methods/account.updateUsername.md | 1 + .../API_docs_v97/methods/auth.cancelCode.md | 1 + .../methods/channels.deleteUserHistory.md | 2 + .../methods/channels.editAdmin.md | 1 + .../methods/channels.editPhoto.md | 1 + .../methods/channels.getChannels.md | 1 + .../methods/channels.getMessages.md | 1 + .../methods/channels.joinChannel.md | 3 + .../methods/channels.readHistory.md | 1 + .../methods/channels.reportSpam.md | 2 + .../methods/channels.toggleSignatures.md | 1 + .../API_docs_v97/methods/help.getConfig.md | 1 + .../API_docs_v97/methods/help.getNearestDc.md | 7 + .../methods/messages.createChat.md | 1 + .../methods/messages.deleteHistory.md | 1 + .../methods/messages.editChatAbout.md | 1 + .../methods/messages.editChatPhoto.md | 1 + .../methods/messages.editMessage.md | 3 + .../methods/messages.exportChatInvite.md | 1 + .../methods/messages.forwardMessages.md | 1 + .../methods/messages.getDialogs.md | 1 + .../methods/messages.getMessageEditData.md | 1 + .../methods/messages.getMessagesViews.md | 1 + .../methods/messages.getPeerDialogs.md | 1 + .../methods/messages.importChatInvite.md | 2 + .../methods/messages.readMentions.md | 10 + .../methods/messages.sendInlineBotResult.md | 6 + .../methods/messages.sendMedia.md | 8 + .../methods/messages.sendMessage.md | 1 + .../methods/messages.setInlineBotResults.md | 1 + .../methods/messages.setTyping.md | 1 + .../methods/messages.uploadMedia.md | 2 + .../API_docs_v97/methods/upload.getFile.md | 1 + .../methods/upload.saveBigFilePart.md | 1 + .../methods/upload.saveFilePart.md | 1 + .../API_docs_v97/methods/users.getUsers.md | 1 + 1329 files changed, 2803 insertions(+), 162 deletions(-) diff --git a/docs/API_docs/methods/account.changePhone.md b/docs/API_docs/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/docs/API_docs/methods/account.changePhone.md +++ b/docs/API_docs/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/docs/API_docs/methods/account.checkUsername.md b/docs/API_docs/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/docs/API_docs/methods/account.checkUsername.md +++ b/docs/API_docs/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/docs/API_docs/methods/account.finishTakeoutSession.md b/docs/API_docs/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/docs/API_docs/methods/account.finishTakeoutSession.md +++ b/docs/API_docs/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/docs/API_docs/methods/account.getAuthorizations.md b/docs/API_docs/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/docs/API_docs/methods/account.getAuthorizations.md +++ b/docs/API_docs/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/docs/API_docs/methods/account.initTakeoutSession.md b/docs/API_docs/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/docs/API_docs/methods/account.initTakeoutSession.md +++ b/docs/API_docs/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/docs/API_docs/methods/account.updateNotifySettings.md b/docs/API_docs/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/docs/API_docs/methods/account.updateNotifySettings.md +++ b/docs/API_docs/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/docs/API_docs/methods/account.updateUsername.md b/docs/API_docs/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/docs/API_docs/methods/account.updateUsername.md +++ b/docs/API_docs/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/docs/API_docs/methods/auth.cancelCode.md b/docs/API_docs/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/docs/API_docs/methods/auth.cancelCode.md +++ b/docs/API_docs/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/docs/API_docs/methods/channels.deleteUserHistory.md b/docs/API_docs/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/docs/API_docs/methods/channels.deleteUserHistory.md +++ b/docs/API_docs/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/docs/API_docs/methods/channels.editAdmin.md b/docs/API_docs/methods/channels.editAdmin.md index 826cfc58..41926192 100644 --- a/docs/API_docs/methods/channels.editAdmin.md +++ b/docs/API_docs/methods/channels.editAdmin.md @@ -53,6 +53,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/docs/API_docs/methods/channels.editPhoto.md b/docs/API_docs/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/docs/API_docs/methods/channels.editPhoto.md +++ b/docs/API_docs/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/docs/API_docs/methods/channels.getChannels.md b/docs/API_docs/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/docs/API_docs/methods/channels.getChannels.md +++ b/docs/API_docs/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/docs/API_docs/methods/channels.getMessages.md b/docs/API_docs/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/docs/API_docs/methods/channels.getMessages.md +++ b/docs/API_docs/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/docs/API_docs/methods/channels.joinChannel.md b/docs/API_docs/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/docs/API_docs/methods/channels.joinChannel.md +++ b/docs/API_docs/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/docs/API_docs/methods/channels.readHistory.md b/docs/API_docs/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/docs/API_docs/methods/channels.readHistory.md +++ b/docs/API_docs/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/docs/API_docs/methods/channels.reportSpam.md b/docs/API_docs/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/docs/API_docs/methods/channels.reportSpam.md +++ b/docs/API_docs/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/docs/API_docs/methods/channels.toggleSignatures.md b/docs/API_docs/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/docs/API_docs/methods/channels.toggleSignatures.md +++ b/docs/API_docs/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/docs/API_docs/methods/help.getConfig.md b/docs/API_docs/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/docs/API_docs/methods/help.getConfig.md +++ b/docs/API_docs/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/docs/API_docs/methods/help.getNearestDc.md b/docs/API_docs/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/docs/API_docs/methods/help.getNearestDc.md +++ b/docs/API_docs/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/docs/API_docs/methods/messages.createChat.md b/docs/API_docs/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/docs/API_docs/methods/messages.createChat.md +++ b/docs/API_docs/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/docs/API_docs/methods/messages.deleteHistory.md b/docs/API_docs/methods/messages.deleteHistory.md index c7ff96a9..909831be 100644 --- a/docs/API_docs/methods/messages.deleteHistory.md +++ b/docs/API_docs/methods/messages.deleteHistory.md @@ -50,6 +50,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, revoke=Bool, | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/docs/API_docs/methods/messages.editChatAbout.md b/docs/API_docs/methods/messages.editChatAbout.md index 7a6e8812..dbe28e12 100644 --- a/docs/API_docs/methods/messages.editChatAbout.md +++ b/docs/API_docs/methods/messages.editChatAbout.md @@ -48,6 +48,7 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/docs/API_docs/methods/messages.editChatPhoto.md b/docs/API_docs/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/docs/API_docs/methods/messages.editChatPhoto.md +++ b/docs/API_docs/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/docs/API_docs/methods/messages.editMessage.md b/docs/API_docs/methods/messages.editMessage.md index 03c58bde..cafc5bef 100644 --- a/docs/API_docs/methods/messages.editMessage.md +++ b/docs/API_docs/methods/messages.editMessage.md @@ -103,17 +103,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/docs/API_docs/methods/messages.exportChatInvite.md b/docs/API_docs/methods/messages.exportChatInvite.md index 54bf1523..0295197f 100644 --- a/docs/API_docs/methods/messages.exportChatInvite.md +++ b/docs/API_docs/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/docs/API_docs/methods/messages.forwardMessages.md b/docs/API_docs/methods/messages.forwardMessages.md index 0c69476a..2b874f1a 100644 --- a/docs/API_docs/methods/messages.forwardMessages.md +++ b/docs/API_docs/methods/messages.forwardMessages.md @@ -73,6 +73,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/docs/API_docs/methods/messages.getDialogs.md b/docs/API_docs/methods/messages.getDialogs.md index 301f3608..d73dfe2a 100644 --- a/docs/API_docs/methods/messages.getDialogs.md +++ b/docs/API_docs/methods/messages.getDialogs.md @@ -55,6 +55,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, folder_id=int, offs |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/docs/API_docs/methods/messages.getMessageEditData.md b/docs/API_docs/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/docs/API_docs/methods/messages.getMessageEditData.md +++ b/docs/API_docs/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/docs/API_docs/methods/messages.getMessagesViews.md b/docs/API_docs/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/docs/API_docs/methods/messages.getMessagesViews.md +++ b/docs/API_docs/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/docs/API_docs/methods/messages.getPeerDialogs.md b/docs/API_docs/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/docs/API_docs/methods/messages.getPeerDialogs.md +++ b/docs/API_docs/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/docs/API_docs/methods/messages.importChatInvite.md b/docs/API_docs/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/docs/API_docs/methods/messages.importChatInvite.md +++ b/docs/API_docs/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/docs/API_docs/methods/messages.readMentions.md b/docs/API_docs/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/docs/API_docs/methods/messages.readMentions.md +++ b/docs/API_docs/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/docs/API_docs/methods/messages.sendInlineBotResult.md b/docs/API_docs/methods/messages.sendInlineBotResult.md index cb7c3c36..f05204b7 100644 --- a/docs/API_docs/methods/messages.sendInlineBotResult.md +++ b/docs/API_docs/methods/messages.sendInlineBotResult.md @@ -55,8 +55,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -64,8 +67,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/docs/API_docs/methods/messages.sendMedia.md b/docs/API_docs/methods/messages.sendMedia.md index c636976b..c05a2257 100644 --- a/docs/API_docs/methods/messages.sendMedia.md +++ b/docs/API_docs/methods/messages.sendMedia.md @@ -107,6 +107,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -125,15 +126,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/docs/API_docs/methods/messages.sendMessage.md b/docs/API_docs/methods/messages.sendMessage.md index 43ee681f..6275a4b4 100644 --- a/docs/API_docs/methods/messages.sendMessage.md +++ b/docs/API_docs/methods/messages.sendMessage.md @@ -123,6 +123,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/docs/API_docs/methods/messages.setInlineBotResults.md b/docs/API_docs/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/docs/API_docs/methods/messages.setInlineBotResults.md +++ b/docs/API_docs/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/docs/API_docs/methods/messages.setTyping.md b/docs/API_docs/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/docs/API_docs/methods/messages.setTyping.md +++ b/docs/API_docs/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/docs/API_docs/methods/messages.uploadMedia.md b/docs/API_docs/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/docs/API_docs/methods/messages.uploadMedia.md +++ b/docs/API_docs/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/docs/API_docs/methods/upload.getFile.md b/docs/API_docs/methods/upload.getFile.md index 2f535b1b..8fc16fb7 100644 --- a/docs/API_docs/methods/upload.getFile.md +++ b/docs/API_docs/methods/upload.getFile.md @@ -56,6 +56,7 @@ upload.File = upload.getFile({precise=Bool, location=InputFileLocation, offset=i |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/docs/API_docs/methods/upload.saveBigFilePart.md b/docs/API_docs/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/docs/API_docs/methods/upload.saveBigFilePart.md +++ b/docs/API_docs/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/docs/API_docs/methods/upload.saveFilePart.md b/docs/API_docs/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/docs/API_docs/methods/upload.saveFilePart.md +++ b/docs/API_docs/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/docs/API_docs/methods/users.getUsers.md b/docs/API_docs/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/docs/API_docs/methods/users.getUsers.md +++ b/docs/API_docs/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/docs/docs/UPDATES.md b/docs/docs/UPDATES.md index 3cfef816..d622d906 100644 --- a/docs/docs/UPDATES.md +++ b/docs/docs/UPDATES.md @@ -17,7 +17,7 @@ Update handling can be done in different ways: ## Self-restart on webhosts -When running the `loop()` method via web, MadelineProto will automatically enable a **magical self-restart hack**, to keep the bot running even on webhosts with limited execution time. +When running the `loop()` method via web, MadelineProto will automatically enable a **magical self-restart hack** (callback ID `restarter`), to keep the bot running even on webhosts with limited execution time. Locking will also be handled automatically (as well as disconnection from the user that opened the page), so even if you start the script via web several times, only one instance will be running at a time (no need to do flocking manually!). @@ -50,59 +50,85 @@ The `removeCallback` will return true if the callback exists and it was removed ## Async Event driven ```php -class EventHandler extends \danog\MadelineProto\EventHandler +use danog\MadelineProto\EventHandler; +use danog\MadelineProto\Tools; +use danog\MadelineProto\API; +use danog\MadelineProto\Logger; +use danog\MadelineProto\RPCErrorException; + +/** + * Event handler class. + */ +class MyEventHandler extends EventHandler { - public function __construct($MadelineProto) + /** + * @var int|string Username or ID of bot admin + */ + const ADMIN = "danogentili"; // Change this + /** + * Get peer(s) where to report errors + * + * @return int|string|array + */ + public function getReportPeers() { - parent::__construct($MadelineProto); + return [self::ADMIN]; } - public function onUpdateSomethingElse($update) + /** + * Handle updates from supergroups and channels + * + * @param array $update Update + * + * @return void + */ + public function onUpdateNewChannelMessage(array $update): \Generator { - // See the docs for a full list of updates: http://docs.madelineproto.xyz/API_docs/types/Update.html + return $this->onUpdateNewMessage($update); } - public function onUpdateNewChannelMessage($update) + /** + * Handle updates from users. + * + * @param array $update Update + * + * @return \Generator + */ + public function onUpdateNewMessage(array $update): \Generator { - yield $this->onUpdateNewMessage($update); - } - public function onUpdateNewMessage($update) - { - if (isset($update['message']['out']) && $update['message']['out']) { + if ($update['message']['_'] === 'messageEmpty' || $update['message']['out'] ?? false) { return; } - $res = json_encode($update, JSON_PRETTY_PRINT); - if ($res == '') { - $res = var_export($update, true); - } + $res = \json_encode($update, JSON_PRETTY_PRINT); try { - yield $this->messages->sendMessage(['peer' => $update, 'message' => $res, 'reply_to_msg_id' => $update['message']['id']]); - } catch (\danog\MadelineProto\RPCErrorException $e) { - yield $this->messages->sendMessage(['peer' => '@danogentili', 'message' => (string) $e]); - } - - try { - if (isset($update['message']['media']) && ($update['message']['media']['_'] == 'messageMediaPhoto' || $update['message']['media']['_'] == 'messageMediaDocument')) { - $time = microtime(true); - $file = yield $this->downloadToDir($update, '/tmp'); - yield $this->messages->sendMessage(['peer' => $update, 'message' => 'Downloaded to '.$file.' in '.(microtime(true) - $time).' seconds', 'reply_to_msg_id' => $update['message']['id']]); + yield $this->messages->sendMessage(['peer' => $update, 'message' => "$res", 'reply_to_msg_id' => isset($update['message']['id']) ? $update['message']['id'] : null, 'parse_mode' => 'HTML']); + if (isset($update['message']['media']) && $update['message']['media']['_'] !== 'messageMediaGame') { + yield $this->messages->sendMedia(['peer' => $update, 'message' => $update['message']['message'], 'media' => $update]); + } + } catch (RPCErrorException $e) { + $this->report("Surfaced: $e"); + } catch (Exception $e) { + if (\stripos($e->getMessage(), 'invalid constructor given') === false) { + $this->report("Surfaced: $e"); } - } catch (\danog\MadelineProto\RPCErrorException $e) { - yield $this->messages->sendMessage(['peer' => '@danogentili', 'message' => (string) $e]); } } } +$settings = [ + 'logger' => [ + 'logger_level' => 5 + ], + 'serialization' => [ + 'serialization_interval' => 30, + ], +]; - -$MadelineProto = new \danog\MadelineProto\API('bot.madeline'); -$MadelineProto->async(true); -$MadelineProto->loop(function () use ($MadelineProto) { - yield $MadelineProto->start(); - yield $MadelineProto->setEventHandler('\EventHandler'); -}); -$MadelineProto->loop(); +$MadelineProto = new API('bot.madeline', $settings); +$MadelineProto->startAndLoop(MyEventHandler::class); ``` -This will create an event handler class `EventHandler`, create a MadelineProto session, and set the event handler class to our newly created event handler. +This will create an event handler class `MyEventHandler`, create a MadelineProto session, and set the event handler class to our newly created event handler. + +The **new** `startAndLoop` method automatically initializes MadelineProto, **enables async**, logs in the user/bot, initializes error reporting, catches and reports all errors surfacing from the event loop to the peers returned by the `getReportPeers` method. This yield syntax might be new to you, even if you already used MadelineProto in the past. It's a new syntax to allow async **parallel processing** of updates and HUGE speed improvements. @@ -126,144 +152,54 @@ If you intend to use your own constructor in the event handler, make sure to cal The update handling loop is started by the `$MadelineProto->loop()` method, and it will automatically restart the script if execution time runs out. -To break out of the loop just call `die();`, or throw an exception from within (make sure to catch it outside, in the `$MadelineProto->loop()` call). +To forecfully restart and apply changes made to the event handler class, call `$MadelineProto->restart();`. -## Async Combined event driven +## Async event driven (multiaccount) ```php -class EventHandler extends \danog\MadelineProto\CombinedEventHandler -{ - public function __construct($CombinedMadelineProto) - { - parent::__construct($CombinedMadelineProto); - } - public function onUpdateSomethingElse($update, $session) - { - // See the docs for a full list of updates: http://docs.madelineproto.xyz/API_docs/types/Update.html - } - public function onUpdateNewChannelMessage($update, $session) - { - yield $this->onUpdateNewMessage($update, $session); - } - public function onUpdateNewMessage($update, $session) - { - if (isset($update['message']['out']) && $update['message']['out']) { - return; - } - $res = json_encode($update, JSON_PRETTY_PRINT); - if ($res == '') { - $res = var_export($update, true); - } +use danog\MadelineProto\EventHandler; +use danog\MadelineProto\Tools; +use danog\MadelineProto\API; +use danog\MadelineProto\Logger; +use danog\MadelineProto\RPCErrorException; - try { - yield $this->{$session}->messages->sendMessage(['peer' => $update, 'message' => $res, 'reply_to_msg_id' => $update['message']['id']]); - } catch (\danog\MadelineProto\RPCErrorException $e) { - yield $this->{$session}->messages->sendMessage(['peer' => '@danogentili', 'message' => (string) $e]); - } +// Normal event handler definition as above - try { - if (isset($update['message']['media']) && ($update['message']['media']['_'] == 'messageMediaPhoto' || $update['message']['media']['_'] == 'messageMediaDocument')) { - $time = microtime(true); - $file = yield $this->{$session}->downloadToDir($update, '/tmp'); - yield $this->{$session}->messages->sendMessage(['peer' => $update, 'message' => 'Downloaded to '.$file.' in '.(microtime(true) - $time).' seconds', 'reply_to_msg_id' => $update['message']['id']]); - } - } catch (\danog\MadelineProto\RPCErrorException $e) { - yield $this->{$session}->messages->sendMessage(['peer' => '@danogentili', 'message' => (string) $e]); - } - } +$MadelineProtos = []; +foreach ([ + 'bot.madeline' => 'Bot Login', + 'user.madeline' => 'Userbot login', + 'user2.madeline' => 'Userbot login (2)' +] as $session => $message) { + Logger::log($message, Logger::WARNING); + $MadelineProto = new API($session); + $MadelineProto->async(true); + $MadelineProto->loop(function () use ($MadelineProto) { + yield $MadelineProto->start(); + yield $MadelineProto->setEventHandler(MyEventHandler::class); + }); + $MadelineProtos []= $MadelineProto->loopFork(); } -$settings = []; -$CombinedMadelineProto = new \danog\MadelineProto\CombinedAPI('combined_session.madeline', ['bot.madeline' => $settings, 'user.madeline' => $settings, 'user2.madeline' => $settings]); -$CombinedMadelineProto->async(true); -$CombinedMadelineProto->loop(function () use ($CombinedMadelineProto) { - $res = []; - foreach ([ - 'bot.madeline' => 'Bot Login', - 'user.madeline' => 'Userbot login', - 'user2.madeline' => 'Userbot login (2)' - ] as $session => $message) { - \danog\MadelineProto\Logger::log($message, \danog\MadelineProto\Logger::WARNING); - $res []= $CombinedMadelineProto->instances[$session]->start(); +do { + $thrown = false; + try { + Tools::wait(Tools::all($MadelineProtos)); + } catch (\Throwable $e) { + $thrown = true; + try { + $MadelineProto->report("Surfaced: $e"); + } catch (\Throwable $e) { + $MadelineProto->logger((string) $e, \danog\MadelineProto\Logger::FATAL_ERROR); + } } - yield $CombinedMadelineProto->all($res); - yield $CombinedMadelineProto->setEventHandler('\EventHandler'); -}); -$CombinedMadelineProto->loop(); +} while ($thrown); ``` This will create an event handler class `EventHandler`, create a **combined** MadelineProto session with session files `bot.madeline`, `user.madeline`, `user2.madeline`, and set the event handler class to our newly created event handler. -This yield syntax might be new to you, even if you already used MadelineProto in the past. -It's a new syntax to allow async **parallel processing** of updates and HUGE speed improvements. -It was recently introduced in MadelineProto, [here's a full explanation](ASYNC.html). -If your code still relies on the old synchronous behaviour, it's still supported, but I HIGHLY recommend you switch to the new async syntax: it's __super__ easy, [just add a `yield` in front of method calls](ASYNC.html)! - -When an [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html) is received, the corresponding `onUpdateType` event handler method is called. - -To get a list of all possible update types, [click here](https://docs.madelineproto.xyz/API_docs/types/Update.html). - -If such a method does not exist, the `onAny` event handler method is called. -If the `onAny` event handler method does not exist, the update is ignored. -The first paramter of the event handler method will always be the [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html), the second parameter will always be the **session name**. - - -The `onLoop` method is not recommended anymore, use AMPHP's [repeat](https://amphp.org/amp/event-loop/api#repeat) or MadelineProto's [async loop API](ASYNC.html#async-loop-apis) to schedule actions in a cron-like manner. - -To access the `$MadelineProto` instance of the account that sent the update, from inside of the event handler, simply access `$this->{$session_name}` (`$session_name` is the second parameter value of the event handler method, or just the session filename): -```php -$this->{$session_name}->messages->sendMessage(['peer' => '@danogentili', 'message' => 'hi']); -$this->{'user2.madeline'}->messages->sendMessage(['peer' => '@danogentili', 'message' => 'hi2']); -``` - -If you intend to use your own constructor in the event handler, make sure to call the parent construtor with the only parameter provided to your constructor. - -If you need to use the [__sleep](https://www.php.net/manual/en/language.oop5.magic.php#object.sleep) function, make sure it is called `__magic_sleep`, instead. - -The update handling loop is started by the `$MadelineProto->loop()` method, and it will automatically restart the script if execution time runs out. - -To break out of the loop just call `die();`, or throw an exception from within (make sure to catch it outside, in the `$MadelineProto->loop()` call). - - - -## Async callback - -```php -$MadelineProto = new \danog\MadelineProto\API('bot.madeline'); - -$MadelineProto->start(); -$MadelineProto->setCallback(function ($update) use ($MadelineProto) { - - if (isset($update['message']['out']) && $update['message']['out']) { - return; - } - $res = json_encode($update, JSON_PRETTY_PRINT); - if ($res == '') { - $res = var_export($update, true); - } - - try { - yield $MadelineProto->messages->sendMessage(['peer' => $update, 'message' => $res, 'reply_to_msg_id' => $update['message']['id']]); - } catch (\danog\MadelineProto\RPCErrorException $e) { - yield $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => (string) $e]); - } -}); -$MadelineProto->async(true); -$MadelineProto->loop(); -``` -When an [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html) is received, the provided callback function is called. - -The update handling loop is started by the `$MadelineProto->loop()` method, and it will automatically restart the script if execution time runs out. - -This yield syntax might be new to you, even if you already used MadelineProto in the past. -It's a new syntax to allow async **parallel processing** of updates and HUGE speed improvements. -It was recently introduced in MadelineProto, [here's a full explanation](ASYNC.html). -If your code still relies on the old synchronous behaviour, it's still supported, but I HIGHLY recommend you switch to the new async syntax: it's __super__ easy, [just add a `yield` in front of method calls](ASYNC.html)! - -To break out of the loop just call `die();`, or throw an exception from within (make sure to catch it outside, in the `$MadelineProto->loop()` call). - - +Usage is the same as for [the normal event handler](#async-event-driven), with the difference that by using `loopFork`, multiple accounts can receive and handle updates in parallel, each with its own event handler instance. ## Noop diff --git a/old_docs/API_docs_v100/methods/account.changePhone.md b/old_docs/API_docs_v100/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v100/methods/account.changePhone.md +++ b/old_docs/API_docs_v100/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v100/methods/account.checkUsername.md b/old_docs/API_docs_v100/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v100/methods/account.checkUsername.md +++ b/old_docs/API_docs_v100/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v100/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v100/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v100/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v100/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v100/methods/account.getAuthorizations.md b/old_docs/API_docs_v100/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v100/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v100/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v100/methods/account.initTakeoutSession.md b/old_docs/API_docs_v100/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v100/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v100/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v100/methods/account.updateNotifySettings.md b/old_docs/API_docs_v100/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v100/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v100/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v100/methods/account.updateUsername.md b/old_docs/API_docs_v100/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v100/methods/account.updateUsername.md +++ b/old_docs/API_docs_v100/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v100/methods/auth.cancelCode.md b/old_docs/API_docs_v100/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v100/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v100/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v100/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v100/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v100/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v100/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v100/methods/channels.editAdmin.md b/old_docs/API_docs_v100/methods/channels.editAdmin.md index 64ad80c3..ac505845 100644 --- a/old_docs/API_docs_v100/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v100/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v100/methods/channels.editPhoto.md b/old_docs/API_docs_v100/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v100/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v100/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v100/methods/channels.getChannels.md b/old_docs/API_docs_v100/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v100/methods/channels.getChannels.md +++ b/old_docs/API_docs_v100/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v100/methods/channels.getMessages.md b/old_docs/API_docs_v100/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v100/methods/channels.getMessages.md +++ b/old_docs/API_docs_v100/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v100/methods/channels.joinChannel.md b/old_docs/API_docs_v100/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v100/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v100/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v100/methods/channels.readHistory.md b/old_docs/API_docs_v100/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v100/methods/channels.readHistory.md +++ b/old_docs/API_docs_v100/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v100/methods/channels.reportSpam.md b/old_docs/API_docs_v100/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v100/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v100/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v100/methods/channels.toggleSignatures.md b/old_docs/API_docs_v100/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v100/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v100/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v100/methods/help.getConfig.md b/old_docs/API_docs_v100/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v100/methods/help.getConfig.md +++ b/old_docs/API_docs_v100/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v100/methods/help.getNearestDc.md b/old_docs/API_docs_v100/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v100/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v100/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v100/methods/messages.createChat.md b/old_docs/API_docs_v100/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v100/methods/messages.createChat.md +++ b/old_docs/API_docs_v100/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v100/methods/messages.deleteHistory.md b/old_docs/API_docs_v100/methods/messages.deleteHistory.md index c7ff96a9..909831be 100644 --- a/old_docs/API_docs_v100/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v100/methods/messages.deleteHistory.md @@ -50,6 +50,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, revoke=Bool, | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v100/methods/messages.editChatAbout.md b/old_docs/API_docs_v100/methods/messages.editChatAbout.md index 7a6e8812..dbe28e12 100644 --- a/old_docs/API_docs_v100/methods/messages.editChatAbout.md +++ b/old_docs/API_docs_v100/methods/messages.editChatAbout.md @@ -48,6 +48,7 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v100/methods/messages.editChatPhoto.md b/old_docs/API_docs_v100/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v100/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v100/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v100/methods/messages.editMessage.md b/old_docs/API_docs_v100/methods/messages.editMessage.md index 36a980f1..09bf4661 100644 --- a/old_docs/API_docs_v100/methods/messages.editMessage.md +++ b/old_docs/API_docs_v100/methods/messages.editMessage.md @@ -102,17 +102,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v100/methods/messages.exportChatInvite.md b/old_docs/API_docs_v100/methods/messages.exportChatInvite.md index 54bf1523..0295197f 100644 --- a/old_docs/API_docs_v100/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v100/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v100/methods/messages.forwardMessages.md b/old_docs/API_docs_v100/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v100/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v100/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v100/methods/messages.getDialogs.md b/old_docs/API_docs_v100/methods/messages.getDialogs.md index 301f3608..d73dfe2a 100644 --- a/old_docs/API_docs_v100/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v100/methods/messages.getDialogs.md @@ -55,6 +55,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, folder_id=int, offs |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v100/methods/messages.getMessageEditData.md b/old_docs/API_docs_v100/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v100/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v100/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v100/methods/messages.getMessagesViews.md b/old_docs/API_docs_v100/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v100/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v100/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v100/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v100/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v100/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v100/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v100/methods/messages.importChatInvite.md b/old_docs/API_docs_v100/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v100/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v100/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v100/methods/messages.readMentions.md b/old_docs/API_docs_v100/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v100/methods/messages.readMentions.md +++ b/old_docs/API_docs_v100/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v100/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v100/methods/messages.sendInlineBotResult.md index 619a4642..9e34a816 100644 --- a/old_docs/API_docs_v100/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v100/methods/messages.sendInlineBotResult.md @@ -54,8 +54,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -63,8 +66,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v100/methods/messages.sendMedia.md b/old_docs/API_docs_v100/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v100/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v100/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v100/methods/messages.sendMessage.md b/old_docs/API_docs_v100/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v100/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v100/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v100/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v100/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v100/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v100/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v100/methods/messages.setTyping.md b/old_docs/API_docs_v100/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v100/methods/messages.setTyping.md +++ b/old_docs/API_docs_v100/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v100/methods/messages.uploadMedia.md b/old_docs/API_docs_v100/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v100/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v100/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v100/methods/upload.getFile.md b/old_docs/API_docs_v100/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v100/methods/upload.getFile.md +++ b/old_docs/API_docs_v100/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v100/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v100/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v100/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v100/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v100/methods/upload.saveFilePart.md b/old_docs/API_docs_v100/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v100/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v100/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v100/methods/users.getUsers.md b/old_docs/API_docs_v100/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v100/methods/users.getUsers.md +++ b/old_docs/API_docs_v100/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v102/methods/account.changePhone.md b/old_docs/API_docs_v102/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v102/methods/account.changePhone.md +++ b/old_docs/API_docs_v102/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v102/methods/account.checkUsername.md b/old_docs/API_docs_v102/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v102/methods/account.checkUsername.md +++ b/old_docs/API_docs_v102/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v102/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v102/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v102/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v102/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v102/methods/account.getAuthorizations.md b/old_docs/API_docs_v102/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v102/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v102/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v102/methods/account.initTakeoutSession.md b/old_docs/API_docs_v102/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v102/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v102/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v102/methods/account.updateNotifySettings.md b/old_docs/API_docs_v102/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v102/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v102/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v102/methods/account.updateUsername.md b/old_docs/API_docs_v102/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v102/methods/account.updateUsername.md +++ b/old_docs/API_docs_v102/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v102/methods/auth.cancelCode.md b/old_docs/API_docs_v102/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v102/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v102/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v102/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v102/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v102/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v102/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v102/methods/channels.editAdmin.md b/old_docs/API_docs_v102/methods/channels.editAdmin.md index 64ad80c3..ac505845 100644 --- a/old_docs/API_docs_v102/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v102/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v102/methods/channels.editPhoto.md b/old_docs/API_docs_v102/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v102/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v102/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v102/methods/channels.getChannels.md b/old_docs/API_docs_v102/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v102/methods/channels.getChannels.md +++ b/old_docs/API_docs_v102/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v102/methods/channels.getMessages.md b/old_docs/API_docs_v102/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v102/methods/channels.getMessages.md +++ b/old_docs/API_docs_v102/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v102/methods/channels.joinChannel.md b/old_docs/API_docs_v102/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v102/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v102/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v102/methods/channels.readHistory.md b/old_docs/API_docs_v102/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v102/methods/channels.readHistory.md +++ b/old_docs/API_docs_v102/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v102/methods/channels.reportSpam.md b/old_docs/API_docs_v102/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v102/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v102/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v102/methods/channels.toggleSignatures.md b/old_docs/API_docs_v102/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v102/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v102/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v102/methods/help.getConfig.md b/old_docs/API_docs_v102/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v102/methods/help.getConfig.md +++ b/old_docs/API_docs_v102/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v102/methods/help.getNearestDc.md b/old_docs/API_docs_v102/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v102/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v102/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v102/methods/messages.createChat.md b/old_docs/API_docs_v102/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v102/methods/messages.createChat.md +++ b/old_docs/API_docs_v102/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v102/methods/messages.deleteHistory.md b/old_docs/API_docs_v102/methods/messages.deleteHistory.md index c7ff96a9..909831be 100644 --- a/old_docs/API_docs_v102/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v102/methods/messages.deleteHistory.md @@ -50,6 +50,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, revoke=Bool, | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v102/methods/messages.editChatAbout.md b/old_docs/API_docs_v102/methods/messages.editChatAbout.md index 7a6e8812..dbe28e12 100644 --- a/old_docs/API_docs_v102/methods/messages.editChatAbout.md +++ b/old_docs/API_docs_v102/methods/messages.editChatAbout.md @@ -48,6 +48,7 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v102/methods/messages.editChatPhoto.md b/old_docs/API_docs_v102/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v102/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v102/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v102/methods/messages.editMessage.md b/old_docs/API_docs_v102/methods/messages.editMessage.md index 36a980f1..09bf4661 100644 --- a/old_docs/API_docs_v102/methods/messages.editMessage.md +++ b/old_docs/API_docs_v102/methods/messages.editMessage.md @@ -102,17 +102,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v102/methods/messages.exportChatInvite.md b/old_docs/API_docs_v102/methods/messages.exportChatInvite.md index 54bf1523..0295197f 100644 --- a/old_docs/API_docs_v102/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v102/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v102/methods/messages.forwardMessages.md b/old_docs/API_docs_v102/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v102/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v102/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v102/methods/messages.getDialogs.md b/old_docs/API_docs_v102/methods/messages.getDialogs.md index 301f3608..d73dfe2a 100644 --- a/old_docs/API_docs_v102/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v102/methods/messages.getDialogs.md @@ -55,6 +55,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, folder_id=int, offs |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v102/methods/messages.getMessageEditData.md b/old_docs/API_docs_v102/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v102/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v102/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v102/methods/messages.getMessagesViews.md b/old_docs/API_docs_v102/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v102/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v102/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v102/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v102/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v102/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v102/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v102/methods/messages.importChatInvite.md b/old_docs/API_docs_v102/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v102/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v102/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v102/methods/messages.readMentions.md b/old_docs/API_docs_v102/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v102/methods/messages.readMentions.md +++ b/old_docs/API_docs_v102/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v102/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v102/methods/messages.sendInlineBotResult.md index 619a4642..9e34a816 100644 --- a/old_docs/API_docs_v102/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v102/methods/messages.sendInlineBotResult.md @@ -54,8 +54,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -63,8 +66,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v102/methods/messages.sendMedia.md b/old_docs/API_docs_v102/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v102/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v102/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v102/methods/messages.sendMessage.md b/old_docs/API_docs_v102/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v102/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v102/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v102/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v102/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v102/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v102/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v102/methods/messages.setTyping.md b/old_docs/API_docs_v102/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v102/methods/messages.setTyping.md +++ b/old_docs/API_docs_v102/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v102/methods/messages.uploadMedia.md b/old_docs/API_docs_v102/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v102/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v102/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v102/methods/upload.getFile.md b/old_docs/API_docs_v102/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v102/methods/upload.getFile.md +++ b/old_docs/API_docs_v102/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v102/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v102/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v102/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v102/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v102/methods/upload.saveFilePart.md b/old_docs/API_docs_v102/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v102/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v102/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v102/methods/users.getUsers.md b/old_docs/API_docs_v102/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v102/methods/users.getUsers.md +++ b/old_docs/API_docs_v102/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v103/methods/account.changePhone.md b/old_docs/API_docs_v103/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v103/methods/account.changePhone.md +++ b/old_docs/API_docs_v103/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v103/methods/account.checkUsername.md b/old_docs/API_docs_v103/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v103/methods/account.checkUsername.md +++ b/old_docs/API_docs_v103/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v103/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v103/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v103/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v103/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v103/methods/account.getAuthorizations.md b/old_docs/API_docs_v103/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v103/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v103/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v103/methods/account.initTakeoutSession.md b/old_docs/API_docs_v103/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v103/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v103/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v103/methods/account.updateNotifySettings.md b/old_docs/API_docs_v103/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v103/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v103/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v103/methods/account.updateUsername.md b/old_docs/API_docs_v103/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v103/methods/account.updateUsername.md +++ b/old_docs/API_docs_v103/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v103/methods/auth.cancelCode.md b/old_docs/API_docs_v103/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v103/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v103/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v103/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v103/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v103/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v103/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v103/methods/channels.editAdmin.md b/old_docs/API_docs_v103/methods/channels.editAdmin.md index 64ad80c3..ac505845 100644 --- a/old_docs/API_docs_v103/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v103/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v103/methods/channels.editPhoto.md b/old_docs/API_docs_v103/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v103/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v103/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v103/methods/channels.getChannels.md b/old_docs/API_docs_v103/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v103/methods/channels.getChannels.md +++ b/old_docs/API_docs_v103/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v103/methods/channels.getMessages.md b/old_docs/API_docs_v103/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v103/methods/channels.getMessages.md +++ b/old_docs/API_docs_v103/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v103/methods/channels.joinChannel.md b/old_docs/API_docs_v103/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v103/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v103/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v103/methods/channels.readHistory.md b/old_docs/API_docs_v103/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v103/methods/channels.readHistory.md +++ b/old_docs/API_docs_v103/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v103/methods/channels.reportSpam.md b/old_docs/API_docs_v103/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v103/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v103/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v103/methods/channels.toggleSignatures.md b/old_docs/API_docs_v103/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v103/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v103/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v103/methods/help.getConfig.md b/old_docs/API_docs_v103/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v103/methods/help.getConfig.md +++ b/old_docs/API_docs_v103/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v103/methods/help.getNearestDc.md b/old_docs/API_docs_v103/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v103/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v103/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v103/methods/messages.createChat.md b/old_docs/API_docs_v103/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v103/methods/messages.createChat.md +++ b/old_docs/API_docs_v103/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v103/methods/messages.deleteHistory.md b/old_docs/API_docs_v103/methods/messages.deleteHistory.md index c7ff96a9..909831be 100644 --- a/old_docs/API_docs_v103/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v103/methods/messages.deleteHistory.md @@ -50,6 +50,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, revoke=Bool, | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v103/methods/messages.editChatAbout.md b/old_docs/API_docs_v103/methods/messages.editChatAbout.md index 7a6e8812..dbe28e12 100644 --- a/old_docs/API_docs_v103/methods/messages.editChatAbout.md +++ b/old_docs/API_docs_v103/methods/messages.editChatAbout.md @@ -48,6 +48,7 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v103/methods/messages.editChatPhoto.md b/old_docs/API_docs_v103/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v103/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v103/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v103/methods/messages.editMessage.md b/old_docs/API_docs_v103/methods/messages.editMessage.md index 36a980f1..09bf4661 100644 --- a/old_docs/API_docs_v103/methods/messages.editMessage.md +++ b/old_docs/API_docs_v103/methods/messages.editMessage.md @@ -102,17 +102,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v103/methods/messages.exportChatInvite.md b/old_docs/API_docs_v103/methods/messages.exportChatInvite.md index 54bf1523..0295197f 100644 --- a/old_docs/API_docs_v103/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v103/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v103/methods/messages.forwardMessages.md b/old_docs/API_docs_v103/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v103/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v103/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v103/methods/messages.getDialogs.md b/old_docs/API_docs_v103/methods/messages.getDialogs.md index 301f3608..d73dfe2a 100644 --- a/old_docs/API_docs_v103/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v103/methods/messages.getDialogs.md @@ -55,6 +55,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, folder_id=int, offs |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v103/methods/messages.getMessageEditData.md b/old_docs/API_docs_v103/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v103/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v103/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v103/methods/messages.getMessagesViews.md b/old_docs/API_docs_v103/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v103/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v103/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v103/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v103/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v103/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v103/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v103/methods/messages.importChatInvite.md b/old_docs/API_docs_v103/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v103/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v103/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v103/methods/messages.readMentions.md b/old_docs/API_docs_v103/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v103/methods/messages.readMentions.md +++ b/old_docs/API_docs_v103/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v103/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v103/methods/messages.sendInlineBotResult.md index 619a4642..9e34a816 100644 --- a/old_docs/API_docs_v103/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v103/methods/messages.sendInlineBotResult.md @@ -54,8 +54,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -63,8 +66,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v103/methods/messages.sendMedia.md b/old_docs/API_docs_v103/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v103/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v103/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v103/methods/messages.sendMessage.md b/old_docs/API_docs_v103/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v103/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v103/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v103/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v103/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v103/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v103/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v103/methods/messages.setTyping.md b/old_docs/API_docs_v103/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v103/methods/messages.setTyping.md +++ b/old_docs/API_docs_v103/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v103/methods/messages.uploadMedia.md b/old_docs/API_docs_v103/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v103/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v103/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v103/methods/upload.getFile.md b/old_docs/API_docs_v103/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v103/methods/upload.getFile.md +++ b/old_docs/API_docs_v103/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v103/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v103/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v103/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v103/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v103/methods/upload.saveFilePart.md b/old_docs/API_docs_v103/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v103/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v103/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v103/methods/users.getUsers.md b/old_docs/API_docs_v103/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v103/methods/users.getUsers.md +++ b/old_docs/API_docs_v103/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v104/methods/account.changePhone.md b/old_docs/API_docs_v104/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v104/methods/account.changePhone.md +++ b/old_docs/API_docs_v104/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v104/methods/account.checkUsername.md b/old_docs/API_docs_v104/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v104/methods/account.checkUsername.md +++ b/old_docs/API_docs_v104/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v104/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v104/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v104/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v104/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v104/methods/account.getAuthorizations.md b/old_docs/API_docs_v104/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v104/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v104/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v104/methods/account.initTakeoutSession.md b/old_docs/API_docs_v104/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v104/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v104/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v104/methods/account.updateNotifySettings.md b/old_docs/API_docs_v104/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v104/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v104/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v104/methods/account.updateUsername.md b/old_docs/API_docs_v104/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v104/methods/account.updateUsername.md +++ b/old_docs/API_docs_v104/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v104/methods/auth.cancelCode.md b/old_docs/API_docs_v104/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v104/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v104/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v104/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v104/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v104/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v104/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v104/methods/channels.editAdmin.md b/old_docs/API_docs_v104/methods/channels.editAdmin.md index 826cfc58..41926192 100644 --- a/old_docs/API_docs_v104/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v104/methods/channels.editAdmin.md @@ -53,6 +53,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v104/methods/channels.editPhoto.md b/old_docs/API_docs_v104/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v104/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v104/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v104/methods/channels.getChannels.md b/old_docs/API_docs_v104/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v104/methods/channels.getChannels.md +++ b/old_docs/API_docs_v104/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v104/methods/channels.getMessages.md b/old_docs/API_docs_v104/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v104/methods/channels.getMessages.md +++ b/old_docs/API_docs_v104/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v104/methods/channels.joinChannel.md b/old_docs/API_docs_v104/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v104/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v104/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v104/methods/channels.readHistory.md b/old_docs/API_docs_v104/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v104/methods/channels.readHistory.md +++ b/old_docs/API_docs_v104/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v104/methods/channels.reportSpam.md b/old_docs/API_docs_v104/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v104/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v104/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v104/methods/channels.toggleSignatures.md b/old_docs/API_docs_v104/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v104/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v104/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v104/methods/help.getConfig.md b/old_docs/API_docs_v104/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v104/methods/help.getConfig.md +++ b/old_docs/API_docs_v104/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v104/methods/help.getNearestDc.md b/old_docs/API_docs_v104/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v104/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v104/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v104/methods/messages.createChat.md b/old_docs/API_docs_v104/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v104/methods/messages.createChat.md +++ b/old_docs/API_docs_v104/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v104/methods/messages.deleteHistory.md b/old_docs/API_docs_v104/methods/messages.deleteHistory.md index c7ff96a9..909831be 100644 --- a/old_docs/API_docs_v104/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v104/methods/messages.deleteHistory.md @@ -50,6 +50,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, revoke=Bool, | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v104/methods/messages.editChatAbout.md b/old_docs/API_docs_v104/methods/messages.editChatAbout.md index 7a6e8812..dbe28e12 100644 --- a/old_docs/API_docs_v104/methods/messages.editChatAbout.md +++ b/old_docs/API_docs_v104/methods/messages.editChatAbout.md @@ -48,6 +48,7 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v104/methods/messages.editChatPhoto.md b/old_docs/API_docs_v104/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v104/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v104/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v104/methods/messages.editMessage.md b/old_docs/API_docs_v104/methods/messages.editMessage.md index 36a980f1..09bf4661 100644 --- a/old_docs/API_docs_v104/methods/messages.editMessage.md +++ b/old_docs/API_docs_v104/methods/messages.editMessage.md @@ -102,17 +102,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v104/methods/messages.exportChatInvite.md b/old_docs/API_docs_v104/methods/messages.exportChatInvite.md index 54bf1523..0295197f 100644 --- a/old_docs/API_docs_v104/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v104/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v104/methods/messages.forwardMessages.md b/old_docs/API_docs_v104/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v104/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v104/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v104/methods/messages.getDialogs.md b/old_docs/API_docs_v104/methods/messages.getDialogs.md index 301f3608..d73dfe2a 100644 --- a/old_docs/API_docs_v104/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v104/methods/messages.getDialogs.md @@ -55,6 +55,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, folder_id=int, offs |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v104/methods/messages.getMessageEditData.md b/old_docs/API_docs_v104/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v104/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v104/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v104/methods/messages.getMessagesViews.md b/old_docs/API_docs_v104/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v104/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v104/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v104/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v104/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v104/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v104/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v104/methods/messages.importChatInvite.md b/old_docs/API_docs_v104/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v104/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v104/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v104/methods/messages.readMentions.md b/old_docs/API_docs_v104/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v104/methods/messages.readMentions.md +++ b/old_docs/API_docs_v104/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v104/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v104/methods/messages.sendInlineBotResult.md index 619a4642..9e34a816 100644 --- a/old_docs/API_docs_v104/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v104/methods/messages.sendInlineBotResult.md @@ -54,8 +54,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -63,8 +66,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v104/methods/messages.sendMedia.md b/old_docs/API_docs_v104/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v104/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v104/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v104/methods/messages.sendMessage.md b/old_docs/API_docs_v104/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v104/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v104/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v104/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v104/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v104/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v104/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v104/methods/messages.setTyping.md b/old_docs/API_docs_v104/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v104/methods/messages.setTyping.md +++ b/old_docs/API_docs_v104/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v104/methods/messages.uploadMedia.md b/old_docs/API_docs_v104/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v104/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v104/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v104/methods/upload.getFile.md b/old_docs/API_docs_v104/methods/upload.getFile.md index 2f535b1b..8fc16fb7 100644 --- a/old_docs/API_docs_v104/methods/upload.getFile.md +++ b/old_docs/API_docs_v104/methods/upload.getFile.md @@ -56,6 +56,7 @@ upload.File = upload.getFile({precise=Bool, location=InputFileLocation, offset=i |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v104/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v104/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v104/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v104/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v104/methods/upload.saveFilePart.md b/old_docs/API_docs_v104/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v104/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v104/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v104/methods/users.getUsers.md b/old_docs/API_docs_v104/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v104/methods/users.getUsers.md +++ b/old_docs/API_docs_v104/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v105/methods/account.changePhone.md b/old_docs/API_docs_v105/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v105/methods/account.changePhone.md +++ b/old_docs/API_docs_v105/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v105/methods/account.checkUsername.md b/old_docs/API_docs_v105/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v105/methods/account.checkUsername.md +++ b/old_docs/API_docs_v105/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v105/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v105/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v105/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v105/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v105/methods/account.getAuthorizations.md b/old_docs/API_docs_v105/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v105/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v105/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v105/methods/account.initTakeoutSession.md b/old_docs/API_docs_v105/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v105/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v105/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v105/methods/account.updateNotifySettings.md b/old_docs/API_docs_v105/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v105/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v105/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v105/methods/account.updateUsername.md b/old_docs/API_docs_v105/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v105/methods/account.updateUsername.md +++ b/old_docs/API_docs_v105/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v105/methods/auth.cancelCode.md b/old_docs/API_docs_v105/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v105/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v105/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v105/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v105/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v105/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v105/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v105/methods/channels.editAdmin.md b/old_docs/API_docs_v105/methods/channels.editAdmin.md index 826cfc58..41926192 100644 --- a/old_docs/API_docs_v105/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v105/methods/channels.editAdmin.md @@ -53,6 +53,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v105/methods/channels.editPhoto.md b/old_docs/API_docs_v105/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v105/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v105/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v105/methods/channels.getChannels.md b/old_docs/API_docs_v105/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v105/methods/channels.getChannels.md +++ b/old_docs/API_docs_v105/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v105/methods/channels.getMessages.md b/old_docs/API_docs_v105/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v105/methods/channels.getMessages.md +++ b/old_docs/API_docs_v105/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v105/methods/channels.joinChannel.md b/old_docs/API_docs_v105/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v105/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v105/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v105/methods/channels.readHistory.md b/old_docs/API_docs_v105/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v105/methods/channels.readHistory.md +++ b/old_docs/API_docs_v105/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v105/methods/channels.reportSpam.md b/old_docs/API_docs_v105/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v105/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v105/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v105/methods/channels.toggleSignatures.md b/old_docs/API_docs_v105/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v105/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v105/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v105/methods/help.getConfig.md b/old_docs/API_docs_v105/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v105/methods/help.getConfig.md +++ b/old_docs/API_docs_v105/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v105/methods/help.getNearestDc.md b/old_docs/API_docs_v105/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v105/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v105/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v105/methods/messages.createChat.md b/old_docs/API_docs_v105/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v105/methods/messages.createChat.md +++ b/old_docs/API_docs_v105/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v105/methods/messages.deleteHistory.md b/old_docs/API_docs_v105/methods/messages.deleteHistory.md index c7ff96a9..909831be 100644 --- a/old_docs/API_docs_v105/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v105/methods/messages.deleteHistory.md @@ -50,6 +50,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, revoke=Bool, | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v105/methods/messages.editChatAbout.md b/old_docs/API_docs_v105/methods/messages.editChatAbout.md index 7a6e8812..dbe28e12 100644 --- a/old_docs/API_docs_v105/methods/messages.editChatAbout.md +++ b/old_docs/API_docs_v105/methods/messages.editChatAbout.md @@ -48,6 +48,7 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v105/methods/messages.editChatPhoto.md b/old_docs/API_docs_v105/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v105/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v105/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v105/methods/messages.editMessage.md b/old_docs/API_docs_v105/methods/messages.editMessage.md index 03c58bde..cafc5bef 100644 --- a/old_docs/API_docs_v105/methods/messages.editMessage.md +++ b/old_docs/API_docs_v105/methods/messages.editMessage.md @@ -103,17 +103,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v105/methods/messages.exportChatInvite.md b/old_docs/API_docs_v105/methods/messages.exportChatInvite.md index 54bf1523..0295197f 100644 --- a/old_docs/API_docs_v105/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v105/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v105/methods/messages.forwardMessages.md b/old_docs/API_docs_v105/methods/messages.forwardMessages.md index 0c69476a..2b874f1a 100644 --- a/old_docs/API_docs_v105/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v105/methods/messages.forwardMessages.md @@ -73,6 +73,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v105/methods/messages.getDialogs.md b/old_docs/API_docs_v105/methods/messages.getDialogs.md index 301f3608..d73dfe2a 100644 --- a/old_docs/API_docs_v105/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v105/methods/messages.getDialogs.md @@ -55,6 +55,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, folder_id=int, offs |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v105/methods/messages.getMessageEditData.md b/old_docs/API_docs_v105/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v105/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v105/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v105/methods/messages.getMessagesViews.md b/old_docs/API_docs_v105/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v105/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v105/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v105/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v105/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v105/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v105/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v105/methods/messages.importChatInvite.md b/old_docs/API_docs_v105/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v105/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v105/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v105/methods/messages.readMentions.md b/old_docs/API_docs_v105/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v105/methods/messages.readMentions.md +++ b/old_docs/API_docs_v105/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v105/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v105/methods/messages.sendInlineBotResult.md index cb7c3c36..f05204b7 100644 --- a/old_docs/API_docs_v105/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v105/methods/messages.sendInlineBotResult.md @@ -55,8 +55,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -64,8 +67,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v105/methods/messages.sendMedia.md b/old_docs/API_docs_v105/methods/messages.sendMedia.md index c636976b..c05a2257 100644 --- a/old_docs/API_docs_v105/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v105/methods/messages.sendMedia.md @@ -107,6 +107,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -125,15 +126,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v105/methods/messages.sendMessage.md b/old_docs/API_docs_v105/methods/messages.sendMessage.md index 43ee681f..6275a4b4 100644 --- a/old_docs/API_docs_v105/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v105/methods/messages.sendMessage.md @@ -123,6 +123,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v105/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v105/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v105/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v105/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v105/methods/messages.setTyping.md b/old_docs/API_docs_v105/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v105/methods/messages.setTyping.md +++ b/old_docs/API_docs_v105/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v105/methods/messages.uploadMedia.md b/old_docs/API_docs_v105/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v105/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v105/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v105/methods/upload.getFile.md b/old_docs/API_docs_v105/methods/upload.getFile.md index 2f535b1b..8fc16fb7 100644 --- a/old_docs/API_docs_v105/methods/upload.getFile.md +++ b/old_docs/API_docs_v105/methods/upload.getFile.md @@ -56,6 +56,7 @@ upload.File = upload.getFile({precise=Bool, location=InputFileLocation, offset=i |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v105/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v105/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v105/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v105/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v105/methods/upload.saveFilePart.md b/old_docs/API_docs_v105/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v105/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v105/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v105/methods/users.getUsers.md b/old_docs/API_docs_v105/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v105/methods/users.getUsers.md +++ b/old_docs/API_docs_v105/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v18/methods/account.checkUsername.md b/old_docs/API_docs_v18/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v18/methods/account.checkUsername.md +++ b/old_docs/API_docs_v18/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v18/methods/account.updateNotifySettings.md b/old_docs/API_docs_v18/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v18/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v18/methods/account.updateUsername.md b/old_docs/API_docs_v18/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v18/methods/account.updateUsername.md +++ b/old_docs/API_docs_v18/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v18/methods/help.getConfig.md b/old_docs/API_docs_v18/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v18/methods/help.getConfig.md +++ b/old_docs/API_docs_v18/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v18/methods/help.getNearestDc.md b/old_docs/API_docs_v18/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v18/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v18/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v18/methods/messages.createChat.md b/old_docs/API_docs_v18/methods/messages.createChat.md index 355ac821..845956af 100644 --- a/old_docs/API_docs_v18/methods/messages.createChat.md +++ b/old_docs/API_docs_v18/methods/messages.createChat.md @@ -49,6 +49,7 @@ messages.StatedMessage = messages.createChat({users={InputUser}, title='string', | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v18/methods/messages.deleteHistory.md b/old_docs/API_docs_v18/methods/messages.deleteHistory.md index 74d29933..a704a137 100644 --- a/old_docs/API_docs_v18/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v18/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, offset=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v18/methods/messages.editChatPhoto.md b/old_docs/API_docs_v18/methods/messages.editChatPhoto.md index 1ecf3e6c..3e15bba8 100644 --- a/old_docs/API_docs_v18/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v18/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ messages.StatedMessage = messages.editChatPhoto({chat_id=InputPeer, photo=InputC |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v18/methods/messages.forwardMessages.md b/old_docs/API_docs_v18/methods/messages.forwardMessages.md index 47bd1856..9473318d 100644 --- a/old_docs/API_docs_v18/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v18/methods/messages.forwardMessages.md @@ -67,6 +67,7 @@ messages.StatedMessages = messages.forwardMessages({peer=InputPeer, id={int}, }) |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v18/methods/messages.getDialogs.md b/old_docs/API_docs_v18/methods/messages.getDialogs.md index e4a16e57..386e7aac 100644 --- a/old_docs/API_docs_v18/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v18/methods/messages.getDialogs.md @@ -51,6 +51,7 @@ messages.Dialogs = messages.getDialogs({offset=int, max_id=int, limit=int, }) |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v18/methods/messages.sendMedia.md b/old_docs/API_docs_v18/methods/messages.sendMedia.md index 625ddb64..09b526a3 100644 --- a/old_docs/API_docs_v18/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v18/methods/messages.sendMedia.md @@ -50,6 +50,7 @@ messages.StatedMessage = messages.sendMedia({peer=InputPeer, media=InputMedia, } |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -68,15 +69,22 @@ messages.StatedMessage = messages.sendMedia({peer=InputPeer, media=InputMedia, } |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v18/methods/messages.sendMessage.md b/old_docs/API_docs_v18/methods/messages.sendMessage.md index 9862dd29..3338e11f 100644 --- a/old_docs/API_docs_v18/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v18/methods/messages.sendMessage.md @@ -72,6 +72,7 @@ If the length of the provided message is bigger than 4096, the message will be s |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v18/methods/messages.setTyping.md b/old_docs/API_docs_v18/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v18/methods/messages.setTyping.md +++ b/old_docs/API_docs_v18/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v18/methods/upload.getFile.md b/old_docs/API_docs_v18/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v18/methods/upload.getFile.md +++ b/old_docs/API_docs_v18/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v18/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v18/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v18/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v18/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v18/methods/upload.saveFilePart.md b/old_docs/API_docs_v18/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v18/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v18/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v18/methods/users.getUsers.md b/old_docs/API_docs_v18/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v18/methods/users.getUsers.md +++ b/old_docs/API_docs_v18/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v23/methods/account.changePhone.md b/old_docs/API_docs_v23/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v23/methods/account.changePhone.md +++ b/old_docs/API_docs_v23/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v23/methods/account.checkUsername.md b/old_docs/API_docs_v23/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v23/methods/account.checkUsername.md +++ b/old_docs/API_docs_v23/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v23/methods/account.updateNotifySettings.md b/old_docs/API_docs_v23/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v23/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v23/methods/account.updateUsername.md b/old_docs/API_docs_v23/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v23/methods/account.updateUsername.md +++ b/old_docs/API_docs_v23/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v23/methods/help.getConfig.md b/old_docs/API_docs_v23/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v23/methods/help.getConfig.md +++ b/old_docs/API_docs_v23/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v23/methods/help.getNearestDc.md b/old_docs/API_docs_v23/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v23/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v23/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v23/methods/messages.createChat.md b/old_docs/API_docs_v23/methods/messages.createChat.md index 355ac821..845956af 100644 --- a/old_docs/API_docs_v23/methods/messages.createChat.md +++ b/old_docs/API_docs_v23/methods/messages.createChat.md @@ -49,6 +49,7 @@ messages.StatedMessage = messages.createChat({users={InputUser}, title='string', | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v23/methods/messages.deleteHistory.md b/old_docs/API_docs_v23/methods/messages.deleteHistory.md index 74d29933..a704a137 100644 --- a/old_docs/API_docs_v23/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v23/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, offset=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v23/methods/messages.editChatPhoto.md b/old_docs/API_docs_v23/methods/messages.editChatPhoto.md index 1ecf3e6c..3e15bba8 100644 --- a/old_docs/API_docs_v23/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v23/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ messages.StatedMessage = messages.editChatPhoto({chat_id=InputPeer, photo=InputC |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v23/methods/messages.forwardMessages.md b/old_docs/API_docs_v23/methods/messages.forwardMessages.md index 47bd1856..9473318d 100644 --- a/old_docs/API_docs_v23/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v23/methods/messages.forwardMessages.md @@ -67,6 +67,7 @@ messages.StatedMessages = messages.forwardMessages({peer=InputPeer, id={int}, }) |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v23/methods/messages.getDialogs.md b/old_docs/API_docs_v23/methods/messages.getDialogs.md index e4a16e57..386e7aac 100644 --- a/old_docs/API_docs_v23/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v23/methods/messages.getDialogs.md @@ -51,6 +51,7 @@ messages.Dialogs = messages.getDialogs({offset=int, max_id=int, limit=int, }) |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v23/methods/messages.sendMedia.md b/old_docs/API_docs_v23/methods/messages.sendMedia.md index 625ddb64..09b526a3 100644 --- a/old_docs/API_docs_v23/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v23/methods/messages.sendMedia.md @@ -50,6 +50,7 @@ messages.StatedMessage = messages.sendMedia({peer=InputPeer, media=InputMedia, } |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -68,15 +69,22 @@ messages.StatedMessage = messages.sendMedia({peer=InputPeer, media=InputMedia, } |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v23/methods/messages.sendMessage.md b/old_docs/API_docs_v23/methods/messages.sendMessage.md index 9862dd29..3338e11f 100644 --- a/old_docs/API_docs_v23/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v23/methods/messages.sendMessage.md @@ -72,6 +72,7 @@ If the length of the provided message is bigger than 4096, the message will be s |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v23/methods/messages.setTyping.md b/old_docs/API_docs_v23/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v23/methods/messages.setTyping.md +++ b/old_docs/API_docs_v23/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v23/methods/upload.getFile.md b/old_docs/API_docs_v23/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v23/methods/upload.getFile.md +++ b/old_docs/API_docs_v23/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v23/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v23/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v23/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v23/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v23/methods/upload.saveFilePart.md b/old_docs/API_docs_v23/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v23/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v23/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v23/methods/users.getUsers.md b/old_docs/API_docs_v23/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v23/methods/users.getUsers.md +++ b/old_docs/API_docs_v23/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v25/methods/account.changePhone.md b/old_docs/API_docs_v25/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v25/methods/account.changePhone.md +++ b/old_docs/API_docs_v25/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v25/methods/account.checkUsername.md b/old_docs/API_docs_v25/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v25/methods/account.checkUsername.md +++ b/old_docs/API_docs_v25/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v25/methods/account.updateNotifySettings.md b/old_docs/API_docs_v25/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v25/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v25/methods/account.updateUsername.md b/old_docs/API_docs_v25/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v25/methods/account.updateUsername.md +++ b/old_docs/API_docs_v25/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v25/methods/help.getConfig.md b/old_docs/API_docs_v25/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v25/methods/help.getConfig.md +++ b/old_docs/API_docs_v25/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v25/methods/help.getNearestDc.md b/old_docs/API_docs_v25/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v25/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v25/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v25/methods/messages.createChat.md b/old_docs/API_docs_v25/methods/messages.createChat.md index 355ac821..845956af 100644 --- a/old_docs/API_docs_v25/methods/messages.createChat.md +++ b/old_docs/API_docs_v25/methods/messages.createChat.md @@ -49,6 +49,7 @@ messages.StatedMessage = messages.createChat({users={InputUser}, title='string', | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v25/methods/messages.deleteHistory.md b/old_docs/API_docs_v25/methods/messages.deleteHistory.md index 74d29933..a704a137 100644 --- a/old_docs/API_docs_v25/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v25/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, offset=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v25/methods/messages.editChatPhoto.md b/old_docs/API_docs_v25/methods/messages.editChatPhoto.md index 1ecf3e6c..3e15bba8 100644 --- a/old_docs/API_docs_v25/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v25/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ messages.StatedMessage = messages.editChatPhoto({chat_id=InputPeer, photo=InputC |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v25/methods/messages.forwardMessages.md b/old_docs/API_docs_v25/methods/messages.forwardMessages.md index 47bd1856..9473318d 100644 --- a/old_docs/API_docs_v25/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v25/methods/messages.forwardMessages.md @@ -67,6 +67,7 @@ messages.StatedMessages = messages.forwardMessages({peer=InputPeer, id={int}, }) |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v25/methods/messages.getDialogs.md b/old_docs/API_docs_v25/methods/messages.getDialogs.md index e4a16e57..386e7aac 100644 --- a/old_docs/API_docs_v25/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v25/methods/messages.getDialogs.md @@ -51,6 +51,7 @@ messages.Dialogs = messages.getDialogs({offset=int, max_id=int, limit=int, }) |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v25/methods/messages.sendMedia.md b/old_docs/API_docs_v25/methods/messages.sendMedia.md index cf2398a7..40aee8ad 100644 --- a/old_docs/API_docs_v25/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v25/methods/messages.sendMedia.md @@ -51,6 +51,7 @@ messages.StatedMessage = messages.sendMedia({peer=InputPeer, reply_to_msg_id=int |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -69,15 +70,22 @@ messages.StatedMessage = messages.sendMedia({peer=InputPeer, reply_to_msg_id=int |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v25/methods/messages.sendMessage.md b/old_docs/API_docs_v25/methods/messages.sendMessage.md index 51abc78d..011acd4f 100644 --- a/old_docs/API_docs_v25/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v25/methods/messages.sendMessage.md @@ -73,6 +73,7 @@ If the length of the provided message is bigger than 4096, the message will be s |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v25/methods/messages.setTyping.md b/old_docs/API_docs_v25/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v25/methods/messages.setTyping.md +++ b/old_docs/API_docs_v25/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v25/methods/upload.getFile.md b/old_docs/API_docs_v25/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v25/methods/upload.getFile.md +++ b/old_docs/API_docs_v25/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v25/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v25/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v25/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v25/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v25/methods/upload.saveFilePart.md b/old_docs/API_docs_v25/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v25/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v25/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v25/methods/users.getUsers.md b/old_docs/API_docs_v25/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v25/methods/users.getUsers.md +++ b/old_docs/API_docs_v25/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v27/methods/account.changePhone.md b/old_docs/API_docs_v27/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v27/methods/account.changePhone.md +++ b/old_docs/API_docs_v27/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v27/methods/account.checkUsername.md b/old_docs/API_docs_v27/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v27/methods/account.checkUsername.md +++ b/old_docs/API_docs_v27/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v27/methods/account.getAuthorizations.md b/old_docs/API_docs_v27/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v27/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v27/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v27/methods/account.updateNotifySettings.md b/old_docs/API_docs_v27/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v27/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v27/methods/account.updateUsername.md b/old_docs/API_docs_v27/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v27/methods/account.updateUsername.md +++ b/old_docs/API_docs_v27/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v27/methods/help.getConfig.md b/old_docs/API_docs_v27/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v27/methods/help.getConfig.md +++ b/old_docs/API_docs_v27/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v27/methods/help.getNearestDc.md b/old_docs/API_docs_v27/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v27/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v27/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v27/methods/messages.createChat.md b/old_docs/API_docs_v27/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v27/methods/messages.createChat.md +++ b/old_docs/API_docs_v27/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v27/methods/messages.deleteHistory.md b/old_docs/API_docs_v27/methods/messages.deleteHistory.md index 74d29933..a704a137 100644 --- a/old_docs/API_docs_v27/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v27/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, offset=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v27/methods/messages.editChatPhoto.md b/old_docs/API_docs_v27/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v27/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v27/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v27/methods/messages.forwardMessages.md b/old_docs/API_docs_v27/methods/messages.forwardMessages.md index fb8ccdd5..0b4eecfe 100644 --- a/old_docs/API_docs_v27/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v27/methods/messages.forwardMessages.md @@ -67,6 +67,7 @@ Updates = messages.forwardMessages({peer=InputPeer, id={int}, }) |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v27/methods/messages.getDialogs.md b/old_docs/API_docs_v27/methods/messages.getDialogs.md index e4a16e57..386e7aac 100644 --- a/old_docs/API_docs_v27/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v27/methods/messages.getDialogs.md @@ -51,6 +51,7 @@ messages.Dialogs = messages.getDialogs({offset=int, max_id=int, limit=int, }) |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v27/methods/messages.sendMedia.md b/old_docs/API_docs_v27/methods/messages.sendMedia.md index 2b022126..c2fc29cb 100644 --- a/old_docs/API_docs_v27/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v27/methods/messages.sendMedia.md @@ -51,6 +51,7 @@ Updates = messages.sendMedia({peer=InputPeer, reply_to_msg_id=int, media=InputMe |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -69,15 +70,22 @@ Updates = messages.sendMedia({peer=InputPeer, reply_to_msg_id=int, media=InputMe |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v27/methods/messages.sendMessage.md b/old_docs/API_docs_v27/methods/messages.sendMessage.md index b1cd9b0e..2cf5eb59 100644 --- a/old_docs/API_docs_v27/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v27/methods/messages.sendMessage.md @@ -73,6 +73,7 @@ If the length of the provided message is bigger than 4096, the message will be s |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v27/methods/messages.setTyping.md b/old_docs/API_docs_v27/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v27/methods/messages.setTyping.md +++ b/old_docs/API_docs_v27/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v27/methods/upload.getFile.md b/old_docs/API_docs_v27/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v27/methods/upload.getFile.md +++ b/old_docs/API_docs_v27/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v27/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v27/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v27/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v27/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v27/methods/upload.saveFilePart.md b/old_docs/API_docs_v27/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v27/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v27/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v27/methods/users.getUsers.md b/old_docs/API_docs_v27/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v27/methods/users.getUsers.md +++ b/old_docs/API_docs_v27/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v33/methods/account.changePhone.md b/old_docs/API_docs_v33/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v33/methods/account.changePhone.md +++ b/old_docs/API_docs_v33/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v33/methods/account.checkUsername.md b/old_docs/API_docs_v33/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v33/methods/account.checkUsername.md +++ b/old_docs/API_docs_v33/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v33/methods/account.getAuthorizations.md b/old_docs/API_docs_v33/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v33/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v33/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v33/methods/account.updateNotifySettings.md b/old_docs/API_docs_v33/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v33/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v33/methods/account.updateUsername.md b/old_docs/API_docs_v33/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v33/methods/account.updateUsername.md +++ b/old_docs/API_docs_v33/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v33/methods/help.getConfig.md b/old_docs/API_docs_v33/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v33/methods/help.getConfig.md +++ b/old_docs/API_docs_v33/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v33/methods/help.getNearestDc.md b/old_docs/API_docs_v33/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v33/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v33/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v33/methods/messages.createChat.md b/old_docs/API_docs_v33/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v33/methods/messages.createChat.md +++ b/old_docs/API_docs_v33/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v33/methods/messages.deleteHistory.md b/old_docs/API_docs_v33/methods/messages.deleteHistory.md index 74d29933..a704a137 100644 --- a/old_docs/API_docs_v33/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v33/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, offset=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v33/methods/messages.editChatPhoto.md b/old_docs/API_docs_v33/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v33/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v33/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v33/methods/messages.exportChatInvite.md b/old_docs/API_docs_v33/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v33/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v33/methods/messages.forwardMessages.md b/old_docs/API_docs_v33/methods/messages.forwardMessages.md index fb8ccdd5..0b4eecfe 100644 --- a/old_docs/API_docs_v33/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v33/methods/messages.forwardMessages.md @@ -67,6 +67,7 @@ Updates = messages.forwardMessages({peer=InputPeer, id={int}, }) |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v33/methods/messages.getDialogs.md b/old_docs/API_docs_v33/methods/messages.getDialogs.md index e4a16e57..386e7aac 100644 --- a/old_docs/API_docs_v33/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v33/methods/messages.getDialogs.md @@ -51,6 +51,7 @@ messages.Dialogs = messages.getDialogs({offset=int, max_id=int, limit=int, }) |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v33/methods/messages.importChatInvite.md b/old_docs/API_docs_v33/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v33/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v33/methods/messages.sendMedia.md b/old_docs/API_docs_v33/methods/messages.sendMedia.md index 8c142bf4..e98cadbc 100644 --- a/old_docs/API_docs_v33/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v33/methods/messages.sendMedia.md @@ -58,6 +58,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -76,15 +77,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v33/methods/messages.sendMessage.md b/old_docs/API_docs_v33/methods/messages.sendMessage.md index e608c19f..0c177a86 100644 --- a/old_docs/API_docs_v33/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v33/methods/messages.sendMessage.md @@ -80,6 +80,7 @@ If the length of the provided message is bigger than 4096, the message will be s |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v33/methods/messages.setTyping.md b/old_docs/API_docs_v33/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v33/methods/messages.setTyping.md +++ b/old_docs/API_docs_v33/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v33/methods/upload.getFile.md b/old_docs/API_docs_v33/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v33/methods/upload.getFile.md +++ b/old_docs/API_docs_v33/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v33/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v33/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v33/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v33/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v33/methods/upload.saveFilePart.md b/old_docs/API_docs_v33/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v33/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v33/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v33/methods/users.getUsers.md b/old_docs/API_docs_v33/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v33/methods/users.getUsers.md +++ b/old_docs/API_docs_v33/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v38/methods/account.changePhone.md b/old_docs/API_docs_v38/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v38/methods/account.changePhone.md +++ b/old_docs/API_docs_v38/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v38/methods/account.checkUsername.md b/old_docs/API_docs_v38/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v38/methods/account.checkUsername.md +++ b/old_docs/API_docs_v38/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v38/methods/account.getAuthorizations.md b/old_docs/API_docs_v38/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v38/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v38/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v38/methods/account.updateNotifySettings.md b/old_docs/API_docs_v38/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v38/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v38/methods/account.updateUsername.md b/old_docs/API_docs_v38/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v38/methods/account.updateUsername.md +++ b/old_docs/API_docs_v38/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v38/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v38/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v38/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v38/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v38/methods/channels.editAdmin.md b/old_docs/API_docs_v38/methods/channels.editAdmin.md index 57b77637..033899b1 100644 --- a/old_docs/API_docs_v38/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v38/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Bool = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Channel |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v38/methods/channels.editPhoto.md b/old_docs/API_docs_v38/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v38/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v38/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v38/methods/channels.getChannels.md b/old_docs/API_docs_v38/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v38/methods/channels.getChannels.md +++ b/old_docs/API_docs_v38/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v38/methods/channels.getMessages.md b/old_docs/API_docs_v38/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v38/methods/channels.getMessages.md +++ b/old_docs/API_docs_v38/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v38/methods/channels.joinChannel.md b/old_docs/API_docs_v38/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v38/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v38/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v38/methods/channels.readHistory.md b/old_docs/API_docs_v38/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v38/methods/channels.readHistory.md +++ b/old_docs/API_docs_v38/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v38/methods/channels.reportSpam.md b/old_docs/API_docs_v38/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v38/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v38/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v38/methods/help.getConfig.md b/old_docs/API_docs_v38/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v38/methods/help.getConfig.md +++ b/old_docs/API_docs_v38/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v38/methods/help.getNearestDc.md b/old_docs/API_docs_v38/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v38/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v38/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v38/methods/messages.createChat.md b/old_docs/API_docs_v38/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v38/methods/messages.createChat.md +++ b/old_docs/API_docs_v38/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v38/methods/messages.deleteHistory.md b/old_docs/API_docs_v38/methods/messages.deleteHistory.md index 74d29933..a704a137 100644 --- a/old_docs/API_docs_v38/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v38/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, offset=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v38/methods/messages.editChatPhoto.md b/old_docs/API_docs_v38/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v38/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v38/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v38/methods/messages.exportChatInvite.md b/old_docs/API_docs_v38/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v38/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v38/methods/messages.forwardMessages.md b/old_docs/API_docs_v38/methods/messages.forwardMessages.md index 2343936c..904a9083 100644 --- a/old_docs/API_docs_v38/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v38/methods/messages.forwardMessages.md @@ -68,6 +68,7 @@ Updates = messages.forwardMessages({from_peer=InputPeer, id={int}, to_peer=Input |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v38/methods/messages.getDialogs.md b/old_docs/API_docs_v38/methods/messages.getDialogs.md index b40e1021..6d1310ac 100644 --- a/old_docs/API_docs_v38/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v38/methods/messages.getDialogs.md @@ -50,6 +50,7 @@ messages.Dialogs = messages.getDialogs({offset=int, limit=int, }) |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v38/methods/messages.getMessagesViews.md b/old_docs/API_docs_v38/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v38/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v38/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v38/methods/messages.importChatInvite.md b/old_docs/API_docs_v38/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v38/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v38/methods/messages.sendMedia.md b/old_docs/API_docs_v38/methods/messages.sendMedia.md index 8c142bf4..e98cadbc 100644 --- a/old_docs/API_docs_v38/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v38/methods/messages.sendMedia.md @@ -58,6 +58,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -76,15 +77,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v38/methods/messages.sendMessage.md b/old_docs/API_docs_v38/methods/messages.sendMessage.md index 212662d6..61173201 100644 --- a/old_docs/API_docs_v38/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v38/methods/messages.sendMessage.md @@ -118,6 +118,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v38/methods/messages.setTyping.md b/old_docs/API_docs_v38/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v38/methods/messages.setTyping.md +++ b/old_docs/API_docs_v38/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v38/methods/upload.getFile.md b/old_docs/API_docs_v38/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v38/methods/upload.getFile.md +++ b/old_docs/API_docs_v38/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v38/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v38/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v38/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v38/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v38/methods/upload.saveFilePart.md b/old_docs/API_docs_v38/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v38/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v38/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v38/methods/users.getUsers.md b/old_docs/API_docs_v38/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v38/methods/users.getUsers.md +++ b/old_docs/API_docs_v38/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v40/methods/account.changePhone.md b/old_docs/API_docs_v40/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v40/methods/account.changePhone.md +++ b/old_docs/API_docs_v40/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v40/methods/account.checkUsername.md b/old_docs/API_docs_v40/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v40/methods/account.checkUsername.md +++ b/old_docs/API_docs_v40/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v40/methods/account.getAuthorizations.md b/old_docs/API_docs_v40/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v40/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v40/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v40/methods/account.updateNotifySettings.md b/old_docs/API_docs_v40/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v40/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v40/methods/account.updateUsername.md b/old_docs/API_docs_v40/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v40/methods/account.updateUsername.md +++ b/old_docs/API_docs_v40/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v40/methods/help.getConfig.md b/old_docs/API_docs_v40/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v40/methods/help.getConfig.md +++ b/old_docs/API_docs_v40/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v40/methods/help.getNearestDc.md b/old_docs/API_docs_v40/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v40/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v40/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v40/methods/messages.createChat.md b/old_docs/API_docs_v40/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v40/methods/messages.createChat.md +++ b/old_docs/API_docs_v40/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v40/methods/messages.deleteHistory.md b/old_docs/API_docs_v40/methods/messages.deleteHistory.md index 74d29933..a704a137 100644 --- a/old_docs/API_docs_v40/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v40/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, offset=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v40/methods/messages.editChatPhoto.md b/old_docs/API_docs_v40/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v40/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v40/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v40/methods/messages.exportChatInvite.md b/old_docs/API_docs_v40/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v40/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v40/methods/messages.forwardMessages.md b/old_docs/API_docs_v40/methods/messages.forwardMessages.md index fb8ccdd5..0b4eecfe 100644 --- a/old_docs/API_docs_v40/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v40/methods/messages.forwardMessages.md @@ -67,6 +67,7 @@ Updates = messages.forwardMessages({peer=InputPeer, id={int}, }) |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v40/methods/messages.getDialogs.md b/old_docs/API_docs_v40/methods/messages.getDialogs.md index b40e1021..6d1310ac 100644 --- a/old_docs/API_docs_v40/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v40/methods/messages.getDialogs.md @@ -50,6 +50,7 @@ messages.Dialogs = messages.getDialogs({offset=int, limit=int, }) |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v40/methods/messages.importChatInvite.md b/old_docs/API_docs_v40/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v40/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v40/methods/messages.sendMedia.md b/old_docs/API_docs_v40/methods/messages.sendMedia.md index 8c142bf4..e98cadbc 100644 --- a/old_docs/API_docs_v40/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v40/methods/messages.sendMedia.md @@ -58,6 +58,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -76,15 +77,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v40/methods/messages.sendMessage.md b/old_docs/API_docs_v40/methods/messages.sendMessage.md index 212662d6..61173201 100644 --- a/old_docs/API_docs_v40/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v40/methods/messages.sendMessage.md @@ -118,6 +118,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v40/methods/messages.setTyping.md b/old_docs/API_docs_v40/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v40/methods/messages.setTyping.md +++ b/old_docs/API_docs_v40/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v40/methods/upload.getFile.md b/old_docs/API_docs_v40/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v40/methods/upload.getFile.md +++ b/old_docs/API_docs_v40/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v40/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v40/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v40/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v40/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v40/methods/upload.saveFilePart.md b/old_docs/API_docs_v40/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v40/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v40/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v40/methods/users.getUsers.md b/old_docs/API_docs_v40/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v40/methods/users.getUsers.md +++ b/old_docs/API_docs_v40/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v41/methods/account.changePhone.md b/old_docs/API_docs_v41/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v41/methods/account.changePhone.md +++ b/old_docs/API_docs_v41/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v41/methods/account.checkUsername.md b/old_docs/API_docs_v41/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v41/methods/account.checkUsername.md +++ b/old_docs/API_docs_v41/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v41/methods/account.getAuthorizations.md b/old_docs/API_docs_v41/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v41/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v41/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v41/methods/account.updateNotifySettings.md b/old_docs/API_docs_v41/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v41/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v41/methods/account.updateUsername.md b/old_docs/API_docs_v41/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v41/methods/account.updateUsername.md +++ b/old_docs/API_docs_v41/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v41/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v41/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v41/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v41/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v41/methods/channels.editAdmin.md b/old_docs/API_docs_v41/methods/channels.editAdmin.md index 57b77637..033899b1 100644 --- a/old_docs/API_docs_v41/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v41/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Bool = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Channel |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v41/methods/channels.editPhoto.md b/old_docs/API_docs_v41/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v41/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v41/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v41/methods/channels.getChannels.md b/old_docs/API_docs_v41/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v41/methods/channels.getChannels.md +++ b/old_docs/API_docs_v41/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v41/methods/channels.getMessages.md b/old_docs/API_docs_v41/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v41/methods/channels.getMessages.md +++ b/old_docs/API_docs_v41/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v41/methods/channels.joinChannel.md b/old_docs/API_docs_v41/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v41/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v41/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v41/methods/channels.readHistory.md b/old_docs/API_docs_v41/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v41/methods/channels.readHistory.md +++ b/old_docs/API_docs_v41/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v41/methods/channels.reportSpam.md b/old_docs/API_docs_v41/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v41/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v41/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v41/methods/help.getConfig.md b/old_docs/API_docs_v41/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v41/methods/help.getConfig.md +++ b/old_docs/API_docs_v41/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v41/methods/help.getNearestDc.md b/old_docs/API_docs_v41/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v41/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v41/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v41/methods/messages.createChat.md b/old_docs/API_docs_v41/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v41/methods/messages.createChat.md +++ b/old_docs/API_docs_v41/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v41/methods/messages.deleteHistory.md b/old_docs/API_docs_v41/methods/messages.deleteHistory.md index a6eec4aa..1ccfc759 100644 --- a/old_docs/API_docs_v41/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v41/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, max_id=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v41/methods/messages.editChatPhoto.md b/old_docs/API_docs_v41/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v41/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v41/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v41/methods/messages.exportChatInvite.md b/old_docs/API_docs_v41/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v41/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v41/methods/messages.forwardMessages.md b/old_docs/API_docs_v41/methods/messages.forwardMessages.md index e60a739f..cc2e03a1 100644 --- a/old_docs/API_docs_v41/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v41/methods/messages.forwardMessages.md @@ -69,6 +69,7 @@ Updates = messages.forwardMessages({broadcast=Bool, from_peer=InputPeer, id={int |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v41/methods/messages.getDialogs.md b/old_docs/API_docs_v41/methods/messages.getDialogs.md index b40e1021..6d1310ac 100644 --- a/old_docs/API_docs_v41/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v41/methods/messages.getDialogs.md @@ -50,6 +50,7 @@ messages.Dialogs = messages.getDialogs({offset=int, limit=int, }) |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v41/methods/messages.getMessagesViews.md b/old_docs/API_docs_v41/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v41/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v41/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v41/methods/messages.importChatInvite.md b/old_docs/API_docs_v41/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v41/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v41/methods/messages.sendMedia.md b/old_docs/API_docs_v41/methods/messages.sendMedia.md index 3b7c5e5f..a1676e22 100644 --- a/old_docs/API_docs_v41/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v41/methods/messages.sendMedia.md @@ -59,6 +59,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -77,15 +78,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v41/methods/messages.sendMessage.md b/old_docs/API_docs_v41/methods/messages.sendMessage.md index 06170416..b13c9057 100644 --- a/old_docs/API_docs_v41/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v41/methods/messages.sendMessage.md @@ -120,6 +120,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v41/methods/messages.setTyping.md b/old_docs/API_docs_v41/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v41/methods/messages.setTyping.md +++ b/old_docs/API_docs_v41/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v41/methods/upload.getFile.md b/old_docs/API_docs_v41/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v41/methods/upload.getFile.md +++ b/old_docs/API_docs_v41/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v41/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v41/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v41/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v41/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v41/methods/upload.saveFilePart.md b/old_docs/API_docs_v41/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v41/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v41/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v41/methods/users.getUsers.md b/old_docs/API_docs_v41/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v41/methods/users.getUsers.md +++ b/old_docs/API_docs_v41/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v42/methods/account.changePhone.md b/old_docs/API_docs_v42/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v42/methods/account.changePhone.md +++ b/old_docs/API_docs_v42/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v42/methods/account.checkUsername.md b/old_docs/API_docs_v42/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v42/methods/account.checkUsername.md +++ b/old_docs/API_docs_v42/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v42/methods/account.getAuthorizations.md b/old_docs/API_docs_v42/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v42/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v42/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v42/methods/account.updateNotifySettings.md b/old_docs/API_docs_v42/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v42/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v42/methods/account.updateUsername.md b/old_docs/API_docs_v42/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v42/methods/account.updateUsername.md +++ b/old_docs/API_docs_v42/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v42/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v42/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v42/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v42/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v42/methods/channels.editAdmin.md b/old_docs/API_docs_v42/methods/channels.editAdmin.md index e3e5a093..3cc45b5e 100644 --- a/old_docs/API_docs_v42/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v42/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Chan |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v42/methods/channels.editPhoto.md b/old_docs/API_docs_v42/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v42/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v42/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v42/methods/channels.getChannels.md b/old_docs/API_docs_v42/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v42/methods/channels.getChannels.md +++ b/old_docs/API_docs_v42/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v42/methods/channels.getMessages.md b/old_docs/API_docs_v42/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v42/methods/channels.getMessages.md +++ b/old_docs/API_docs_v42/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v42/methods/channels.joinChannel.md b/old_docs/API_docs_v42/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v42/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v42/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v42/methods/channels.readHistory.md b/old_docs/API_docs_v42/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v42/methods/channels.readHistory.md +++ b/old_docs/API_docs_v42/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v42/methods/channels.reportSpam.md b/old_docs/API_docs_v42/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v42/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v42/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v42/methods/help.getConfig.md b/old_docs/API_docs_v42/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v42/methods/help.getConfig.md +++ b/old_docs/API_docs_v42/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v42/methods/help.getNearestDc.md b/old_docs/API_docs_v42/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v42/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v42/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v42/methods/messages.createChat.md b/old_docs/API_docs_v42/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v42/methods/messages.createChat.md +++ b/old_docs/API_docs_v42/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v42/methods/messages.deleteHistory.md b/old_docs/API_docs_v42/methods/messages.deleteHistory.md index a6eec4aa..1ccfc759 100644 --- a/old_docs/API_docs_v42/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v42/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, max_id=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v42/methods/messages.editChatPhoto.md b/old_docs/API_docs_v42/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v42/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v42/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v42/methods/messages.exportChatInvite.md b/old_docs/API_docs_v42/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v42/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v42/methods/messages.forwardMessages.md b/old_docs/API_docs_v42/methods/messages.forwardMessages.md index e60a739f..cc2e03a1 100644 --- a/old_docs/API_docs_v42/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v42/methods/messages.forwardMessages.md @@ -69,6 +69,7 @@ Updates = messages.forwardMessages({broadcast=Bool, from_peer=InputPeer, id={int |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v42/methods/messages.getDialogs.md b/old_docs/API_docs_v42/methods/messages.getDialogs.md index 9ed0e632..80edbb2a 100644 --- a/old_docs/API_docs_v42/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v42/methods/messages.getDialogs.md @@ -52,6 +52,7 @@ messages.Dialogs = messages.getDialogs({offset_date=int, offset_id=int, offset_p |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v42/methods/messages.getMessagesViews.md b/old_docs/API_docs_v42/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v42/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v42/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v42/methods/messages.importChatInvite.md b/old_docs/API_docs_v42/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v42/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v42/methods/messages.sendMedia.md b/old_docs/API_docs_v42/methods/messages.sendMedia.md index 3b7c5e5f..a1676e22 100644 --- a/old_docs/API_docs_v42/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v42/methods/messages.sendMedia.md @@ -59,6 +59,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -77,15 +78,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v42/methods/messages.sendMessage.md b/old_docs/API_docs_v42/methods/messages.sendMessage.md index 06170416..b13c9057 100644 --- a/old_docs/API_docs_v42/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v42/methods/messages.sendMessage.md @@ -120,6 +120,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v42/methods/messages.setTyping.md b/old_docs/API_docs_v42/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v42/methods/messages.setTyping.md +++ b/old_docs/API_docs_v42/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v42/methods/upload.getFile.md b/old_docs/API_docs_v42/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v42/methods/upload.getFile.md +++ b/old_docs/API_docs_v42/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v42/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v42/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v42/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v42/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v42/methods/upload.saveFilePart.md b/old_docs/API_docs_v42/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v42/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v42/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v42/methods/users.getUsers.md b/old_docs/API_docs_v42/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v42/methods/users.getUsers.md +++ b/old_docs/API_docs_v42/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v44/methods/account.changePhone.md b/old_docs/API_docs_v44/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v44/methods/account.changePhone.md +++ b/old_docs/API_docs_v44/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v44/methods/account.checkUsername.md b/old_docs/API_docs_v44/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v44/methods/account.checkUsername.md +++ b/old_docs/API_docs_v44/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v44/methods/account.getAuthorizations.md b/old_docs/API_docs_v44/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v44/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v44/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v44/methods/account.updateNotifySettings.md b/old_docs/API_docs_v44/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v44/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v44/methods/account.updateUsername.md b/old_docs/API_docs_v44/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v44/methods/account.updateUsername.md +++ b/old_docs/API_docs_v44/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v44/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v44/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v44/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v44/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v44/methods/channels.editAdmin.md b/old_docs/API_docs_v44/methods/channels.editAdmin.md index e3e5a093..3cc45b5e 100644 --- a/old_docs/API_docs_v44/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v44/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Chan |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v44/methods/channels.editPhoto.md b/old_docs/API_docs_v44/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v44/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v44/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v44/methods/channels.getChannels.md b/old_docs/API_docs_v44/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v44/methods/channels.getChannels.md +++ b/old_docs/API_docs_v44/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v44/methods/channels.getMessages.md b/old_docs/API_docs_v44/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v44/methods/channels.getMessages.md +++ b/old_docs/API_docs_v44/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v44/methods/channels.joinChannel.md b/old_docs/API_docs_v44/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v44/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v44/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v44/methods/channels.readHistory.md b/old_docs/API_docs_v44/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v44/methods/channels.readHistory.md +++ b/old_docs/API_docs_v44/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v44/methods/channels.reportSpam.md b/old_docs/API_docs_v44/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v44/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v44/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v44/methods/help.getConfig.md b/old_docs/API_docs_v44/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v44/methods/help.getConfig.md +++ b/old_docs/API_docs_v44/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v44/methods/help.getNearestDc.md b/old_docs/API_docs_v44/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v44/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v44/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v44/methods/messages.createChat.md b/old_docs/API_docs_v44/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v44/methods/messages.createChat.md +++ b/old_docs/API_docs_v44/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v44/methods/messages.deleteHistory.md b/old_docs/API_docs_v44/methods/messages.deleteHistory.md index a6eec4aa..1ccfc759 100644 --- a/old_docs/API_docs_v44/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v44/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, max_id=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v44/methods/messages.editChatPhoto.md b/old_docs/API_docs_v44/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v44/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v44/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v44/methods/messages.exportChatInvite.md b/old_docs/API_docs_v44/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v44/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v44/methods/messages.forwardMessages.md b/old_docs/API_docs_v44/methods/messages.forwardMessages.md index e60a739f..cc2e03a1 100644 --- a/old_docs/API_docs_v44/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v44/methods/messages.forwardMessages.md @@ -69,6 +69,7 @@ Updates = messages.forwardMessages({broadcast=Bool, from_peer=InputPeer, id={int |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v44/methods/messages.getDialogs.md b/old_docs/API_docs_v44/methods/messages.getDialogs.md index 9ed0e632..80edbb2a 100644 --- a/old_docs/API_docs_v44/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v44/methods/messages.getDialogs.md @@ -52,6 +52,7 @@ messages.Dialogs = messages.getDialogs({offset_date=int, offset_id=int, offset_p |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v44/methods/messages.getMessagesViews.md b/old_docs/API_docs_v44/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v44/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v44/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v44/methods/messages.importChatInvite.md b/old_docs/API_docs_v44/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v44/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v44/methods/messages.sendMedia.md b/old_docs/API_docs_v44/methods/messages.sendMedia.md index 3b7c5e5f..a1676e22 100644 --- a/old_docs/API_docs_v44/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v44/methods/messages.sendMedia.md @@ -59,6 +59,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -77,15 +78,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v44/methods/messages.sendMessage.md b/old_docs/API_docs_v44/methods/messages.sendMessage.md index 06170416..b13c9057 100644 --- a/old_docs/API_docs_v44/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v44/methods/messages.sendMessage.md @@ -120,6 +120,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v44/methods/messages.setTyping.md b/old_docs/API_docs_v44/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v44/methods/messages.setTyping.md +++ b/old_docs/API_docs_v44/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v44/methods/upload.getFile.md b/old_docs/API_docs_v44/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v44/methods/upload.getFile.md +++ b/old_docs/API_docs_v44/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v44/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v44/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v44/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v44/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v44/methods/upload.saveFilePart.md b/old_docs/API_docs_v44/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v44/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v44/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v44/methods/users.getUsers.md b/old_docs/API_docs_v44/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v44/methods/users.getUsers.md +++ b/old_docs/API_docs_v44/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v45/methods/account.changePhone.md b/old_docs/API_docs_v45/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v45/methods/account.changePhone.md +++ b/old_docs/API_docs_v45/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v45/methods/account.checkUsername.md b/old_docs/API_docs_v45/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v45/methods/account.checkUsername.md +++ b/old_docs/API_docs_v45/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v45/methods/account.getAuthorizations.md b/old_docs/API_docs_v45/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v45/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v45/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v45/methods/account.updateNotifySettings.md b/old_docs/API_docs_v45/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v45/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v45/methods/account.updateUsername.md b/old_docs/API_docs_v45/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v45/methods/account.updateUsername.md +++ b/old_docs/API_docs_v45/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v45/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v45/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v45/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v45/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v45/methods/channels.editAdmin.md b/old_docs/API_docs_v45/methods/channels.editAdmin.md index e3e5a093..3cc45b5e 100644 --- a/old_docs/API_docs_v45/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v45/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Chan |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v45/methods/channels.editPhoto.md b/old_docs/API_docs_v45/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v45/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v45/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v45/methods/channels.getChannels.md b/old_docs/API_docs_v45/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v45/methods/channels.getChannels.md +++ b/old_docs/API_docs_v45/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v45/methods/channels.getMessages.md b/old_docs/API_docs_v45/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v45/methods/channels.getMessages.md +++ b/old_docs/API_docs_v45/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v45/methods/channels.joinChannel.md b/old_docs/API_docs_v45/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v45/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v45/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v45/methods/channels.readHistory.md b/old_docs/API_docs_v45/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v45/methods/channels.readHistory.md +++ b/old_docs/API_docs_v45/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v45/methods/channels.reportSpam.md b/old_docs/API_docs_v45/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v45/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v45/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v45/methods/help.getConfig.md b/old_docs/API_docs_v45/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v45/methods/help.getConfig.md +++ b/old_docs/API_docs_v45/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v45/methods/help.getNearestDc.md b/old_docs/API_docs_v45/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v45/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v45/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v45/methods/messages.createChat.md b/old_docs/API_docs_v45/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v45/methods/messages.createChat.md +++ b/old_docs/API_docs_v45/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v45/methods/messages.deleteHistory.md b/old_docs/API_docs_v45/methods/messages.deleteHistory.md index a6eec4aa..1ccfc759 100644 --- a/old_docs/API_docs_v45/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v45/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, max_id=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v45/methods/messages.editChatPhoto.md b/old_docs/API_docs_v45/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v45/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v45/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v45/methods/messages.exportChatInvite.md b/old_docs/API_docs_v45/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v45/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v45/methods/messages.forwardMessages.md b/old_docs/API_docs_v45/methods/messages.forwardMessages.md index e60a739f..cc2e03a1 100644 --- a/old_docs/API_docs_v45/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v45/methods/messages.forwardMessages.md @@ -69,6 +69,7 @@ Updates = messages.forwardMessages({broadcast=Bool, from_peer=InputPeer, id={int |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v45/methods/messages.getDialogs.md b/old_docs/API_docs_v45/methods/messages.getDialogs.md index 9ed0e632..80edbb2a 100644 --- a/old_docs/API_docs_v45/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v45/methods/messages.getDialogs.md @@ -52,6 +52,7 @@ messages.Dialogs = messages.getDialogs({offset_date=int, offset_id=int, offset_p |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v45/methods/messages.getMessagesViews.md b/old_docs/API_docs_v45/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v45/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v45/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v45/methods/messages.importChatInvite.md b/old_docs/API_docs_v45/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v45/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v45/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v45/methods/messages.sendInlineBotResult.md index 93dba033..b4b41541 100644 --- a/old_docs/API_docs_v45/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v45/methods/messages.sendInlineBotResult.md @@ -51,8 +51,11 @@ Updates = messages.sendInlineBotResult({broadcast=Bool, peer=InputPeer, reply_to | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -60,8 +63,11 @@ Updates = messages.sendInlineBotResult({broadcast=Bool, peer=InputPeer, reply_to |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v45/methods/messages.sendMedia.md b/old_docs/API_docs_v45/methods/messages.sendMedia.md index 3b7c5e5f..a1676e22 100644 --- a/old_docs/API_docs_v45/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v45/methods/messages.sendMedia.md @@ -59,6 +59,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -77,15 +78,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v45/methods/messages.sendMessage.md b/old_docs/API_docs_v45/methods/messages.sendMessage.md index 06170416..b13c9057 100644 --- a/old_docs/API_docs_v45/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v45/methods/messages.sendMessage.md @@ -120,6 +120,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v45/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v45/methods/messages.setInlineBotResults.md index b48347dd..17629aa4 100644 --- a/old_docs/API_docs_v45/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v45/methods/messages.setInlineBotResults.md @@ -64,6 +64,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v45/methods/messages.setTyping.md b/old_docs/API_docs_v45/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v45/methods/messages.setTyping.md +++ b/old_docs/API_docs_v45/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v45/methods/upload.getFile.md b/old_docs/API_docs_v45/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v45/methods/upload.getFile.md +++ b/old_docs/API_docs_v45/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v45/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v45/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v45/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v45/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v45/methods/upload.saveFilePart.md b/old_docs/API_docs_v45/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v45/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v45/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v45/methods/users.getUsers.md b/old_docs/API_docs_v45/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v45/methods/users.getUsers.md +++ b/old_docs/API_docs_v45/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v46/methods/account.changePhone.md b/old_docs/API_docs_v46/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v46/methods/account.changePhone.md +++ b/old_docs/API_docs_v46/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v46/methods/account.checkUsername.md b/old_docs/API_docs_v46/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v46/methods/account.checkUsername.md +++ b/old_docs/API_docs_v46/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v46/methods/account.getAuthorizations.md b/old_docs/API_docs_v46/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v46/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v46/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v46/methods/account.updateNotifySettings.md b/old_docs/API_docs_v46/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v46/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v46/methods/account.updateUsername.md b/old_docs/API_docs_v46/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v46/methods/account.updateUsername.md +++ b/old_docs/API_docs_v46/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v46/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v46/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v46/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v46/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v46/methods/channels.editAdmin.md b/old_docs/API_docs_v46/methods/channels.editAdmin.md index e3e5a093..3cc45b5e 100644 --- a/old_docs/API_docs_v46/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v46/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Chan |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v46/methods/channels.editPhoto.md b/old_docs/API_docs_v46/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v46/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v46/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v46/methods/channels.getChannels.md b/old_docs/API_docs_v46/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v46/methods/channels.getChannels.md +++ b/old_docs/API_docs_v46/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v46/methods/channels.getMessages.md b/old_docs/API_docs_v46/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v46/methods/channels.getMessages.md +++ b/old_docs/API_docs_v46/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v46/methods/channels.joinChannel.md b/old_docs/API_docs_v46/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v46/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v46/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v46/methods/channels.readHistory.md b/old_docs/API_docs_v46/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v46/methods/channels.readHistory.md +++ b/old_docs/API_docs_v46/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v46/methods/channels.reportSpam.md b/old_docs/API_docs_v46/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v46/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v46/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v46/methods/help.getConfig.md b/old_docs/API_docs_v46/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v46/methods/help.getConfig.md +++ b/old_docs/API_docs_v46/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v46/methods/help.getNearestDc.md b/old_docs/API_docs_v46/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v46/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v46/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v46/methods/messages.createChat.md b/old_docs/API_docs_v46/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v46/methods/messages.createChat.md +++ b/old_docs/API_docs_v46/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v46/methods/messages.deleteHistory.md b/old_docs/API_docs_v46/methods/messages.deleteHistory.md index a6eec4aa..1ccfc759 100644 --- a/old_docs/API_docs_v46/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v46/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, max_id=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v46/methods/messages.editChatPhoto.md b/old_docs/API_docs_v46/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v46/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v46/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v46/methods/messages.exportChatInvite.md b/old_docs/API_docs_v46/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v46/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v46/methods/messages.forwardMessages.md b/old_docs/API_docs_v46/methods/messages.forwardMessages.md index e60a739f..cc2e03a1 100644 --- a/old_docs/API_docs_v46/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v46/methods/messages.forwardMessages.md @@ -69,6 +69,7 @@ Updates = messages.forwardMessages({broadcast=Bool, from_peer=InputPeer, id={int |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v46/methods/messages.getDialogs.md b/old_docs/API_docs_v46/methods/messages.getDialogs.md index 9ed0e632..80edbb2a 100644 --- a/old_docs/API_docs_v46/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v46/methods/messages.getDialogs.md @@ -52,6 +52,7 @@ messages.Dialogs = messages.getDialogs({offset_date=int, offset_id=int, offset_p |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v46/methods/messages.getMessagesViews.md b/old_docs/API_docs_v46/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v46/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v46/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v46/methods/messages.importChatInvite.md b/old_docs/API_docs_v46/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v46/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v46/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v46/methods/messages.sendInlineBotResult.md index 93dba033..b4b41541 100644 --- a/old_docs/API_docs_v46/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v46/methods/messages.sendInlineBotResult.md @@ -51,8 +51,11 @@ Updates = messages.sendInlineBotResult({broadcast=Bool, peer=InputPeer, reply_to | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -60,8 +63,11 @@ Updates = messages.sendInlineBotResult({broadcast=Bool, peer=InputPeer, reply_to |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v46/methods/messages.sendMedia.md b/old_docs/API_docs_v46/methods/messages.sendMedia.md index 3b7c5e5f..a1676e22 100644 --- a/old_docs/API_docs_v46/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v46/methods/messages.sendMedia.md @@ -59,6 +59,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -77,15 +78,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v46/methods/messages.sendMessage.md b/old_docs/API_docs_v46/methods/messages.sendMessage.md index 06170416..b13c9057 100644 --- a/old_docs/API_docs_v46/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v46/methods/messages.sendMessage.md @@ -120,6 +120,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v46/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v46/methods/messages.setInlineBotResults.md index b48347dd..17629aa4 100644 --- a/old_docs/API_docs_v46/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v46/methods/messages.setInlineBotResults.md @@ -64,6 +64,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v46/methods/messages.setTyping.md b/old_docs/API_docs_v46/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v46/methods/messages.setTyping.md +++ b/old_docs/API_docs_v46/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v46/methods/upload.getFile.md b/old_docs/API_docs_v46/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v46/methods/upload.getFile.md +++ b/old_docs/API_docs_v46/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v46/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v46/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v46/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v46/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v46/methods/upload.saveFilePart.md b/old_docs/API_docs_v46/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v46/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v46/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v46/methods/users.getUsers.md b/old_docs/API_docs_v46/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v46/methods/users.getUsers.md +++ b/old_docs/API_docs_v46/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v51/methods/account.changePhone.md b/old_docs/API_docs_v51/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v51/methods/account.changePhone.md +++ b/old_docs/API_docs_v51/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v51/methods/account.checkUsername.md b/old_docs/API_docs_v51/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v51/methods/account.checkUsername.md +++ b/old_docs/API_docs_v51/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v51/methods/account.getAuthorizations.md b/old_docs/API_docs_v51/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v51/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v51/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v51/methods/account.updateNotifySettings.md b/old_docs/API_docs_v51/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v51/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v51/methods/account.updateUsername.md b/old_docs/API_docs_v51/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v51/methods/account.updateUsername.md +++ b/old_docs/API_docs_v51/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v51/methods/auth.cancelCode.md b/old_docs/API_docs_v51/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v51/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v51/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v51/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v51/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v51/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v51/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v51/methods/channels.editAdmin.md b/old_docs/API_docs_v51/methods/channels.editAdmin.md index e3e5a093..3cc45b5e 100644 --- a/old_docs/API_docs_v51/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v51/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Chan |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v51/methods/channels.editPhoto.md b/old_docs/API_docs_v51/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v51/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v51/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v51/methods/channels.getChannels.md b/old_docs/API_docs_v51/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v51/methods/channels.getChannels.md +++ b/old_docs/API_docs_v51/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v51/methods/channels.getMessages.md b/old_docs/API_docs_v51/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v51/methods/channels.getMessages.md +++ b/old_docs/API_docs_v51/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v51/methods/channels.joinChannel.md b/old_docs/API_docs_v51/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v51/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v51/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v51/methods/channels.readHistory.md b/old_docs/API_docs_v51/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v51/methods/channels.readHistory.md +++ b/old_docs/API_docs_v51/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v51/methods/channels.reportSpam.md b/old_docs/API_docs_v51/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v51/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v51/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v51/methods/channels.toggleSignatures.md b/old_docs/API_docs_v51/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v51/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v51/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v51/methods/help.getConfig.md b/old_docs/API_docs_v51/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v51/methods/help.getConfig.md +++ b/old_docs/API_docs_v51/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v51/methods/help.getNearestDc.md b/old_docs/API_docs_v51/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v51/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v51/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v51/methods/messages.createChat.md b/old_docs/API_docs_v51/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v51/methods/messages.createChat.md +++ b/old_docs/API_docs_v51/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v51/methods/messages.deleteHistory.md b/old_docs/API_docs_v51/methods/messages.deleteHistory.md index a6eec4aa..1ccfc759 100644 --- a/old_docs/API_docs_v51/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v51/methods/messages.deleteHistory.md @@ -48,6 +48,7 @@ messages.AffectedHistory = messages.deleteHistory({peer=InputPeer, max_id=int, } | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v51/methods/messages.editChatPhoto.md b/old_docs/API_docs_v51/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v51/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v51/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v51/methods/messages.editMessage.md b/old_docs/API_docs_v51/methods/messages.editMessage.md index a101c622..7927e58c 100644 --- a/old_docs/API_docs_v51/methods/messages.editMessage.md +++ b/old_docs/API_docs_v51/methods/messages.editMessage.md @@ -101,17 +101,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v51/methods/messages.exportChatInvite.md b/old_docs/API_docs_v51/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v51/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v51/methods/messages.forwardMessages.md b/old_docs/API_docs_v51/methods/messages.forwardMessages.md index 327cd13a..0622fc88 100644 --- a/old_docs/API_docs_v51/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v51/methods/messages.forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({broadcast=Bool, silent=Bool, background=Bool |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v51/methods/messages.getDialogs.md b/old_docs/API_docs_v51/methods/messages.getDialogs.md index 9ed0e632..80edbb2a 100644 --- a/old_docs/API_docs_v51/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v51/methods/messages.getDialogs.md @@ -52,6 +52,7 @@ messages.Dialogs = messages.getDialogs({offset_date=int, offset_id=int, offset_p |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v51/methods/messages.getMessageEditData.md b/old_docs/API_docs_v51/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v51/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v51/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v51/methods/messages.getMessagesViews.md b/old_docs/API_docs_v51/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v51/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v51/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v51/methods/messages.importChatInvite.md b/old_docs/API_docs_v51/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v51/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v51/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v51/methods/messages.sendInlineBotResult.md index 7a5299bf..eed50a62 100644 --- a/old_docs/API_docs_v51/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v51/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({broadcast=Bool, silent=Bool, background= | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({broadcast=Bool, silent=Bool, background= |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v51/methods/messages.sendMedia.md b/old_docs/API_docs_v51/methods/messages.sendMedia.md index 3241401a..cc54dcde 100644 --- a/old_docs/API_docs_v51/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v51/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v51/methods/messages.sendMessage.md b/old_docs/API_docs_v51/methods/messages.sendMessage.md index daa31232..182252ce 100644 --- a/old_docs/API_docs_v51/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v51/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v51/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v51/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v51/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v51/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v51/methods/messages.setTyping.md b/old_docs/API_docs_v51/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v51/methods/messages.setTyping.md +++ b/old_docs/API_docs_v51/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v51/methods/upload.getFile.md b/old_docs/API_docs_v51/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v51/methods/upload.getFile.md +++ b/old_docs/API_docs_v51/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v51/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v51/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v51/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v51/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v51/methods/upload.saveFilePart.md b/old_docs/API_docs_v51/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v51/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v51/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v51/methods/users.getUsers.md b/old_docs/API_docs_v51/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v51/methods/users.getUsers.md +++ b/old_docs/API_docs_v51/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v53/methods/account.changePhone.md b/old_docs/API_docs_v53/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v53/methods/account.changePhone.md +++ b/old_docs/API_docs_v53/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v53/methods/account.checkUsername.md b/old_docs/API_docs_v53/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v53/methods/account.checkUsername.md +++ b/old_docs/API_docs_v53/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v53/methods/account.getAuthorizations.md b/old_docs/API_docs_v53/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v53/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v53/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v53/methods/account.updateNotifySettings.md b/old_docs/API_docs_v53/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v53/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v53/methods/account.updateUsername.md b/old_docs/API_docs_v53/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v53/methods/account.updateUsername.md +++ b/old_docs/API_docs_v53/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v53/methods/auth.cancelCode.md b/old_docs/API_docs_v53/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v53/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v53/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v53/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v53/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v53/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v53/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v53/methods/channels.editAdmin.md b/old_docs/API_docs_v53/methods/channels.editAdmin.md index e3e5a093..3cc45b5e 100644 --- a/old_docs/API_docs_v53/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v53/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Chan |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v53/methods/channels.editPhoto.md b/old_docs/API_docs_v53/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v53/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v53/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v53/methods/channels.getChannels.md b/old_docs/API_docs_v53/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v53/methods/channels.getChannels.md +++ b/old_docs/API_docs_v53/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v53/methods/channels.getMessages.md b/old_docs/API_docs_v53/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v53/methods/channels.getMessages.md +++ b/old_docs/API_docs_v53/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v53/methods/channels.joinChannel.md b/old_docs/API_docs_v53/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v53/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v53/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v53/methods/channels.readHistory.md b/old_docs/API_docs_v53/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v53/methods/channels.readHistory.md +++ b/old_docs/API_docs_v53/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v53/methods/channels.reportSpam.md b/old_docs/API_docs_v53/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v53/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v53/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v53/methods/channels.toggleSignatures.md b/old_docs/API_docs_v53/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v53/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v53/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v53/methods/help.getConfig.md b/old_docs/API_docs_v53/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v53/methods/help.getConfig.md +++ b/old_docs/API_docs_v53/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v53/methods/help.getNearestDc.md b/old_docs/API_docs_v53/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v53/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v53/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v53/methods/messages.createChat.md b/old_docs/API_docs_v53/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v53/methods/messages.createChat.md +++ b/old_docs/API_docs_v53/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v53/methods/messages.deleteHistory.md b/old_docs/API_docs_v53/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v53/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v53/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v53/methods/messages.editChatPhoto.md b/old_docs/API_docs_v53/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v53/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v53/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v53/methods/messages.editMessage.md b/old_docs/API_docs_v53/methods/messages.editMessage.md index a101c622..7927e58c 100644 --- a/old_docs/API_docs_v53/methods/messages.editMessage.md +++ b/old_docs/API_docs_v53/methods/messages.editMessage.md @@ -101,17 +101,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v53/methods/messages.exportChatInvite.md b/old_docs/API_docs_v53/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v53/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v53/methods/messages.forwardMessages.md b/old_docs/API_docs_v53/methods/messages.forwardMessages.md index 8381536f..11724d9b 100644 --- a/old_docs/API_docs_v53/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v53/methods/messages.forwardMessages.md @@ -70,6 +70,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, from_peer=Inpu |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v53/methods/messages.getDialogs.md b/old_docs/API_docs_v53/methods/messages.getDialogs.md index 9ed0e632..80edbb2a 100644 --- a/old_docs/API_docs_v53/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v53/methods/messages.getDialogs.md @@ -52,6 +52,7 @@ messages.Dialogs = messages.getDialogs({offset_date=int, offset_id=int, offset_p |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v53/methods/messages.getMessageEditData.md b/old_docs/API_docs_v53/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v53/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v53/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v53/methods/messages.getMessagesViews.md b/old_docs/API_docs_v53/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v53/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v53/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v53/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v53/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v53/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v53/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v53/methods/messages.importChatInvite.md b/old_docs/API_docs_v53/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v53/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v53/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v53/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v53/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v53/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v53/methods/messages.sendMedia.md b/old_docs/API_docs_v53/methods/messages.sendMedia.md index 75ee18d4..7da8d21d 100644 --- a/old_docs/API_docs_v53/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v53/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v53/methods/messages.sendMessage.md b/old_docs/API_docs_v53/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v53/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v53/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v53/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v53/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v53/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v53/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v53/methods/messages.setTyping.md b/old_docs/API_docs_v53/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v53/methods/messages.setTyping.md +++ b/old_docs/API_docs_v53/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v53/methods/upload.getFile.md b/old_docs/API_docs_v53/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v53/methods/upload.getFile.md +++ b/old_docs/API_docs_v53/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v53/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v53/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v53/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v53/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v53/methods/upload.saveFilePart.md b/old_docs/API_docs_v53/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v53/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v53/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v53/methods/users.getUsers.md b/old_docs/API_docs_v53/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v53/methods/users.getUsers.md +++ b/old_docs/API_docs_v53/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v55/methods/account.changePhone.md b/old_docs/API_docs_v55/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v55/methods/account.changePhone.md +++ b/old_docs/API_docs_v55/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v55/methods/account.checkUsername.md b/old_docs/API_docs_v55/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v55/methods/account.checkUsername.md +++ b/old_docs/API_docs_v55/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v55/methods/account.getAuthorizations.md b/old_docs/API_docs_v55/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v55/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v55/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v55/methods/account.updateNotifySettings.md b/old_docs/API_docs_v55/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v55/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v55/methods/account.updateUsername.md b/old_docs/API_docs_v55/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v55/methods/account.updateUsername.md +++ b/old_docs/API_docs_v55/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v55/methods/auth.cancelCode.md b/old_docs/API_docs_v55/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v55/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v55/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v55/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v55/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v55/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v55/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v55/methods/channels.editAdmin.md b/old_docs/API_docs_v55/methods/channels.editAdmin.md index e3e5a093..3cc45b5e 100644 --- a/old_docs/API_docs_v55/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v55/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Chan |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v55/methods/channels.editPhoto.md b/old_docs/API_docs_v55/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v55/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v55/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v55/methods/channels.getChannels.md b/old_docs/API_docs_v55/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v55/methods/channels.getChannels.md +++ b/old_docs/API_docs_v55/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v55/methods/channels.getMessages.md b/old_docs/API_docs_v55/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v55/methods/channels.getMessages.md +++ b/old_docs/API_docs_v55/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v55/methods/channels.joinChannel.md b/old_docs/API_docs_v55/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v55/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v55/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v55/methods/channels.readHistory.md b/old_docs/API_docs_v55/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v55/methods/channels.readHistory.md +++ b/old_docs/API_docs_v55/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v55/methods/channels.reportSpam.md b/old_docs/API_docs_v55/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v55/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v55/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v55/methods/channels.toggleSignatures.md b/old_docs/API_docs_v55/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v55/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v55/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v55/methods/help.getConfig.md b/old_docs/API_docs_v55/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v55/methods/help.getConfig.md +++ b/old_docs/API_docs_v55/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v55/methods/help.getNearestDc.md b/old_docs/API_docs_v55/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v55/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v55/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v55/methods/messages.createChat.md b/old_docs/API_docs_v55/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v55/methods/messages.createChat.md +++ b/old_docs/API_docs_v55/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v55/methods/messages.deleteHistory.md b/old_docs/API_docs_v55/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v55/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v55/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v55/methods/messages.editChatPhoto.md b/old_docs/API_docs_v55/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v55/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v55/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v55/methods/messages.editMessage.md b/old_docs/API_docs_v55/methods/messages.editMessage.md index a101c622..7927e58c 100644 --- a/old_docs/API_docs_v55/methods/messages.editMessage.md +++ b/old_docs/API_docs_v55/methods/messages.editMessage.md @@ -101,17 +101,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v55/methods/messages.exportChatInvite.md b/old_docs/API_docs_v55/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v55/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v55/methods/messages.forwardMessages.md b/old_docs/API_docs_v55/methods/messages.forwardMessages.md index 8381536f..11724d9b 100644 --- a/old_docs/API_docs_v55/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v55/methods/messages.forwardMessages.md @@ -70,6 +70,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, from_peer=Inpu |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v55/methods/messages.getDialogs.md b/old_docs/API_docs_v55/methods/messages.getDialogs.md index 9ed0e632..80edbb2a 100644 --- a/old_docs/API_docs_v55/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v55/methods/messages.getDialogs.md @@ -52,6 +52,7 @@ messages.Dialogs = messages.getDialogs({offset_date=int, offset_id=int, offset_p |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v55/methods/messages.getMessageEditData.md b/old_docs/API_docs_v55/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v55/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v55/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v55/methods/messages.getMessagesViews.md b/old_docs/API_docs_v55/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v55/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v55/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v55/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v55/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v55/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v55/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v55/methods/messages.importChatInvite.md b/old_docs/API_docs_v55/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v55/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v55/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v55/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v55/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v55/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v55/methods/messages.sendMedia.md b/old_docs/API_docs_v55/methods/messages.sendMedia.md index 75ee18d4..7da8d21d 100644 --- a/old_docs/API_docs_v55/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v55/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v55/methods/messages.sendMessage.md b/old_docs/API_docs_v55/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v55/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v55/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v55/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v55/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v55/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v55/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v55/methods/messages.setTyping.md b/old_docs/API_docs_v55/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v55/methods/messages.setTyping.md +++ b/old_docs/API_docs_v55/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v55/methods/upload.getFile.md b/old_docs/API_docs_v55/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v55/methods/upload.getFile.md +++ b/old_docs/API_docs_v55/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v55/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v55/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v55/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v55/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v55/methods/upload.saveFilePart.md b/old_docs/API_docs_v55/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v55/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v55/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v55/methods/users.getUsers.md b/old_docs/API_docs_v55/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v55/methods/users.getUsers.md +++ b/old_docs/API_docs_v55/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v57/methods/account.changePhone.md b/old_docs/API_docs_v57/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v57/methods/account.changePhone.md +++ b/old_docs/API_docs_v57/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v57/methods/account.checkUsername.md b/old_docs/API_docs_v57/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v57/methods/account.checkUsername.md +++ b/old_docs/API_docs_v57/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v57/methods/account.getAuthorizations.md b/old_docs/API_docs_v57/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v57/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v57/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v57/methods/account.updateNotifySettings.md b/old_docs/API_docs_v57/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v57/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v57/methods/account.updateUsername.md b/old_docs/API_docs_v57/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v57/methods/account.updateUsername.md +++ b/old_docs/API_docs_v57/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v57/methods/auth.cancelCode.md b/old_docs/API_docs_v57/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v57/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v57/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v57/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v57/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v57/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v57/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v57/methods/channels.editAdmin.md b/old_docs/API_docs_v57/methods/channels.editAdmin.md index e3e5a093..3cc45b5e 100644 --- a/old_docs/API_docs_v57/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v57/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Chan |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v57/methods/channels.editPhoto.md b/old_docs/API_docs_v57/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v57/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v57/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v57/methods/channels.getChannels.md b/old_docs/API_docs_v57/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v57/methods/channels.getChannels.md +++ b/old_docs/API_docs_v57/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v57/methods/channels.getMessages.md b/old_docs/API_docs_v57/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v57/methods/channels.getMessages.md +++ b/old_docs/API_docs_v57/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v57/methods/channels.joinChannel.md b/old_docs/API_docs_v57/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v57/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v57/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v57/methods/channels.readHistory.md b/old_docs/API_docs_v57/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v57/methods/channels.readHistory.md +++ b/old_docs/API_docs_v57/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v57/methods/channels.reportSpam.md b/old_docs/API_docs_v57/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v57/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v57/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v57/methods/channels.toggleSignatures.md b/old_docs/API_docs_v57/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v57/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v57/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v57/methods/help.getConfig.md b/old_docs/API_docs_v57/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v57/methods/help.getConfig.md +++ b/old_docs/API_docs_v57/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v57/methods/help.getNearestDc.md b/old_docs/API_docs_v57/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v57/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v57/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v57/methods/messages.createChat.md b/old_docs/API_docs_v57/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v57/methods/messages.createChat.md +++ b/old_docs/API_docs_v57/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v57/methods/messages.deleteHistory.md b/old_docs/API_docs_v57/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v57/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v57/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v57/methods/messages.editChatPhoto.md b/old_docs/API_docs_v57/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v57/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v57/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v57/methods/messages.editMessage.md b/old_docs/API_docs_v57/methods/messages.editMessage.md index a101c622..7927e58c 100644 --- a/old_docs/API_docs_v57/methods/messages.editMessage.md +++ b/old_docs/API_docs_v57/methods/messages.editMessage.md @@ -101,17 +101,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v57/methods/messages.exportChatInvite.md b/old_docs/API_docs_v57/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v57/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v57/methods/messages.forwardMessages.md b/old_docs/API_docs_v57/methods/messages.forwardMessages.md index 1d0c1235..d873d729 100644 --- a/old_docs/API_docs_v57/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v57/methods/messages.forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v57/methods/messages.getDialogs.md b/old_docs/API_docs_v57/methods/messages.getDialogs.md index 9ed0e632..80edbb2a 100644 --- a/old_docs/API_docs_v57/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v57/methods/messages.getDialogs.md @@ -52,6 +52,7 @@ messages.Dialogs = messages.getDialogs({offset_date=int, offset_id=int, offset_p |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v57/methods/messages.getMessageEditData.md b/old_docs/API_docs_v57/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v57/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v57/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v57/methods/messages.getMessagesViews.md b/old_docs/API_docs_v57/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v57/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v57/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v57/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v57/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v57/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v57/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v57/methods/messages.importChatInvite.md b/old_docs/API_docs_v57/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v57/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v57/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v57/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v57/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v57/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v57/methods/messages.sendMedia.md b/old_docs/API_docs_v57/methods/messages.sendMedia.md index 75ee18d4..7da8d21d 100644 --- a/old_docs/API_docs_v57/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v57/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v57/methods/messages.sendMessage.md b/old_docs/API_docs_v57/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v57/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v57/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v57/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v57/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v57/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v57/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v57/methods/messages.setTyping.md b/old_docs/API_docs_v57/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v57/methods/messages.setTyping.md +++ b/old_docs/API_docs_v57/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v57/methods/upload.getFile.md b/old_docs/API_docs_v57/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v57/methods/upload.getFile.md +++ b/old_docs/API_docs_v57/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v57/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v57/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v57/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v57/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v57/methods/upload.saveFilePart.md b/old_docs/API_docs_v57/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v57/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v57/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v57/methods/users.getUsers.md b/old_docs/API_docs_v57/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v57/methods/users.getUsers.md +++ b/old_docs/API_docs_v57/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v62/methods/account.changePhone.md b/old_docs/API_docs_v62/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v62/methods/account.changePhone.md +++ b/old_docs/API_docs_v62/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v62/methods/account.checkUsername.md b/old_docs/API_docs_v62/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v62/methods/account.checkUsername.md +++ b/old_docs/API_docs_v62/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v62/methods/account.getAuthorizations.md b/old_docs/API_docs_v62/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v62/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v62/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v62/methods/account.updateNotifySettings.md b/old_docs/API_docs_v62/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v62/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v62/methods/account.updateUsername.md b/old_docs/API_docs_v62/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v62/methods/account.updateUsername.md +++ b/old_docs/API_docs_v62/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v62/methods/auth.cancelCode.md b/old_docs/API_docs_v62/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v62/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v62/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v62/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v62/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v62/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v62/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v62/methods/channels.editAdmin.md b/old_docs/API_docs_v62/methods/channels.editAdmin.md index e3e5a093..3cc45b5e 100644 --- a/old_docs/API_docs_v62/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v62/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Chan |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v62/methods/channels.editPhoto.md b/old_docs/API_docs_v62/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v62/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v62/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v62/methods/channels.getChannels.md b/old_docs/API_docs_v62/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v62/methods/channels.getChannels.md +++ b/old_docs/API_docs_v62/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v62/methods/channels.getMessages.md b/old_docs/API_docs_v62/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v62/methods/channels.getMessages.md +++ b/old_docs/API_docs_v62/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v62/methods/channels.joinChannel.md b/old_docs/API_docs_v62/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v62/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v62/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v62/methods/channels.readHistory.md b/old_docs/API_docs_v62/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v62/methods/channels.readHistory.md +++ b/old_docs/API_docs_v62/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v62/methods/channels.reportSpam.md b/old_docs/API_docs_v62/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v62/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v62/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v62/methods/channels.toggleSignatures.md b/old_docs/API_docs_v62/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v62/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v62/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v62/methods/help.getConfig.md b/old_docs/API_docs_v62/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v62/methods/help.getConfig.md +++ b/old_docs/API_docs_v62/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v62/methods/help.getNearestDc.md b/old_docs/API_docs_v62/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v62/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v62/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v62/methods/messages.createChat.md b/old_docs/API_docs_v62/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v62/methods/messages.createChat.md +++ b/old_docs/API_docs_v62/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v62/methods/messages.deleteHistory.md b/old_docs/API_docs_v62/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v62/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v62/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v62/methods/messages.editChatPhoto.md b/old_docs/API_docs_v62/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v62/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v62/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v62/methods/messages.editMessage.md b/old_docs/API_docs_v62/methods/messages.editMessage.md index a101c622..7927e58c 100644 --- a/old_docs/API_docs_v62/methods/messages.editMessage.md +++ b/old_docs/API_docs_v62/methods/messages.editMessage.md @@ -101,17 +101,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v62/methods/messages.exportChatInvite.md b/old_docs/API_docs_v62/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v62/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v62/methods/messages.forwardMessages.md b/old_docs/API_docs_v62/methods/messages.forwardMessages.md index 1d0c1235..d873d729 100644 --- a/old_docs/API_docs_v62/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v62/methods/messages.forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v62/methods/messages.getDialogs.md b/old_docs/API_docs_v62/methods/messages.getDialogs.md index 31502912..a7cf8d98 100644 --- a/old_docs/API_docs_v62/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v62/methods/messages.getDialogs.md @@ -53,6 +53,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v62/methods/messages.getMessageEditData.md b/old_docs/API_docs_v62/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v62/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v62/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v62/methods/messages.getMessagesViews.md b/old_docs/API_docs_v62/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v62/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v62/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v62/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v62/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v62/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v62/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v62/methods/messages.importChatInvite.md b/old_docs/API_docs_v62/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v62/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v62/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v62/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v62/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v62/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v62/methods/messages.sendMedia.md b/old_docs/API_docs_v62/methods/messages.sendMedia.md index 75ee18d4..7da8d21d 100644 --- a/old_docs/API_docs_v62/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v62/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v62/methods/messages.sendMessage.md b/old_docs/API_docs_v62/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v62/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v62/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v62/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v62/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v62/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v62/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v62/methods/messages.setTyping.md b/old_docs/API_docs_v62/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v62/methods/messages.setTyping.md +++ b/old_docs/API_docs_v62/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v62/methods/upload.getFile.md b/old_docs/API_docs_v62/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v62/methods/upload.getFile.md +++ b/old_docs/API_docs_v62/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v62/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v62/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v62/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v62/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v62/methods/upload.saveFilePart.md b/old_docs/API_docs_v62/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v62/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v62/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v62/methods/users.getUsers.md b/old_docs/API_docs_v62/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v62/methods/users.getUsers.md +++ b/old_docs/API_docs_v62/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v65/methods/account.changePhone.md b/old_docs/API_docs_v65/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v65/methods/account.changePhone.md +++ b/old_docs/API_docs_v65/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v65/methods/account.checkUsername.md b/old_docs/API_docs_v65/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v65/methods/account.checkUsername.md +++ b/old_docs/API_docs_v65/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v65/methods/account.getAuthorizations.md b/old_docs/API_docs_v65/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v65/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v65/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v65/methods/account.updateNotifySettings.md b/old_docs/API_docs_v65/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v65/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v65/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v65/methods/account.updateUsername.md b/old_docs/API_docs_v65/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v65/methods/account.updateUsername.md +++ b/old_docs/API_docs_v65/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v65/methods/auth.cancelCode.md b/old_docs/API_docs_v65/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v65/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v65/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v65/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v65/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v65/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v65/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v65/methods/channels.editAdmin.md b/old_docs/API_docs_v65/methods/channels.editAdmin.md index e3e5a093..3cc45b5e 100644 --- a/old_docs/API_docs_v65/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v65/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Chan |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v65/methods/channels.editPhoto.md b/old_docs/API_docs_v65/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v65/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v65/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v65/methods/channels.getChannels.md b/old_docs/API_docs_v65/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v65/methods/channels.getChannels.md +++ b/old_docs/API_docs_v65/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v65/methods/channels.getMessages.md b/old_docs/API_docs_v65/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v65/methods/channels.getMessages.md +++ b/old_docs/API_docs_v65/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v65/methods/channels.joinChannel.md b/old_docs/API_docs_v65/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v65/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v65/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v65/methods/channels.readHistory.md b/old_docs/API_docs_v65/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v65/methods/channels.readHistory.md +++ b/old_docs/API_docs_v65/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v65/methods/channels.reportSpam.md b/old_docs/API_docs_v65/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v65/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v65/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v65/methods/channels.toggleSignatures.md b/old_docs/API_docs_v65/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v65/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v65/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v65/methods/help.getConfig.md b/old_docs/API_docs_v65/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v65/methods/help.getConfig.md +++ b/old_docs/API_docs_v65/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v65/methods/help.getNearestDc.md b/old_docs/API_docs_v65/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v65/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v65/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v65/methods/messages.createChat.md b/old_docs/API_docs_v65/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v65/methods/messages.createChat.md +++ b/old_docs/API_docs_v65/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v65/methods/messages.deleteHistory.md b/old_docs/API_docs_v65/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v65/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v65/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v65/methods/messages.editChatPhoto.md b/old_docs/API_docs_v65/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v65/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v65/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v65/methods/messages.editMessage.md b/old_docs/API_docs_v65/methods/messages.editMessage.md index a101c622..7927e58c 100644 --- a/old_docs/API_docs_v65/methods/messages.editMessage.md +++ b/old_docs/API_docs_v65/methods/messages.editMessage.md @@ -101,17 +101,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v65/methods/messages.exportChatInvite.md b/old_docs/API_docs_v65/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v65/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v65/methods/messages.forwardMessages.md b/old_docs/API_docs_v65/methods/messages.forwardMessages.md index 1d0c1235..d873d729 100644 --- a/old_docs/API_docs_v65/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v65/methods/messages.forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v65/methods/messages.getDialogs.md b/old_docs/API_docs_v65/methods/messages.getDialogs.md index 31502912..a7cf8d98 100644 --- a/old_docs/API_docs_v65/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v65/methods/messages.getDialogs.md @@ -53,6 +53,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v65/methods/messages.getMessageEditData.md b/old_docs/API_docs_v65/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v65/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v65/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v65/methods/messages.getMessagesViews.md b/old_docs/API_docs_v65/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v65/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v65/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v65/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v65/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v65/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v65/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v65/methods/messages.importChatInvite.md b/old_docs/API_docs_v65/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v65/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v65/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v65/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v65/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v65/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v65/methods/messages.sendMedia.md b/old_docs/API_docs_v65/methods/messages.sendMedia.md index 75ee18d4..7da8d21d 100644 --- a/old_docs/API_docs_v65/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v65/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v65/methods/messages.sendMessage.md b/old_docs/API_docs_v65/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v65/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v65/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v65/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v65/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v65/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v65/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v65/methods/messages.setTyping.md b/old_docs/API_docs_v65/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v65/methods/messages.setTyping.md +++ b/old_docs/API_docs_v65/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v65/methods/upload.getFile.md b/old_docs/API_docs_v65/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v65/methods/upload.getFile.md +++ b/old_docs/API_docs_v65/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v65/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v65/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v65/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v65/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v65/methods/upload.saveFilePart.md b/old_docs/API_docs_v65/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v65/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v65/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v65/methods/users.getUsers.md b/old_docs/API_docs_v65/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v65/methods/users.getUsers.md +++ b/old_docs/API_docs_v65/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v66/methods/account.changePhone.md b/old_docs/API_docs_v66/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v66/methods/account.changePhone.md +++ b/old_docs/API_docs_v66/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v66/methods/account.checkUsername.md b/old_docs/API_docs_v66/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v66/methods/account.checkUsername.md +++ b/old_docs/API_docs_v66/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v66/methods/account.getAuthorizations.md b/old_docs/API_docs_v66/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v66/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v66/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v66/methods/account.updateNotifySettings.md b/old_docs/API_docs_v66/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v66/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v66/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v66/methods/account.updateUsername.md b/old_docs/API_docs_v66/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v66/methods/account.updateUsername.md +++ b/old_docs/API_docs_v66/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v66/methods/auth.cancelCode.md b/old_docs/API_docs_v66/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v66/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v66/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v66/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v66/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v66/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v66/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v66/methods/channels.editAdmin.md b/old_docs/API_docs_v66/methods/channels.editAdmin.md index e3e5a093..3cc45b5e 100644 --- a/old_docs/API_docs_v66/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v66/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, role=Chan |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v66/methods/channels.editPhoto.md b/old_docs/API_docs_v66/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v66/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v66/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v66/methods/channels.getChannels.md b/old_docs/API_docs_v66/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v66/methods/channels.getChannels.md +++ b/old_docs/API_docs_v66/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v66/methods/channels.getMessages.md b/old_docs/API_docs_v66/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v66/methods/channels.getMessages.md +++ b/old_docs/API_docs_v66/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v66/methods/channels.joinChannel.md b/old_docs/API_docs_v66/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v66/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v66/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v66/methods/channels.readHistory.md b/old_docs/API_docs_v66/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v66/methods/channels.readHistory.md +++ b/old_docs/API_docs_v66/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v66/methods/channels.reportSpam.md b/old_docs/API_docs_v66/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v66/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v66/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v66/methods/channels.toggleSignatures.md b/old_docs/API_docs_v66/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v66/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v66/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v66/methods/help.getConfig.md b/old_docs/API_docs_v66/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v66/methods/help.getConfig.md +++ b/old_docs/API_docs_v66/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v66/methods/help.getNearestDc.md b/old_docs/API_docs_v66/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v66/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v66/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v66/methods/messages.createChat.md b/old_docs/API_docs_v66/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v66/methods/messages.createChat.md +++ b/old_docs/API_docs_v66/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v66/methods/messages.deleteHistory.md b/old_docs/API_docs_v66/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v66/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v66/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v66/methods/messages.editChatPhoto.md b/old_docs/API_docs_v66/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v66/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v66/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v66/methods/messages.editMessage.md b/old_docs/API_docs_v66/methods/messages.editMessage.md index a101c622..7927e58c 100644 --- a/old_docs/API_docs_v66/methods/messages.editMessage.md +++ b/old_docs/API_docs_v66/methods/messages.editMessage.md @@ -101,17 +101,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v66/methods/messages.exportChatInvite.md b/old_docs/API_docs_v66/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v66/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v66/methods/messages.forwardMessages.md b/old_docs/API_docs_v66/methods/messages.forwardMessages.md index 1d0c1235..d873d729 100644 --- a/old_docs/API_docs_v66/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v66/methods/messages.forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v66/methods/messages.getDialogs.md b/old_docs/API_docs_v66/methods/messages.getDialogs.md index 31502912..a7cf8d98 100644 --- a/old_docs/API_docs_v66/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v66/methods/messages.getDialogs.md @@ -53,6 +53,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v66/methods/messages.getMessageEditData.md b/old_docs/API_docs_v66/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v66/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v66/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v66/methods/messages.getMessagesViews.md b/old_docs/API_docs_v66/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v66/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v66/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v66/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v66/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v66/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v66/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v66/methods/messages.importChatInvite.md b/old_docs/API_docs_v66/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v66/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v66/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v66/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v66/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v66/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v66/methods/messages.sendMedia.md b/old_docs/API_docs_v66/methods/messages.sendMedia.md index 75ee18d4..7da8d21d 100644 --- a/old_docs/API_docs_v66/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v66/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v66/methods/messages.sendMessage.md b/old_docs/API_docs_v66/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v66/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v66/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v66/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v66/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v66/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v66/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v66/methods/messages.setTyping.md b/old_docs/API_docs_v66/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v66/methods/messages.setTyping.md +++ b/old_docs/API_docs_v66/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v66/methods/upload.getFile.md b/old_docs/API_docs_v66/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v66/methods/upload.getFile.md +++ b/old_docs/API_docs_v66/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v66/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v66/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v66/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v66/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v66/methods/upload.saveFilePart.md b/old_docs/API_docs_v66/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v66/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v66/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v66/methods/users.getUsers.md b/old_docs/API_docs_v66/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v66/methods/users.getUsers.md +++ b/old_docs/API_docs_v66/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v68/methods/account.changePhone.md b/old_docs/API_docs_v68/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v68/methods/account.changePhone.md +++ b/old_docs/API_docs_v68/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v68/methods/account.checkUsername.md b/old_docs/API_docs_v68/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v68/methods/account.checkUsername.md +++ b/old_docs/API_docs_v68/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v68/methods/account.getAuthorizations.md b/old_docs/API_docs_v68/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v68/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v68/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v68/methods/account.updateNotifySettings.md b/old_docs/API_docs_v68/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v68/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v68/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v68/methods/account.updateUsername.md b/old_docs/API_docs_v68/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v68/methods/account.updateUsername.md +++ b/old_docs/API_docs_v68/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v68/methods/auth.cancelCode.md b/old_docs/API_docs_v68/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v68/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v68/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v68/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v68/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v68/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v68/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v68/methods/channels.editAdmin.md b/old_docs/API_docs_v68/methods/channels.editAdmin.md index d2c188ea..5a47d7f2 100644 --- a/old_docs/API_docs_v68/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v68/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v68/methods/channels.editPhoto.md b/old_docs/API_docs_v68/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v68/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v68/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v68/methods/channels.getChannels.md b/old_docs/API_docs_v68/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v68/methods/channels.getChannels.md +++ b/old_docs/API_docs_v68/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v68/methods/channels.getMessages.md b/old_docs/API_docs_v68/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v68/methods/channels.getMessages.md +++ b/old_docs/API_docs_v68/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v68/methods/channels.joinChannel.md b/old_docs/API_docs_v68/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v68/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v68/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v68/methods/channels.readHistory.md b/old_docs/API_docs_v68/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v68/methods/channels.readHistory.md +++ b/old_docs/API_docs_v68/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v68/methods/channels.reportSpam.md b/old_docs/API_docs_v68/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v68/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v68/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v68/methods/channels.toggleSignatures.md b/old_docs/API_docs_v68/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v68/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v68/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v68/methods/help.getConfig.md b/old_docs/API_docs_v68/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v68/methods/help.getConfig.md +++ b/old_docs/API_docs_v68/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v68/methods/help.getNearestDc.md b/old_docs/API_docs_v68/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v68/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v68/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v68/methods/messages.createChat.md b/old_docs/API_docs_v68/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v68/methods/messages.createChat.md +++ b/old_docs/API_docs_v68/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v68/methods/messages.deleteHistory.md b/old_docs/API_docs_v68/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v68/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v68/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v68/methods/messages.editChatPhoto.md b/old_docs/API_docs_v68/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v68/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v68/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v68/methods/messages.editMessage.md b/old_docs/API_docs_v68/methods/messages.editMessage.md index a101c622..7927e58c 100644 --- a/old_docs/API_docs_v68/methods/messages.editMessage.md +++ b/old_docs/API_docs_v68/methods/messages.editMessage.md @@ -101,17 +101,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v68/methods/messages.exportChatInvite.md b/old_docs/API_docs_v68/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v68/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v68/methods/messages.forwardMessages.md b/old_docs/API_docs_v68/methods/messages.forwardMessages.md index 1d0c1235..d873d729 100644 --- a/old_docs/API_docs_v68/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v68/methods/messages.forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v68/methods/messages.getDialogs.md b/old_docs/API_docs_v68/methods/messages.getDialogs.md index 31502912..a7cf8d98 100644 --- a/old_docs/API_docs_v68/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v68/methods/messages.getDialogs.md @@ -53,6 +53,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v68/methods/messages.getMessageEditData.md b/old_docs/API_docs_v68/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v68/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v68/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v68/methods/messages.getMessagesViews.md b/old_docs/API_docs_v68/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v68/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v68/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v68/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v68/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v68/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v68/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v68/methods/messages.importChatInvite.md b/old_docs/API_docs_v68/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v68/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v68/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v68/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v68/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v68/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v68/methods/messages.sendMedia.md b/old_docs/API_docs_v68/methods/messages.sendMedia.md index 75ee18d4..7da8d21d 100644 --- a/old_docs/API_docs_v68/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v68/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v68/methods/messages.sendMessage.md b/old_docs/API_docs_v68/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v68/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v68/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v68/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v68/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v68/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v68/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v68/methods/messages.setTyping.md b/old_docs/API_docs_v68/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v68/methods/messages.setTyping.md +++ b/old_docs/API_docs_v68/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v68/methods/messages.uploadMedia.md b/old_docs/API_docs_v68/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v68/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v68/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v68/methods/upload.getFile.md b/old_docs/API_docs_v68/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v68/methods/upload.getFile.md +++ b/old_docs/API_docs_v68/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v68/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v68/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v68/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v68/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v68/methods/upload.saveFilePart.md b/old_docs/API_docs_v68/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v68/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v68/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v68/methods/users.getUsers.md b/old_docs/API_docs_v68/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v68/methods/users.getUsers.md +++ b/old_docs/API_docs_v68/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v70/methods/account.changePhone.md b/old_docs/API_docs_v70/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v70/methods/account.changePhone.md +++ b/old_docs/API_docs_v70/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v70/methods/account.checkUsername.md b/old_docs/API_docs_v70/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v70/methods/account.checkUsername.md +++ b/old_docs/API_docs_v70/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v70/methods/account.getAuthorizations.md b/old_docs/API_docs_v70/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v70/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v70/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v70/methods/account.updateNotifySettings.md b/old_docs/API_docs_v70/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v70/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v70/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v70/methods/account.updateUsername.md b/old_docs/API_docs_v70/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v70/methods/account.updateUsername.md +++ b/old_docs/API_docs_v70/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v70/methods/auth.cancelCode.md b/old_docs/API_docs_v70/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v70/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v70/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v70/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v70/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v70/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v70/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v70/methods/channels.editAdmin.md b/old_docs/API_docs_v70/methods/channels.editAdmin.md index d2c188ea..5a47d7f2 100644 --- a/old_docs/API_docs_v70/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v70/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v70/methods/channels.editPhoto.md b/old_docs/API_docs_v70/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v70/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v70/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v70/methods/channels.getChannels.md b/old_docs/API_docs_v70/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v70/methods/channels.getChannels.md +++ b/old_docs/API_docs_v70/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v70/methods/channels.getMessages.md b/old_docs/API_docs_v70/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v70/methods/channels.getMessages.md +++ b/old_docs/API_docs_v70/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v70/methods/channels.joinChannel.md b/old_docs/API_docs_v70/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v70/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v70/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v70/methods/channels.readHistory.md b/old_docs/API_docs_v70/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v70/methods/channels.readHistory.md +++ b/old_docs/API_docs_v70/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v70/methods/channels.reportSpam.md b/old_docs/API_docs_v70/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v70/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v70/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v70/methods/channels.toggleSignatures.md b/old_docs/API_docs_v70/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v70/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v70/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v70/methods/help.getConfig.md b/old_docs/API_docs_v70/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v70/methods/help.getConfig.md +++ b/old_docs/API_docs_v70/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v70/methods/help.getNearestDc.md b/old_docs/API_docs_v70/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v70/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v70/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v70/methods/messages.createChat.md b/old_docs/API_docs_v70/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v70/methods/messages.createChat.md +++ b/old_docs/API_docs_v70/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v70/methods/messages.deleteHistory.md b/old_docs/API_docs_v70/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v70/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v70/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v70/methods/messages.editChatPhoto.md b/old_docs/API_docs_v70/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v70/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v70/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v70/methods/messages.editMessage.md b/old_docs/API_docs_v70/methods/messages.editMessage.md index a101c622..7927e58c 100644 --- a/old_docs/API_docs_v70/methods/messages.editMessage.md +++ b/old_docs/API_docs_v70/methods/messages.editMessage.md @@ -101,17 +101,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v70/methods/messages.exportChatInvite.md b/old_docs/API_docs_v70/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v70/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v70/methods/messages.forwardMessages.md b/old_docs/API_docs_v70/methods/messages.forwardMessages.md index 1d0c1235..d873d729 100644 --- a/old_docs/API_docs_v70/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v70/methods/messages.forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v70/methods/messages.getDialogs.md b/old_docs/API_docs_v70/methods/messages.getDialogs.md index 31502912..a7cf8d98 100644 --- a/old_docs/API_docs_v70/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v70/methods/messages.getDialogs.md @@ -53,6 +53,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v70/methods/messages.getMessageEditData.md b/old_docs/API_docs_v70/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v70/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v70/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v70/methods/messages.getMessagesViews.md b/old_docs/API_docs_v70/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v70/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v70/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v70/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v70/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v70/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v70/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v70/methods/messages.importChatInvite.md b/old_docs/API_docs_v70/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v70/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v70/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v70/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v70/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v70/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v70/methods/messages.sendMedia.md b/old_docs/API_docs_v70/methods/messages.sendMedia.md index 75ee18d4..7da8d21d 100644 --- a/old_docs/API_docs_v70/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v70/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v70/methods/messages.sendMessage.md b/old_docs/API_docs_v70/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v70/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v70/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v70/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v70/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v70/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v70/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v70/methods/messages.setTyping.md b/old_docs/API_docs_v70/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v70/methods/messages.setTyping.md +++ b/old_docs/API_docs_v70/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v70/methods/messages.uploadMedia.md b/old_docs/API_docs_v70/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v70/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v70/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v70/methods/upload.getFile.md b/old_docs/API_docs_v70/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v70/methods/upload.getFile.md +++ b/old_docs/API_docs_v70/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v70/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v70/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v70/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v70/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v70/methods/upload.saveFilePart.md b/old_docs/API_docs_v70/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v70/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v70/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v70/methods/users.getUsers.md b/old_docs/API_docs_v70/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v70/methods/users.getUsers.md +++ b/old_docs/API_docs_v70/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v71/methods/account.changePhone.md b/old_docs/API_docs_v71/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v71/methods/account.changePhone.md +++ b/old_docs/API_docs_v71/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v71/methods/account.checkUsername.md b/old_docs/API_docs_v71/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v71/methods/account.checkUsername.md +++ b/old_docs/API_docs_v71/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v71/methods/account.getAuthorizations.md b/old_docs/API_docs_v71/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v71/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v71/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v71/methods/account.updateNotifySettings.md b/old_docs/API_docs_v71/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v71/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v71/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v71/methods/account.updateUsername.md b/old_docs/API_docs_v71/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v71/methods/account.updateUsername.md +++ b/old_docs/API_docs_v71/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v71/methods/auth.cancelCode.md b/old_docs/API_docs_v71/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v71/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v71/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v71/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v71/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v71/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v71/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v71/methods/channels.editAdmin.md b/old_docs/API_docs_v71/methods/channels.editAdmin.md index d2c188ea..5a47d7f2 100644 --- a/old_docs/API_docs_v71/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v71/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v71/methods/channels.editPhoto.md b/old_docs/API_docs_v71/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v71/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v71/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v71/methods/channels.getChannels.md b/old_docs/API_docs_v71/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v71/methods/channels.getChannels.md +++ b/old_docs/API_docs_v71/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v71/methods/channels.getMessages.md b/old_docs/API_docs_v71/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v71/methods/channels.getMessages.md +++ b/old_docs/API_docs_v71/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v71/methods/channels.joinChannel.md b/old_docs/API_docs_v71/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v71/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v71/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v71/methods/channels.readHistory.md b/old_docs/API_docs_v71/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v71/methods/channels.readHistory.md +++ b/old_docs/API_docs_v71/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v71/methods/channels.reportSpam.md b/old_docs/API_docs_v71/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v71/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v71/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v71/methods/channels.toggleSignatures.md b/old_docs/API_docs_v71/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v71/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v71/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v71/methods/help.getConfig.md b/old_docs/API_docs_v71/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v71/methods/help.getConfig.md +++ b/old_docs/API_docs_v71/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v71/methods/help.getNearestDc.md b/old_docs/API_docs_v71/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v71/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v71/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v71/methods/messages.createChat.md b/old_docs/API_docs_v71/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v71/methods/messages.createChat.md +++ b/old_docs/API_docs_v71/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v71/methods/messages.deleteHistory.md b/old_docs/API_docs_v71/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v71/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v71/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v71/methods/messages.editChatPhoto.md b/old_docs/API_docs_v71/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v71/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v71/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v71/methods/messages.editMessage.md b/old_docs/API_docs_v71/methods/messages.editMessage.md index a101c622..7927e58c 100644 --- a/old_docs/API_docs_v71/methods/messages.editMessage.md +++ b/old_docs/API_docs_v71/methods/messages.editMessage.md @@ -101,17 +101,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v71/methods/messages.exportChatInvite.md b/old_docs/API_docs_v71/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v71/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v71/methods/messages.forwardMessages.md b/old_docs/API_docs_v71/methods/messages.forwardMessages.md index 1d0c1235..d873d729 100644 --- a/old_docs/API_docs_v71/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v71/methods/messages.forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v71/methods/messages.getDialogs.md b/old_docs/API_docs_v71/methods/messages.getDialogs.md index 31502912..a7cf8d98 100644 --- a/old_docs/API_docs_v71/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v71/methods/messages.getDialogs.md @@ -53,6 +53,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v71/methods/messages.getMessageEditData.md b/old_docs/API_docs_v71/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v71/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v71/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v71/methods/messages.getMessagesViews.md b/old_docs/API_docs_v71/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v71/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v71/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v71/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v71/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v71/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v71/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v71/methods/messages.importChatInvite.md b/old_docs/API_docs_v71/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v71/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v71/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v71/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v71/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v71/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v71/methods/messages.sendMedia.md b/old_docs/API_docs_v71/methods/messages.sendMedia.md index 75ee18d4..7da8d21d 100644 --- a/old_docs/API_docs_v71/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v71/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v71/methods/messages.sendMessage.md b/old_docs/API_docs_v71/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v71/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v71/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v71/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v71/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v71/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v71/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v71/methods/messages.setTyping.md b/old_docs/API_docs_v71/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v71/methods/messages.setTyping.md +++ b/old_docs/API_docs_v71/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v71/methods/messages.uploadMedia.md b/old_docs/API_docs_v71/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v71/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v71/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v71/methods/upload.getFile.md b/old_docs/API_docs_v71/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v71/methods/upload.getFile.md +++ b/old_docs/API_docs_v71/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v71/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v71/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v71/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v71/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v71/methods/upload.saveFilePart.md b/old_docs/API_docs_v71/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v71/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v71/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v71/methods/users.getUsers.md b/old_docs/API_docs_v71/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v71/methods/users.getUsers.md +++ b/old_docs/API_docs_v71/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v72/methods/account.changePhone.md b/old_docs/API_docs_v72/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v72/methods/account.changePhone.md +++ b/old_docs/API_docs_v72/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v72/methods/account.checkUsername.md b/old_docs/API_docs_v72/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v72/methods/account.checkUsername.md +++ b/old_docs/API_docs_v72/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v72/methods/account.getAuthorizations.md b/old_docs/API_docs_v72/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v72/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v72/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v72/methods/account.updateNotifySettings.md b/old_docs/API_docs_v72/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v72/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v72/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v72/methods/account.updateUsername.md b/old_docs/API_docs_v72/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v72/methods/account.updateUsername.md +++ b/old_docs/API_docs_v72/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v72/methods/auth.cancelCode.md b/old_docs/API_docs_v72/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v72/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v72/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v72/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v72/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v72/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v72/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v72/methods/channels.editAdmin.md b/old_docs/API_docs_v72/methods/channels.editAdmin.md index d2c188ea..5a47d7f2 100644 --- a/old_docs/API_docs_v72/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v72/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v72/methods/channels.editPhoto.md b/old_docs/API_docs_v72/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v72/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v72/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v72/methods/channels.getChannels.md b/old_docs/API_docs_v72/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v72/methods/channels.getChannels.md +++ b/old_docs/API_docs_v72/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v72/methods/channels.getMessages.md b/old_docs/API_docs_v72/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v72/methods/channels.getMessages.md +++ b/old_docs/API_docs_v72/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v72/methods/channels.joinChannel.md b/old_docs/API_docs_v72/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v72/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v72/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v72/methods/channels.readHistory.md b/old_docs/API_docs_v72/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v72/methods/channels.readHistory.md +++ b/old_docs/API_docs_v72/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v72/methods/channels.reportSpam.md b/old_docs/API_docs_v72/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v72/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v72/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v72/methods/channels.toggleSignatures.md b/old_docs/API_docs_v72/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v72/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v72/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v72/methods/help.getConfig.md b/old_docs/API_docs_v72/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v72/methods/help.getConfig.md +++ b/old_docs/API_docs_v72/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v72/methods/help.getNearestDc.md b/old_docs/API_docs_v72/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v72/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v72/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v72/methods/messages.createChat.md b/old_docs/API_docs_v72/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v72/methods/messages.createChat.md +++ b/old_docs/API_docs_v72/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v72/methods/messages.deleteHistory.md b/old_docs/API_docs_v72/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v72/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v72/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v72/methods/messages.editChatPhoto.md b/old_docs/API_docs_v72/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v72/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v72/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v72/methods/messages.editMessage.md b/old_docs/API_docs_v72/methods/messages.editMessage.md index ef9ebcf3..3538c572 100644 --- a/old_docs/API_docs_v72/methods/messages.editMessage.md +++ b/old_docs/API_docs_v72/methods/messages.editMessage.md @@ -103,17 +103,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v72/methods/messages.exportChatInvite.md b/old_docs/API_docs_v72/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v72/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v72/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v72/methods/messages.forwardMessages.md b/old_docs/API_docs_v72/methods/messages.forwardMessages.md index 1d0c1235..d873d729 100644 --- a/old_docs/API_docs_v72/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v72/methods/messages.forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v72/methods/messages.getDialogs.md b/old_docs/API_docs_v72/methods/messages.getDialogs.md index 31502912..a7cf8d98 100644 --- a/old_docs/API_docs_v72/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v72/methods/messages.getDialogs.md @@ -53,6 +53,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v72/methods/messages.getMessageEditData.md b/old_docs/API_docs_v72/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v72/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v72/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v72/methods/messages.getMessagesViews.md b/old_docs/API_docs_v72/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v72/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v72/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v72/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v72/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v72/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v72/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v72/methods/messages.importChatInvite.md b/old_docs/API_docs_v72/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v72/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v72/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v72/methods/messages.readMentions.md b/old_docs/API_docs_v72/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v72/methods/messages.readMentions.md +++ b/old_docs/API_docs_v72/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v72/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v72/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v72/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v72/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v72/methods/messages.sendMedia.md b/old_docs/API_docs_v72/methods/messages.sendMedia.md index 75ee18d4..7da8d21d 100644 --- a/old_docs/API_docs_v72/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v72/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v72/methods/messages.sendMessage.md b/old_docs/API_docs_v72/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v72/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v72/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v72/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v72/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v72/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v72/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v72/methods/messages.setTyping.md b/old_docs/API_docs_v72/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v72/methods/messages.setTyping.md +++ b/old_docs/API_docs_v72/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v72/methods/messages.uploadMedia.md b/old_docs/API_docs_v72/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v72/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v72/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v72/methods/upload.getFile.md b/old_docs/API_docs_v72/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v72/methods/upload.getFile.md +++ b/old_docs/API_docs_v72/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v72/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v72/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v72/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v72/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v72/methods/upload.saveFilePart.md b/old_docs/API_docs_v72/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v72/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v72/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v72/methods/users.getUsers.md b/old_docs/API_docs_v72/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v72/methods/users.getUsers.md +++ b/old_docs/API_docs_v72/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v73/methods/account.changePhone.md b/old_docs/API_docs_v73/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v73/methods/account.changePhone.md +++ b/old_docs/API_docs_v73/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v73/methods/account.checkUsername.md b/old_docs/API_docs_v73/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v73/methods/account.checkUsername.md +++ b/old_docs/API_docs_v73/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v73/methods/account.getAuthorizations.md b/old_docs/API_docs_v73/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v73/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v73/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v73/methods/account.updateNotifySettings.md b/old_docs/API_docs_v73/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v73/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v73/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v73/methods/account.updateUsername.md b/old_docs/API_docs_v73/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v73/methods/account.updateUsername.md +++ b/old_docs/API_docs_v73/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v73/methods/auth.cancelCode.md b/old_docs/API_docs_v73/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v73/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v73/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v73/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v73/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v73/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v73/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v73/methods/channels.editAdmin.md b/old_docs/API_docs_v73/methods/channels.editAdmin.md index d2c188ea..5a47d7f2 100644 --- a/old_docs/API_docs_v73/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v73/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v73/methods/channels.editPhoto.md b/old_docs/API_docs_v73/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v73/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v73/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v73/methods/channels.getChannels.md b/old_docs/API_docs_v73/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v73/methods/channels.getChannels.md +++ b/old_docs/API_docs_v73/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v73/methods/channels.getMessages.md b/old_docs/API_docs_v73/methods/channels.getMessages.md index 596896f5..0b6438d8 100644 --- a/old_docs/API_docs_v73/methods/channels.getMessages.md +++ b/old_docs/API_docs_v73/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={int}, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v73/methods/channels.joinChannel.md b/old_docs/API_docs_v73/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v73/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v73/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v73/methods/channels.readHistory.md b/old_docs/API_docs_v73/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v73/methods/channels.readHistory.md +++ b/old_docs/API_docs_v73/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v73/methods/channels.reportSpam.md b/old_docs/API_docs_v73/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v73/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v73/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v73/methods/channels.toggleSignatures.md b/old_docs/API_docs_v73/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v73/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v73/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v73/methods/help.getConfig.md b/old_docs/API_docs_v73/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v73/methods/help.getConfig.md +++ b/old_docs/API_docs_v73/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v73/methods/help.getNearestDc.md b/old_docs/API_docs_v73/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v73/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v73/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v73/methods/messages.createChat.md b/old_docs/API_docs_v73/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v73/methods/messages.createChat.md +++ b/old_docs/API_docs_v73/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v73/methods/messages.deleteHistory.md b/old_docs/API_docs_v73/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v73/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v73/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v73/methods/messages.editChatPhoto.md b/old_docs/API_docs_v73/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v73/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v73/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v73/methods/messages.editMessage.md b/old_docs/API_docs_v73/methods/messages.editMessage.md index ef9ebcf3..3538c572 100644 --- a/old_docs/API_docs_v73/methods/messages.editMessage.md +++ b/old_docs/API_docs_v73/methods/messages.editMessage.md @@ -103,17 +103,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v73/methods/messages.exportChatInvite.md b/old_docs/API_docs_v73/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v73/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v73/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v73/methods/messages.forwardMessages.md b/old_docs/API_docs_v73/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v73/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v73/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v73/methods/messages.getDialogs.md b/old_docs/API_docs_v73/methods/messages.getDialogs.md index 31502912..a7cf8d98 100644 --- a/old_docs/API_docs_v73/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v73/methods/messages.getDialogs.md @@ -53,6 +53,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v73/methods/messages.getMessageEditData.md b/old_docs/API_docs_v73/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v73/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v73/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v73/methods/messages.getMessagesViews.md b/old_docs/API_docs_v73/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v73/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v73/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v73/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v73/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v73/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v73/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v73/methods/messages.importChatInvite.md b/old_docs/API_docs_v73/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v73/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v73/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v73/methods/messages.readMentions.md b/old_docs/API_docs_v73/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v73/methods/messages.readMentions.md +++ b/old_docs/API_docs_v73/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v73/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v73/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v73/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v73/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v73/methods/messages.sendMedia.md b/old_docs/API_docs_v73/methods/messages.sendMedia.md index 75ee18d4..7da8d21d 100644 --- a/old_docs/API_docs_v73/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v73/methods/messages.sendMedia.md @@ -61,6 +61,7 @@ You can provide bot API reply_markup objects here. |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -79,15 +80,22 @@ You can provide bot API reply_markup objects here. |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v73/methods/messages.sendMessage.md b/old_docs/API_docs_v73/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v73/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v73/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v73/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v73/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v73/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v73/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v73/methods/messages.setTyping.md b/old_docs/API_docs_v73/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v73/methods/messages.setTyping.md +++ b/old_docs/API_docs_v73/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v73/methods/messages.uploadMedia.md b/old_docs/API_docs_v73/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v73/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v73/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v73/methods/upload.getFile.md b/old_docs/API_docs_v73/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v73/methods/upload.getFile.md +++ b/old_docs/API_docs_v73/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v73/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v73/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v73/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v73/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v73/methods/upload.saveFilePart.md b/old_docs/API_docs_v73/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v73/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v73/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v73/methods/users.getUsers.md b/old_docs/API_docs_v73/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v73/methods/users.getUsers.md +++ b/old_docs/API_docs_v73/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v75/methods/account.changePhone.md b/old_docs/API_docs_v75/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v75/methods/account.changePhone.md +++ b/old_docs/API_docs_v75/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v75/methods/account.checkUsername.md b/old_docs/API_docs_v75/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v75/methods/account.checkUsername.md +++ b/old_docs/API_docs_v75/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v75/methods/account.getAuthorizations.md b/old_docs/API_docs_v75/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v75/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v75/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v75/methods/account.updateNotifySettings.md b/old_docs/API_docs_v75/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v75/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v75/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v75/methods/account.updateUsername.md b/old_docs/API_docs_v75/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v75/methods/account.updateUsername.md +++ b/old_docs/API_docs_v75/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v75/methods/auth.cancelCode.md b/old_docs/API_docs_v75/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v75/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v75/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v75/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v75/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v75/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v75/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v75/methods/channels.editAdmin.md b/old_docs/API_docs_v75/methods/channels.editAdmin.md index d2c188ea..5a47d7f2 100644 --- a/old_docs/API_docs_v75/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v75/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v75/methods/channels.editPhoto.md b/old_docs/API_docs_v75/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v75/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v75/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v75/methods/channels.getChannels.md b/old_docs/API_docs_v75/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v75/methods/channels.getChannels.md +++ b/old_docs/API_docs_v75/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v75/methods/channels.getMessages.md b/old_docs/API_docs_v75/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v75/methods/channels.getMessages.md +++ b/old_docs/API_docs_v75/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v75/methods/channels.joinChannel.md b/old_docs/API_docs_v75/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v75/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v75/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v75/methods/channels.readHistory.md b/old_docs/API_docs_v75/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v75/methods/channels.readHistory.md +++ b/old_docs/API_docs_v75/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v75/methods/channels.reportSpam.md b/old_docs/API_docs_v75/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v75/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v75/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v75/methods/channels.toggleSignatures.md b/old_docs/API_docs_v75/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v75/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v75/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v75/methods/help.getConfig.md b/old_docs/API_docs_v75/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v75/methods/help.getConfig.md +++ b/old_docs/API_docs_v75/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v75/methods/help.getNearestDc.md b/old_docs/API_docs_v75/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v75/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v75/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v75/methods/messages.createChat.md b/old_docs/API_docs_v75/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v75/methods/messages.createChat.md +++ b/old_docs/API_docs_v75/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v75/methods/messages.deleteHistory.md b/old_docs/API_docs_v75/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v75/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v75/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v75/methods/messages.editChatPhoto.md b/old_docs/API_docs_v75/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v75/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v75/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v75/methods/messages.editMessage.md b/old_docs/API_docs_v75/methods/messages.editMessage.md index ef9ebcf3..3538c572 100644 --- a/old_docs/API_docs_v75/methods/messages.editMessage.md +++ b/old_docs/API_docs_v75/methods/messages.editMessage.md @@ -103,17 +103,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v75/methods/messages.exportChatInvite.md b/old_docs/API_docs_v75/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v75/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v75/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v75/methods/messages.forwardMessages.md b/old_docs/API_docs_v75/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v75/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v75/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v75/methods/messages.getDialogs.md b/old_docs/API_docs_v75/methods/messages.getDialogs.md index 31502912..a7cf8d98 100644 --- a/old_docs/API_docs_v75/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v75/methods/messages.getDialogs.md @@ -53,6 +53,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v75/methods/messages.getMessageEditData.md b/old_docs/API_docs_v75/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v75/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v75/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v75/methods/messages.getMessagesViews.md b/old_docs/API_docs_v75/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v75/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v75/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v75/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v75/methods/messages.getPeerDialogs.md index 21ac1676..7a56a705 100644 --- a/old_docs/API_docs_v75/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v75/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v75/methods/messages.importChatInvite.md b/old_docs/API_docs_v75/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v75/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v75/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v75/methods/messages.readMentions.md b/old_docs/API_docs_v75/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v75/methods/messages.readMentions.md +++ b/old_docs/API_docs_v75/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v75/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v75/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v75/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v75/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v75/methods/messages.sendMedia.md b/old_docs/API_docs_v75/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v75/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v75/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v75/methods/messages.sendMessage.md b/old_docs/API_docs_v75/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v75/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v75/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v75/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v75/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v75/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v75/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v75/methods/messages.setTyping.md b/old_docs/API_docs_v75/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v75/methods/messages.setTyping.md +++ b/old_docs/API_docs_v75/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v75/methods/messages.uploadMedia.md b/old_docs/API_docs_v75/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v75/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v75/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v75/methods/upload.getFile.md b/old_docs/API_docs_v75/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v75/methods/upload.getFile.md +++ b/old_docs/API_docs_v75/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v75/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v75/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v75/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v75/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v75/methods/upload.saveFilePart.md b/old_docs/API_docs_v75/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v75/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v75/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v75/methods/users.getUsers.md b/old_docs/API_docs_v75/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v75/methods/users.getUsers.md +++ b/old_docs/API_docs_v75/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v81/methods/account.changePhone.md b/old_docs/API_docs_v81/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v81/methods/account.changePhone.md +++ b/old_docs/API_docs_v81/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v81/methods/account.checkUsername.md b/old_docs/API_docs_v81/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v81/methods/account.checkUsername.md +++ b/old_docs/API_docs_v81/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v81/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v81/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v81/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v81/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v81/methods/account.getAuthorizations.md b/old_docs/API_docs_v81/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v81/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v81/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v81/methods/account.initTakeoutSession.md b/old_docs/API_docs_v81/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v81/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v81/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v81/methods/account.updateNotifySettings.md b/old_docs/API_docs_v81/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v81/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v81/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v81/methods/account.updateUsername.md b/old_docs/API_docs_v81/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v81/methods/account.updateUsername.md +++ b/old_docs/API_docs_v81/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v81/methods/auth.cancelCode.md b/old_docs/API_docs_v81/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v81/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v81/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v81/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v81/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v81/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v81/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v81/methods/channels.editAdmin.md b/old_docs/API_docs_v81/methods/channels.editAdmin.md index d2c188ea..5a47d7f2 100644 --- a/old_docs/API_docs_v81/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v81/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v81/methods/channels.editPhoto.md b/old_docs/API_docs_v81/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v81/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v81/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v81/methods/channels.getChannels.md b/old_docs/API_docs_v81/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v81/methods/channels.getChannels.md +++ b/old_docs/API_docs_v81/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v81/methods/channels.getMessages.md b/old_docs/API_docs_v81/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v81/methods/channels.getMessages.md +++ b/old_docs/API_docs_v81/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v81/methods/channels.joinChannel.md b/old_docs/API_docs_v81/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v81/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v81/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v81/methods/channels.readHistory.md b/old_docs/API_docs_v81/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v81/methods/channels.readHistory.md +++ b/old_docs/API_docs_v81/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v81/methods/channels.reportSpam.md b/old_docs/API_docs_v81/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v81/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v81/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v81/methods/channels.toggleSignatures.md b/old_docs/API_docs_v81/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v81/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v81/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v81/methods/help.getConfig.md b/old_docs/API_docs_v81/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v81/methods/help.getConfig.md +++ b/old_docs/API_docs_v81/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v81/methods/help.getNearestDc.md b/old_docs/API_docs_v81/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v81/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v81/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v81/methods/messages.createChat.md b/old_docs/API_docs_v81/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v81/methods/messages.createChat.md +++ b/old_docs/API_docs_v81/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v81/methods/messages.deleteHistory.md b/old_docs/API_docs_v81/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v81/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v81/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v81/methods/messages.editChatPhoto.md b/old_docs/API_docs_v81/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v81/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v81/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v81/methods/messages.editMessage.md b/old_docs/API_docs_v81/methods/messages.editMessage.md index c4713d3e..671c66db 100644 --- a/old_docs/API_docs_v81/methods/messages.editMessage.md +++ b/old_docs/API_docs_v81/methods/messages.editMessage.md @@ -104,17 +104,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v81/methods/messages.exportChatInvite.md b/old_docs/API_docs_v81/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v81/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v81/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v81/methods/messages.forwardMessages.md b/old_docs/API_docs_v81/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v81/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v81/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v81/methods/messages.getDialogs.md b/old_docs/API_docs_v81/methods/messages.getDialogs.md index 31502912..a7cf8d98 100644 --- a/old_docs/API_docs_v81/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v81/methods/messages.getDialogs.md @@ -53,6 +53,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v81/methods/messages.getMessageEditData.md b/old_docs/API_docs_v81/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v81/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v81/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v81/methods/messages.getMessagesViews.md b/old_docs/API_docs_v81/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v81/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v81/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v81/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v81/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v81/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v81/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v81/methods/messages.importChatInvite.md b/old_docs/API_docs_v81/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v81/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v81/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v81/methods/messages.readMentions.md b/old_docs/API_docs_v81/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v81/methods/messages.readMentions.md +++ b/old_docs/API_docs_v81/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v81/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v81/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v81/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v81/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v81/methods/messages.sendMedia.md b/old_docs/API_docs_v81/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v81/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v81/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v81/methods/messages.sendMessage.md b/old_docs/API_docs_v81/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v81/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v81/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v81/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v81/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v81/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v81/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v81/methods/messages.setTyping.md b/old_docs/API_docs_v81/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v81/methods/messages.setTyping.md +++ b/old_docs/API_docs_v81/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v81/methods/messages.uploadMedia.md b/old_docs/API_docs_v81/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v81/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v81/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v81/methods/upload.getFile.md b/old_docs/API_docs_v81/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v81/methods/upload.getFile.md +++ b/old_docs/API_docs_v81/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v81/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v81/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v81/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v81/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v81/methods/upload.saveFilePart.md b/old_docs/API_docs_v81/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v81/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v81/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v81/methods/users.getUsers.md b/old_docs/API_docs_v81/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v81/methods/users.getUsers.md +++ b/old_docs/API_docs_v81/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v82/methods/account.changePhone.md b/old_docs/API_docs_v82/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v82/methods/account.changePhone.md +++ b/old_docs/API_docs_v82/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v82/methods/account.checkUsername.md b/old_docs/API_docs_v82/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v82/methods/account.checkUsername.md +++ b/old_docs/API_docs_v82/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v82/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v82/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v82/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v82/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v82/methods/account.getAuthorizations.md b/old_docs/API_docs_v82/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v82/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v82/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v82/methods/account.initTakeoutSession.md b/old_docs/API_docs_v82/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v82/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v82/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v82/methods/account.updateNotifySettings.md b/old_docs/API_docs_v82/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v82/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v82/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v82/methods/account.updateUsername.md b/old_docs/API_docs_v82/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v82/methods/account.updateUsername.md +++ b/old_docs/API_docs_v82/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v82/methods/auth.cancelCode.md b/old_docs/API_docs_v82/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v82/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v82/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v82/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v82/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v82/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v82/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v82/methods/channels.editAdmin.md b/old_docs/API_docs_v82/methods/channels.editAdmin.md index d2c188ea..5a47d7f2 100644 --- a/old_docs/API_docs_v82/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v82/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v82/methods/channels.editPhoto.md b/old_docs/API_docs_v82/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v82/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v82/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v82/methods/channels.getChannels.md b/old_docs/API_docs_v82/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v82/methods/channels.getChannels.md +++ b/old_docs/API_docs_v82/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v82/methods/channels.getMessages.md b/old_docs/API_docs_v82/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v82/methods/channels.getMessages.md +++ b/old_docs/API_docs_v82/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v82/methods/channels.joinChannel.md b/old_docs/API_docs_v82/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v82/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v82/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v82/methods/channels.readHistory.md b/old_docs/API_docs_v82/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v82/methods/channels.readHistory.md +++ b/old_docs/API_docs_v82/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v82/methods/channels.reportSpam.md b/old_docs/API_docs_v82/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v82/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v82/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v82/methods/channels.toggleSignatures.md b/old_docs/API_docs_v82/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v82/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v82/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v82/methods/help.getConfig.md b/old_docs/API_docs_v82/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v82/methods/help.getConfig.md +++ b/old_docs/API_docs_v82/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v82/methods/help.getNearestDc.md b/old_docs/API_docs_v82/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v82/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v82/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v82/methods/messages.createChat.md b/old_docs/API_docs_v82/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v82/methods/messages.createChat.md +++ b/old_docs/API_docs_v82/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v82/methods/messages.deleteHistory.md b/old_docs/API_docs_v82/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v82/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v82/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v82/methods/messages.editChatPhoto.md b/old_docs/API_docs_v82/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v82/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v82/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v82/methods/messages.editMessage.md b/old_docs/API_docs_v82/methods/messages.editMessage.md index c4713d3e..671c66db 100644 --- a/old_docs/API_docs_v82/methods/messages.editMessage.md +++ b/old_docs/API_docs_v82/methods/messages.editMessage.md @@ -104,17 +104,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v82/methods/messages.exportChatInvite.md b/old_docs/API_docs_v82/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v82/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v82/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v82/methods/messages.forwardMessages.md b/old_docs/API_docs_v82/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v82/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v82/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v82/methods/messages.getDialogs.md b/old_docs/API_docs_v82/methods/messages.getDialogs.md index 083b8180..be6f8204 100644 --- a/old_docs/API_docs_v82/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v82/methods/messages.getDialogs.md @@ -54,6 +54,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v82/methods/messages.getMessageEditData.md b/old_docs/API_docs_v82/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v82/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v82/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v82/methods/messages.getMessagesViews.md b/old_docs/API_docs_v82/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v82/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v82/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v82/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v82/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v82/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v82/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v82/methods/messages.importChatInvite.md b/old_docs/API_docs_v82/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v82/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v82/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v82/methods/messages.readMentions.md b/old_docs/API_docs_v82/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v82/methods/messages.readMentions.md +++ b/old_docs/API_docs_v82/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v82/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v82/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v82/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v82/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v82/methods/messages.sendMedia.md b/old_docs/API_docs_v82/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v82/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v82/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v82/methods/messages.sendMessage.md b/old_docs/API_docs_v82/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v82/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v82/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v82/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v82/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v82/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v82/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v82/methods/messages.setTyping.md b/old_docs/API_docs_v82/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v82/methods/messages.setTyping.md +++ b/old_docs/API_docs_v82/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v82/methods/messages.uploadMedia.md b/old_docs/API_docs_v82/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v82/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v82/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v82/methods/upload.getFile.md b/old_docs/API_docs_v82/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v82/methods/upload.getFile.md +++ b/old_docs/API_docs_v82/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v82/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v82/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v82/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v82/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v82/methods/upload.saveFilePart.md b/old_docs/API_docs_v82/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v82/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v82/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v82/methods/users.getUsers.md b/old_docs/API_docs_v82/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v82/methods/users.getUsers.md +++ b/old_docs/API_docs_v82/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v86/methods/account.changePhone.md b/old_docs/API_docs_v86/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v86/methods/account.changePhone.md +++ b/old_docs/API_docs_v86/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v86/methods/account.checkUsername.md b/old_docs/API_docs_v86/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v86/methods/account.checkUsername.md +++ b/old_docs/API_docs_v86/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v86/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v86/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v86/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v86/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v86/methods/account.getAuthorizations.md b/old_docs/API_docs_v86/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v86/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v86/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v86/methods/account.initTakeoutSession.md b/old_docs/API_docs_v86/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v86/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v86/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v86/methods/account.updateNotifySettings.md b/old_docs/API_docs_v86/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v86/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v86/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v86/methods/account.updateUsername.md b/old_docs/API_docs_v86/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v86/methods/account.updateUsername.md +++ b/old_docs/API_docs_v86/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v86/methods/auth.cancelCode.md b/old_docs/API_docs_v86/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v86/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v86/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v86/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v86/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v86/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v86/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v86/methods/channels.editAdmin.md b/old_docs/API_docs_v86/methods/channels.editAdmin.md index d2c188ea..5a47d7f2 100644 --- a/old_docs/API_docs_v86/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v86/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v86/methods/channels.editPhoto.md b/old_docs/API_docs_v86/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v86/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v86/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v86/methods/channels.getChannels.md b/old_docs/API_docs_v86/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v86/methods/channels.getChannels.md +++ b/old_docs/API_docs_v86/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v86/methods/channels.getMessages.md b/old_docs/API_docs_v86/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v86/methods/channels.getMessages.md +++ b/old_docs/API_docs_v86/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v86/methods/channels.joinChannel.md b/old_docs/API_docs_v86/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v86/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v86/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v86/methods/channels.readHistory.md b/old_docs/API_docs_v86/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v86/methods/channels.readHistory.md +++ b/old_docs/API_docs_v86/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v86/methods/channels.reportSpam.md b/old_docs/API_docs_v86/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v86/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v86/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v86/methods/channels.toggleSignatures.md b/old_docs/API_docs_v86/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v86/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v86/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v86/methods/help.getConfig.md b/old_docs/API_docs_v86/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v86/methods/help.getConfig.md +++ b/old_docs/API_docs_v86/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v86/methods/help.getNearestDc.md b/old_docs/API_docs_v86/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v86/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v86/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v86/methods/messages.createChat.md b/old_docs/API_docs_v86/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v86/methods/messages.createChat.md +++ b/old_docs/API_docs_v86/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v86/methods/messages.deleteHistory.md b/old_docs/API_docs_v86/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v86/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v86/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v86/methods/messages.editChatPhoto.md b/old_docs/API_docs_v86/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v86/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v86/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v86/methods/messages.editMessage.md b/old_docs/API_docs_v86/methods/messages.editMessage.md index c4713d3e..671c66db 100644 --- a/old_docs/API_docs_v86/methods/messages.editMessage.md +++ b/old_docs/API_docs_v86/methods/messages.editMessage.md @@ -104,17 +104,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v86/methods/messages.exportChatInvite.md b/old_docs/API_docs_v86/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v86/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v86/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v86/methods/messages.forwardMessages.md b/old_docs/API_docs_v86/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v86/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v86/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v86/methods/messages.getDialogs.md b/old_docs/API_docs_v86/methods/messages.getDialogs.md index 083b8180..be6f8204 100644 --- a/old_docs/API_docs_v86/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v86/methods/messages.getDialogs.md @@ -54,6 +54,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v86/methods/messages.getMessageEditData.md b/old_docs/API_docs_v86/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v86/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v86/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v86/methods/messages.getMessagesViews.md b/old_docs/API_docs_v86/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v86/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v86/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v86/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v86/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v86/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v86/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v86/methods/messages.importChatInvite.md b/old_docs/API_docs_v86/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v86/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v86/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v86/methods/messages.readMentions.md b/old_docs/API_docs_v86/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v86/methods/messages.readMentions.md +++ b/old_docs/API_docs_v86/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v86/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v86/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v86/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v86/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v86/methods/messages.sendMedia.md b/old_docs/API_docs_v86/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v86/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v86/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v86/methods/messages.sendMessage.md b/old_docs/API_docs_v86/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v86/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v86/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v86/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v86/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v86/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v86/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v86/methods/messages.setTyping.md b/old_docs/API_docs_v86/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v86/methods/messages.setTyping.md +++ b/old_docs/API_docs_v86/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v86/methods/messages.uploadMedia.md b/old_docs/API_docs_v86/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v86/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v86/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v86/methods/upload.getFile.md b/old_docs/API_docs_v86/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v86/methods/upload.getFile.md +++ b/old_docs/API_docs_v86/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v86/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v86/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v86/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v86/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v86/methods/upload.saveFilePart.md b/old_docs/API_docs_v86/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v86/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v86/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v86/methods/users.getUsers.md b/old_docs/API_docs_v86/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v86/methods/users.getUsers.md +++ b/old_docs/API_docs_v86/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v89/methods/account.changePhone.md b/old_docs/API_docs_v89/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v89/methods/account.changePhone.md +++ b/old_docs/API_docs_v89/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v89/methods/account.checkUsername.md b/old_docs/API_docs_v89/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v89/methods/account.checkUsername.md +++ b/old_docs/API_docs_v89/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v89/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v89/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v89/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v89/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v89/methods/account.getAuthorizations.md b/old_docs/API_docs_v89/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v89/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v89/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v89/methods/account.initTakeoutSession.md b/old_docs/API_docs_v89/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v89/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v89/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v89/methods/account.updateNotifySettings.md b/old_docs/API_docs_v89/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v89/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v89/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v89/methods/account.updateUsername.md b/old_docs/API_docs_v89/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v89/methods/account.updateUsername.md +++ b/old_docs/API_docs_v89/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v89/methods/auth.cancelCode.md b/old_docs/API_docs_v89/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v89/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v89/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v89/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v89/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v89/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v89/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v89/methods/channels.editAdmin.md b/old_docs/API_docs_v89/methods/channels.editAdmin.md index d2c188ea..5a47d7f2 100644 --- a/old_docs/API_docs_v89/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v89/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v89/methods/channels.editPhoto.md b/old_docs/API_docs_v89/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v89/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v89/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v89/methods/channels.getChannels.md b/old_docs/API_docs_v89/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v89/methods/channels.getChannels.md +++ b/old_docs/API_docs_v89/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v89/methods/channels.getMessages.md b/old_docs/API_docs_v89/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v89/methods/channels.getMessages.md +++ b/old_docs/API_docs_v89/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v89/methods/channels.joinChannel.md b/old_docs/API_docs_v89/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v89/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v89/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v89/methods/channels.readHistory.md b/old_docs/API_docs_v89/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v89/methods/channels.readHistory.md +++ b/old_docs/API_docs_v89/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v89/methods/channels.reportSpam.md b/old_docs/API_docs_v89/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v89/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v89/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v89/methods/channels.toggleSignatures.md b/old_docs/API_docs_v89/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v89/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v89/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v89/methods/help.getConfig.md b/old_docs/API_docs_v89/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v89/methods/help.getConfig.md +++ b/old_docs/API_docs_v89/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v89/methods/help.getNearestDc.md b/old_docs/API_docs_v89/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v89/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v89/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v89/methods/messages.createChat.md b/old_docs/API_docs_v89/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v89/methods/messages.createChat.md +++ b/old_docs/API_docs_v89/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v89/methods/messages.deleteHistory.md b/old_docs/API_docs_v89/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v89/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v89/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v89/methods/messages.editChatPhoto.md b/old_docs/API_docs_v89/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v89/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v89/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v89/methods/messages.editMessage.md b/old_docs/API_docs_v89/methods/messages.editMessage.md index c4713d3e..671c66db 100644 --- a/old_docs/API_docs_v89/methods/messages.editMessage.md +++ b/old_docs/API_docs_v89/methods/messages.editMessage.md @@ -104,17 +104,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v89/methods/messages.exportChatInvite.md b/old_docs/API_docs_v89/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v89/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v89/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v89/methods/messages.forwardMessages.md b/old_docs/API_docs_v89/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v89/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v89/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v89/methods/messages.getDialogs.md b/old_docs/API_docs_v89/methods/messages.getDialogs.md index 083b8180..be6f8204 100644 --- a/old_docs/API_docs_v89/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v89/methods/messages.getDialogs.md @@ -54,6 +54,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v89/methods/messages.getMessageEditData.md b/old_docs/API_docs_v89/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v89/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v89/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v89/methods/messages.getMessagesViews.md b/old_docs/API_docs_v89/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v89/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v89/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v89/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v89/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v89/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v89/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v89/methods/messages.importChatInvite.md b/old_docs/API_docs_v89/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v89/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v89/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v89/methods/messages.readMentions.md b/old_docs/API_docs_v89/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v89/methods/messages.readMentions.md +++ b/old_docs/API_docs_v89/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v89/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v89/methods/messages.sendInlineBotResult.md index 8b9881fe..f44b6a6f 100644 --- a/old_docs/API_docs_v89/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v89/methods/messages.sendInlineBotResult.md @@ -53,8 +53,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -62,8 +65,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v89/methods/messages.sendMedia.md b/old_docs/API_docs_v89/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v89/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v89/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v89/methods/messages.sendMessage.md b/old_docs/API_docs_v89/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v89/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v89/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v89/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v89/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v89/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v89/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v89/methods/messages.setTyping.md b/old_docs/API_docs_v89/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v89/methods/messages.setTyping.md +++ b/old_docs/API_docs_v89/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v89/methods/messages.uploadMedia.md b/old_docs/API_docs_v89/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v89/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v89/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v89/methods/upload.getFile.md b/old_docs/API_docs_v89/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v89/methods/upload.getFile.md +++ b/old_docs/API_docs_v89/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v89/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v89/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v89/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v89/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v89/methods/upload.saveFilePart.md b/old_docs/API_docs_v89/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v89/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v89/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v89/methods/users.getUsers.md b/old_docs/API_docs_v89/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v89/methods/users.getUsers.md +++ b/old_docs/API_docs_v89/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v91/methods/account.changePhone.md b/old_docs/API_docs_v91/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v91/methods/account.changePhone.md +++ b/old_docs/API_docs_v91/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v91/methods/account.checkUsername.md b/old_docs/API_docs_v91/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v91/methods/account.checkUsername.md +++ b/old_docs/API_docs_v91/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v91/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v91/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v91/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v91/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v91/methods/account.getAuthorizations.md b/old_docs/API_docs_v91/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v91/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v91/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v91/methods/account.initTakeoutSession.md b/old_docs/API_docs_v91/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v91/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v91/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v91/methods/account.updateNotifySettings.md b/old_docs/API_docs_v91/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v91/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v91/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v91/methods/account.updateUsername.md b/old_docs/API_docs_v91/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v91/methods/account.updateUsername.md +++ b/old_docs/API_docs_v91/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v91/methods/auth.cancelCode.md b/old_docs/API_docs_v91/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v91/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v91/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v91/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v91/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v91/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v91/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v91/methods/channels.editAdmin.md b/old_docs/API_docs_v91/methods/channels.editAdmin.md index d2c188ea..5a47d7f2 100644 --- a/old_docs/API_docs_v91/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v91/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v91/methods/channels.editPhoto.md b/old_docs/API_docs_v91/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v91/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v91/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v91/methods/channels.getChannels.md b/old_docs/API_docs_v91/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v91/methods/channels.getChannels.md +++ b/old_docs/API_docs_v91/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v91/methods/channels.getMessages.md b/old_docs/API_docs_v91/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v91/methods/channels.getMessages.md +++ b/old_docs/API_docs_v91/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v91/methods/channels.joinChannel.md b/old_docs/API_docs_v91/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v91/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v91/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v91/methods/channels.readHistory.md b/old_docs/API_docs_v91/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v91/methods/channels.readHistory.md +++ b/old_docs/API_docs_v91/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v91/methods/channels.reportSpam.md b/old_docs/API_docs_v91/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v91/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v91/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v91/methods/channels.toggleSignatures.md b/old_docs/API_docs_v91/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v91/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v91/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v91/methods/help.getConfig.md b/old_docs/API_docs_v91/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v91/methods/help.getConfig.md +++ b/old_docs/API_docs_v91/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v91/methods/help.getNearestDc.md b/old_docs/API_docs_v91/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v91/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v91/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v91/methods/messages.createChat.md b/old_docs/API_docs_v91/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v91/methods/messages.createChat.md +++ b/old_docs/API_docs_v91/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v91/methods/messages.deleteHistory.md b/old_docs/API_docs_v91/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v91/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v91/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v91/methods/messages.editChatPhoto.md b/old_docs/API_docs_v91/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v91/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v91/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v91/methods/messages.editMessage.md b/old_docs/API_docs_v91/methods/messages.editMessage.md index 36a980f1..09bf4661 100644 --- a/old_docs/API_docs_v91/methods/messages.editMessage.md +++ b/old_docs/API_docs_v91/methods/messages.editMessage.md @@ -102,17 +102,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v91/methods/messages.exportChatInvite.md b/old_docs/API_docs_v91/methods/messages.exportChatInvite.md index 58ff6ea4..bc4a45ad 100644 --- a/old_docs/API_docs_v91/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v91/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v91/methods/messages.forwardMessages.md b/old_docs/API_docs_v91/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v91/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v91/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v91/methods/messages.getDialogs.md b/old_docs/API_docs_v91/methods/messages.getDialogs.md index 083b8180..be6f8204 100644 --- a/old_docs/API_docs_v91/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v91/methods/messages.getDialogs.md @@ -54,6 +54,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v91/methods/messages.getMessageEditData.md b/old_docs/API_docs_v91/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v91/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v91/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v91/methods/messages.getMessagesViews.md b/old_docs/API_docs_v91/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v91/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v91/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v91/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v91/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v91/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v91/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v91/methods/messages.importChatInvite.md b/old_docs/API_docs_v91/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v91/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v91/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v91/methods/messages.readMentions.md b/old_docs/API_docs_v91/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v91/methods/messages.readMentions.md +++ b/old_docs/API_docs_v91/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v91/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v91/methods/messages.sendInlineBotResult.md index 619a4642..9e34a816 100644 --- a/old_docs/API_docs_v91/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v91/methods/messages.sendInlineBotResult.md @@ -54,8 +54,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -63,8 +66,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v91/methods/messages.sendMedia.md b/old_docs/API_docs_v91/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v91/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v91/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v91/methods/messages.sendMessage.md b/old_docs/API_docs_v91/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v91/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v91/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v91/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v91/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v91/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v91/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v91/methods/messages.setTyping.md b/old_docs/API_docs_v91/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v91/methods/messages.setTyping.md +++ b/old_docs/API_docs_v91/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v91/methods/messages.uploadMedia.md b/old_docs/API_docs_v91/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v91/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v91/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v91/methods/upload.getFile.md b/old_docs/API_docs_v91/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v91/methods/upload.getFile.md +++ b/old_docs/API_docs_v91/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v91/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v91/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v91/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v91/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v91/methods/upload.saveFilePart.md b/old_docs/API_docs_v91/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v91/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v91/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v91/methods/users.getUsers.md b/old_docs/API_docs_v91/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v91/methods/users.getUsers.md +++ b/old_docs/API_docs_v91/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v95/methods/account.changePhone.md b/old_docs/API_docs_v95/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v95/methods/account.changePhone.md +++ b/old_docs/API_docs_v95/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v95/methods/account.checkUsername.md b/old_docs/API_docs_v95/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v95/methods/account.checkUsername.md +++ b/old_docs/API_docs_v95/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v95/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v95/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v95/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v95/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v95/methods/account.getAuthorizations.md b/old_docs/API_docs_v95/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v95/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v95/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v95/methods/account.initTakeoutSession.md b/old_docs/API_docs_v95/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v95/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v95/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v95/methods/account.updateNotifySettings.md b/old_docs/API_docs_v95/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v95/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v95/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v95/methods/account.updateUsername.md b/old_docs/API_docs_v95/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v95/methods/account.updateUsername.md +++ b/old_docs/API_docs_v95/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v95/methods/auth.cancelCode.md b/old_docs/API_docs_v95/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v95/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v95/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v95/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v95/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v95/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v95/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v95/methods/channels.editAdmin.md b/old_docs/API_docs_v95/methods/channels.editAdmin.md index 64ad80c3..ac505845 100644 --- a/old_docs/API_docs_v95/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v95/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v95/methods/channels.editPhoto.md b/old_docs/API_docs_v95/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v95/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v95/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v95/methods/channels.getChannels.md b/old_docs/API_docs_v95/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v95/methods/channels.getChannels.md +++ b/old_docs/API_docs_v95/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v95/methods/channels.getMessages.md b/old_docs/API_docs_v95/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v95/methods/channels.getMessages.md +++ b/old_docs/API_docs_v95/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v95/methods/channels.joinChannel.md b/old_docs/API_docs_v95/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v95/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v95/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v95/methods/channels.readHistory.md b/old_docs/API_docs_v95/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v95/methods/channels.readHistory.md +++ b/old_docs/API_docs_v95/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v95/methods/channels.reportSpam.md b/old_docs/API_docs_v95/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v95/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v95/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v95/methods/channels.toggleSignatures.md b/old_docs/API_docs_v95/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v95/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v95/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v95/methods/help.getConfig.md b/old_docs/API_docs_v95/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v95/methods/help.getConfig.md +++ b/old_docs/API_docs_v95/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v95/methods/help.getNearestDc.md b/old_docs/API_docs_v95/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v95/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v95/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v95/methods/messages.createChat.md b/old_docs/API_docs_v95/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v95/methods/messages.createChat.md +++ b/old_docs/API_docs_v95/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v95/methods/messages.deleteHistory.md b/old_docs/API_docs_v95/methods/messages.deleteHistory.md index d8d0d894..be2ffeb0 100644 --- a/old_docs/API_docs_v95/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v95/methods/messages.deleteHistory.md @@ -49,6 +49,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, peer=InputPe | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v95/methods/messages.editChatAbout.md b/old_docs/API_docs_v95/methods/messages.editChatAbout.md index 7a6e8812..dbe28e12 100644 --- a/old_docs/API_docs_v95/methods/messages.editChatAbout.md +++ b/old_docs/API_docs_v95/methods/messages.editChatAbout.md @@ -48,6 +48,7 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v95/methods/messages.editChatPhoto.md b/old_docs/API_docs_v95/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v95/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v95/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v95/methods/messages.editMessage.md b/old_docs/API_docs_v95/methods/messages.editMessage.md index 36a980f1..09bf4661 100644 --- a/old_docs/API_docs_v95/methods/messages.editMessage.md +++ b/old_docs/API_docs_v95/methods/messages.editMessage.md @@ -102,17 +102,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v95/methods/messages.exportChatInvite.md b/old_docs/API_docs_v95/methods/messages.exportChatInvite.md index 54bf1523..0295197f 100644 --- a/old_docs/API_docs_v95/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v95/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v95/methods/messages.forwardMessages.md b/old_docs/API_docs_v95/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v95/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v95/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v95/methods/messages.getDialogs.md b/old_docs/API_docs_v95/methods/messages.getDialogs.md index 083b8180..be6f8204 100644 --- a/old_docs/API_docs_v95/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v95/methods/messages.getDialogs.md @@ -54,6 +54,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v95/methods/messages.getMessageEditData.md b/old_docs/API_docs_v95/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v95/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v95/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v95/methods/messages.getMessagesViews.md b/old_docs/API_docs_v95/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v95/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v95/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v95/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v95/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v95/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v95/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v95/methods/messages.importChatInvite.md b/old_docs/API_docs_v95/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v95/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v95/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v95/methods/messages.readMentions.md b/old_docs/API_docs_v95/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v95/methods/messages.readMentions.md +++ b/old_docs/API_docs_v95/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v95/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v95/methods/messages.sendInlineBotResult.md index 619a4642..9e34a816 100644 --- a/old_docs/API_docs_v95/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v95/methods/messages.sendInlineBotResult.md @@ -54,8 +54,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -63,8 +66,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v95/methods/messages.sendMedia.md b/old_docs/API_docs_v95/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v95/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v95/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v95/methods/messages.sendMessage.md b/old_docs/API_docs_v95/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v95/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v95/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v95/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v95/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v95/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v95/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v95/methods/messages.setTyping.md b/old_docs/API_docs_v95/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v95/methods/messages.setTyping.md +++ b/old_docs/API_docs_v95/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v95/methods/messages.uploadMedia.md b/old_docs/API_docs_v95/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v95/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v95/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v95/methods/upload.getFile.md b/old_docs/API_docs_v95/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v95/methods/upload.getFile.md +++ b/old_docs/API_docs_v95/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v95/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v95/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v95/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v95/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v95/methods/upload.saveFilePart.md b/old_docs/API_docs_v95/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v95/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v95/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v95/methods/users.getUsers.md b/old_docs/API_docs_v95/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v95/methods/users.getUsers.md +++ b/old_docs/API_docs_v95/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| diff --git a/old_docs/API_docs_v97/methods/account.changePhone.md b/old_docs/API_docs_v97/methods/account.changePhone.md index 62378079..873af1aa 100644 --- a/old_docs/API_docs_v97/methods/account.changePhone.md +++ b/old_docs/API_docs_v97/methods/account.changePhone.md @@ -49,6 +49,7 @@ User = account.changePhone({phone_number='string', phone_code_hash='string', pho | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EMPTY|phone_code is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v97/methods/account.checkUsername.md b/old_docs/API_docs_v97/methods/account.checkUsername.md index 047149f7..47f949af 100644 --- a/old_docs/API_docs_v97/methods/account.checkUsername.md +++ b/old_docs/API_docs_v97/methods/account.checkUsername.md @@ -48,5 +48,6 @@ Bool = account.checkUsername({username='string', }) | Code | Type | Description | |------|----------|---------------| |400|USERNAME_INVALID|The provided username is not valid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v97/methods/account.finishTakeoutSession.md b/old_docs/API_docs_v97/methods/account.finishTakeoutSession.md index 61ea80bb..781b6e85 100644 --- a/old_docs/API_docs_v97/methods/account.finishTakeoutSession.md +++ b/old_docs/API_docs_v97/methods/account.finishTakeoutSession.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Bool = account.finishTakeoutSession({success=Bool, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|TAKEOUT_REQUIRED|A takeout session has to be initialized, first| + + diff --git a/old_docs/API_docs_v97/methods/account.getAuthorizations.md b/old_docs/API_docs_v97/methods/account.getAuthorizations.md index 523d2427..e54e2f6b 100644 --- a/old_docs/API_docs_v97/methods/account.getAuthorizations.md +++ b/old_docs/API_docs_v97/methods/account.getAuthorizations.md @@ -38,3 +38,10 @@ Or, if you're into Lua: account.Authorizations = account.getAuthorizations({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + + diff --git a/old_docs/API_docs_v97/methods/account.initTakeoutSession.md b/old_docs/API_docs_v97/methods/account.initTakeoutSession.md index 78791120..f2319113 100644 --- a/old_docs/API_docs_v97/methods/account.initTakeoutSession.md +++ b/old_docs/API_docs_v97/methods/account.initTakeoutSession.md @@ -49,3 +49,10 @@ Or, if you're into Lua: account.Takeout = account.initTakeoutSession({contacts=Bool, message_users=Bool, message_chats=Bool, message_megagroups=Bool, message_channels=Bool, files=Bool, file_max_size=int, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|420|TAKEOUT_INIT_DELAY_X|Wait X seconds before initing takeout| + + diff --git a/old_docs/API_docs_v97/methods/account.updateNotifySettings.md b/old_docs/API_docs_v97/methods/account.updateNotifySettings.md index 5d5bb9cd..9e22703e 100644 --- a/old_docs/API_docs_v97/methods/account.updateNotifySettings.md +++ b/old_docs/API_docs_v97/methods/account.updateNotifySettings.md @@ -48,6 +48,7 @@ Bool = account.updateNotifySettings({peer=InputNotifyPeer, settings=InputPeerNot | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|SETTINGS_INVALID|Invalid settings were provided| diff --git a/old_docs/API_docs_v97/methods/account.updateUsername.md b/old_docs/API_docs_v97/methods/account.updateUsername.md index b53a98df..198cf4da 100644 --- a/old_docs/API_docs_v97/methods/account.updateUsername.md +++ b/old_docs/API_docs_v97/methods/account.updateUsername.md @@ -50,6 +50,7 @@ User = account.updateUsername({username='string', }) |400|USERNAME_INVALID|The provided username is not valid| |400|USERNAME_NOT_MODIFIED|The username was not modified| |400|USERNAME_OCCUPIED|The provided username is already occupied| +|401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v97/methods/auth.cancelCode.md b/old_docs/API_docs_v97/methods/auth.cancelCode.md index 688f33b7..501b9545 100644 --- a/old_docs/API_docs_v97/methods/auth.cancelCode.md +++ b/old_docs/API_docs_v97/methods/auth.cancelCode.md @@ -48,6 +48,7 @@ Bool = auth.cancelCode({phone_number='string', phone_code_hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|PHONE_CODE_EXPIRED|The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v97/methods/channels.deleteUserHistory.md b/old_docs/API_docs_v97/methods/channels.deleteUserHistory.md index 8a143076..2acb5717 100644 --- a/old_docs/API_docs_v97/methods/channels.deleteUserHistory.md +++ b/old_docs/API_docs_v97/methods/channels.deleteUserHistory.md @@ -49,8 +49,10 @@ messages.AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|MSG_ID_INVALID|Invalid message ID provided| |400|USER_ID_INVALID|The provided user ID is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v97/methods/channels.editAdmin.md b/old_docs/API_docs_v97/methods/channels.editAdmin.md index 64ad80c3..ac505845 100644 --- a/old_docs/API_docs_v97/methods/channels.editAdmin.md +++ b/old_docs/API_docs_v97/methods/channels.editAdmin.md @@ -52,6 +52,7 @@ Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rig |400|ADMINS_TOO_MUCH|There are too many admins| |400|BOT_CHANNELS_NA|Bots can't edit admin privileges| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USER_CREATOR|You can't leave this channel, because you're its creator| diff --git a/old_docs/API_docs_v97/methods/channels.editPhoto.md b/old_docs/API_docs_v97/methods/channels.editPhoto.md index cdab3379..1ed27382 100644 --- a/old_docs/API_docs_v97/methods/channels.editPhoto.md +++ b/old_docs/API_docs_v97/methods/channels.editPhoto.md @@ -54,5 +54,6 @@ Updates = channels.editPhoto({channel=InputChannel, photo=InputChatPhoto, }) |400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID|Photo invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v97/methods/channels.getChannels.md b/old_docs/API_docs_v97/methods/channels.getChannels.md index e8807ad9..218b620b 100644 --- a/old_docs/API_docs_v97/methods/channels.getChannels.md +++ b/old_docs/API_docs_v97/methods/channels.getChannels.md @@ -51,5 +51,6 @@ messages.Chats = channels.getChannels({id={InputChannel}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v97/methods/channels.getMessages.md b/old_docs/API_docs_v97/methods/channels.getMessages.md index 2f275f83..29208311 100644 --- a/old_docs/API_docs_v97/methods/channels.getMessages.md +++ b/old_docs/API_docs_v97/methods/channels.getMessages.md @@ -51,6 +51,7 @@ messages.Messages = channels.getMessages({channel=InputChannel, id={InputMessage |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MESSAGE_IDS_EMPTY|No message ids were provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v97/methods/channels.joinChannel.md b/old_docs/API_docs_v97/methods/channels.joinChannel.md index f3e90603..de94774e 100644 --- a/old_docs/API_docs_v97/methods/channels.joinChannel.md +++ b/old_docs/API_docs_v97/methods/channels.joinChannel.md @@ -54,8 +54,11 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| +|400|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v97/methods/channels.readHistory.md b/old_docs/API_docs_v97/methods/channels.readHistory.md index d2c4bb33..16ae166c 100644 --- a/old_docs/API_docs_v97/methods/channels.readHistory.md +++ b/old_docs/API_docs_v97/methods/channels.readHistory.md @@ -51,5 +51,6 @@ Bool = channels.readHistory({channel=InputChannel, max_id=int, }) |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|MSG_ID_INVALID|Invalid message ID provided| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v97/methods/channels.reportSpam.md b/old_docs/API_docs_v97/methods/channels.reportSpam.md index c6f8f5d8..9866a14c 100644 --- a/old_docs/API_docs_v97/methods/channels.reportSpam.md +++ b/old_docs/API_docs_v97/methods/channels.reportSpam.md @@ -50,6 +50,8 @@ Bool = channels.reportSpam({channel=InputChannel, user_id=InputUser, id={int}, } | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|USER_ID_INVALID|The provided user ID is invalid| diff --git a/old_docs/API_docs_v97/methods/channels.toggleSignatures.md b/old_docs/API_docs_v97/methods/channels.toggleSignatures.md index e3d3e476..bc0371dc 100644 --- a/old_docs/API_docs_v97/methods/channels.toggleSignatures.md +++ b/old_docs/API_docs_v97/methods/channels.toggleSignatures.md @@ -49,5 +49,6 @@ Updates = channels.toggleSignatures({channel=InputChannel, enabled=Bool, }) | Code | Type | Description | |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| +|400|CHAT_ID_INVALID|The provided chat id is invalid| diff --git a/old_docs/API_docs_v97/methods/help.getConfig.md b/old_docs/API_docs_v97/methods/help.getConfig.md index ae77d33f..398f819b 100644 --- a/old_docs/API_docs_v97/methods/help.getConfig.md +++ b/old_docs/API_docs_v97/methods/help.getConfig.md @@ -45,6 +45,7 @@ Config = help.getConfig({}) |400|CONNECTION_DEVICE_MODEL_EMPTY|Device model empty| |400|CONNECTION_NOT_INITED|Connection not initialized| |400|CONNECTION_SYSTEM_EMPTY|Connection system empty| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v97/methods/help.getNearestDc.md b/old_docs/API_docs_v97/methods/help.getNearestDc.md index 639f272b..805b9ef7 100644 --- a/old_docs/API_docs_v97/methods/help.getNearestDc.md +++ b/old_docs/API_docs_v97/methods/help.getNearestDc.md @@ -38,3 +38,10 @@ Or, if you're into Lua: NearestDc = help.getNearestDc({}) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v97/methods/messages.createChat.md b/old_docs/API_docs_v97/methods/messages.createChat.md index a66ceb60..14c522d5 100644 --- a/old_docs/API_docs_v97/methods/messages.createChat.md +++ b/old_docs/API_docs_v97/methods/messages.createChat.md @@ -49,6 +49,7 @@ Updates = messages.createChat({users={InputUser}, title='string', }) | Code | Type | Description | |------|----------|---------------| |400|CHAT_INVALID|Invalid chat| +|400|CHAT_TITLE_EMPTY|No chat title provided| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| |400|USERS_TOO_FEW|Not enough users (to create a chat, for example)| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v97/methods/messages.deleteHistory.md b/old_docs/API_docs_v97/methods/messages.deleteHistory.md index c7ff96a9..909831be 100644 --- a/old_docs/API_docs_v97/methods/messages.deleteHistory.md +++ b/old_docs/API_docs_v97/methods/messages.deleteHistory.md @@ -50,6 +50,7 @@ messages.AffectedHistory = messages.deleteHistory({just_clear=Bool, revoke=Bool, | Code | Type | Description | |------|----------|---------------| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v97/methods/messages.editChatAbout.md b/old_docs/API_docs_v97/methods/messages.editChatAbout.md index 7a6e8812..dbe28e12 100644 --- a/old_docs/API_docs_v97/methods/messages.editChatAbout.md +++ b/old_docs/API_docs_v97/methods/messages.editChatAbout.md @@ -48,6 +48,7 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ABOUT_NOT_MODIFIED|About text has not changed| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| diff --git a/old_docs/API_docs_v97/methods/messages.editChatPhoto.md b/old_docs/API_docs_v97/methods/messages.editChatPhoto.md index 434be66e..addf9c4f 100644 --- a/old_docs/API_docs_v97/methods/messages.editChatPhoto.md +++ b/old_docs/API_docs_v97/methods/messages.editChatPhoto.md @@ -52,6 +52,7 @@ Updates = messages.editChatPhoto({chat_id=InputPeer, photo=InputChatPhoto, }) |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PHOTO_CROP_SIZE_SMALL|Photo is too small| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| diff --git a/old_docs/API_docs_v97/methods/messages.editMessage.md b/old_docs/API_docs_v97/methods/messages.editMessage.md index 36a980f1..09bf4661 100644 --- a/old_docs/API_docs_v97/methods/messages.editMessage.md +++ b/old_docs/API_docs_v97/methods/messages.editMessage.md @@ -102,17 +102,20 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: | Code | Type | Description | |------|----------|---------------| +|400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| |400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MEDIA_PREV_INVALID|Previous media invalid| |400|MESSAGE_EDIT_TIME_EXPIRED|You can't edit this message anymore, too much time has passed since its creation.| |400|MESSAGE_EMPTY|The provided message is empty| |400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|MESSAGE_NOT_MODIFIED|The message text has not changed| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_DATE_INVALID|Invalid schedule date provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |403|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| diff --git a/old_docs/API_docs_v97/methods/messages.exportChatInvite.md b/old_docs/API_docs_v97/methods/messages.exportChatInvite.md index 54bf1523..0295197f 100644 --- a/old_docs/API_docs_v97/methods/messages.exportChatInvite.md +++ b/old_docs/API_docs_v97/methods/messages.exportChatInvite.md @@ -51,5 +51,6 @@ ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v97/methods/messages.forwardMessages.md b/old_docs/API_docs_v97/methods/messages.forwardMessages.md index acac8d76..68980892 100644 --- a/old_docs/API_docs_v97/methods/messages.forwardMessages.md +++ b/old_docs/API_docs_v97/methods/messages.forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |400|YOU_BLOCKED_USER|You blocked this user| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_POLL_FORBIDDEN|You can't send polls in this chat| |403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| diff --git a/old_docs/API_docs_v97/methods/messages.getDialogs.md b/old_docs/API_docs_v97/methods/messages.getDialogs.md index 083b8180..be6f8204 100644 --- a/old_docs/API_docs_v97/methods/messages.getDialogs.md +++ b/old_docs/API_docs_v97/methods/messages.getDialogs.md @@ -54,6 +54,7 @@ messages.Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, of |------|----------|---------------| |400|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| |400|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v97/methods/messages.getMessageEditData.md b/old_docs/API_docs_v97/methods/messages.getMessageEditData.md index 3c6eeab8..c1eaa05d 100644 --- a/old_docs/API_docs_v97/methods/messages.getMessageEditData.md +++ b/old_docs/API_docs_v97/methods/messages.getMessageEditData.md @@ -48,6 +48,7 @@ messages.MessageEditData = messages.getMessageEditData({peer=InputPeer, id=int, | Code | Type | Description | |------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |403|MESSAGE_AUTHOR_REQUIRED|Message author required| diff --git a/old_docs/API_docs_v97/methods/messages.getMessagesViews.md b/old_docs/API_docs_v97/methods/messages.getMessagesViews.md index bed66450..2b808720 100644 --- a/old_docs/API_docs_v97/methods/messages.getMessagesViews.md +++ b/old_docs/API_docs_v97/methods/messages.getMessagesViews.md @@ -55,5 +55,6 @@ Vector_of_int = messages.getMessagesViews({peer=InputPeer, id={int}, increment=B |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v97/methods/messages.getPeerDialogs.md b/old_docs/API_docs_v97/methods/messages.getPeerDialogs.md index cbb3a967..15e97487 100644 --- a/old_docs/API_docs_v97/methods/messages.getPeerDialogs.md +++ b/old_docs/API_docs_v97/methods/messages.getPeerDialogs.md @@ -50,5 +50,6 @@ messages.PeerDialogs = messages.getPeerDialogs({peers={InputDialogPeer}, }) |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|PEER_ID_INVALID|The provided peer id is invalid| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v97/methods/messages.importChatInvite.md b/old_docs/API_docs_v97/methods/messages.importChatInvite.md index 703bf109..4ba80715 100644 --- a/old_docs/API_docs_v97/methods/messages.importChatInvite.md +++ b/old_docs/API_docs_v97/methods/messages.importChatInvite.md @@ -47,11 +47,13 @@ Updates = messages.importChatInvite({hash='string', }) | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|INVITE_HASH_EMPTY|The invite hash is empty| |400|INVITE_HASH_EXPIRED|The invite link has expired| |400|INVITE_HASH_INVALID|The invite hash is invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_ALREADY_PARTICIPANT|The user is already in the group| |400|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| diff --git a/old_docs/API_docs_v97/methods/messages.readMentions.md b/old_docs/API_docs_v97/methods/messages.readMentions.md index 8a4a4bc4..4caeb464 100644 --- a/old_docs/API_docs_v97/methods/messages.readMentions.md +++ b/old_docs/API_docs_v97/methods/messages.readMentions.md @@ -43,3 +43,13 @@ Or, if you're into Lua: messages.AffectedHistory = messages.readMentions({peer=InputPeer, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|400|MSG_ID_INVALID|Invalid message ID provided| +|400|PEER_ID_INVALID|The provided peer id is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| + + diff --git a/old_docs/API_docs_v97/methods/messages.sendInlineBotResult.md b/old_docs/API_docs_v97/methods/messages.sendInlineBotResult.md index 619a4642..9e34a816 100644 --- a/old_docs/API_docs_v97/methods/messages.sendInlineBotResult.md +++ b/old_docs/API_docs_v97/methods/messages.sendInlineBotResult.md @@ -54,8 +54,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf | Code | Type | Description | |------|----------|---------------| +|400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|CHAT_RESTRICTED|You can't send messages in this chat, you were restricted| |400|INLINE_RESULT_EXPIRED|The inline query expired| +|400|MEDIA_EMPTY|The provided media object is invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|QUERY_ID_EMPTY|The query ID is empty| |400|RESULT_ID_EMPTY|Result ID empty| @@ -63,8 +66,11 @@ Updates = messages.sendInlineBotResult({silent=Bool, background=Bool, clear_draf |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_INLINE_FORBIDDEN|You can't send inline messages in this group| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| +|-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v97/methods/messages.sendMedia.md b/old_docs/API_docs_v97/methods/messages.sendMedia.md index 20fccfa0..e9cbe5ed 100644 --- a/old_docs/API_docs_v97/methods/messages.sendMedia.md +++ b/old_docs/API_docs_v97/methods/messages.sendMedia.md @@ -106,6 +106,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |------|----------|---------------| |400|BUTTON_DATA_INVALID|The data of one or more of the buttons you provided is invalid| |400|BUTTON_TYPE_INVALID|The type of one or more of the buttons you provided is invalid| +|400|BUTTON_URL_INVALID|Button URL invalid| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| @@ -124,15 +125,22 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|PHOTO_INVALID_DIMENSIONS|The photo dimensions are invalid| |400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| +|400|POLL_ANSWERS_INVALID|Invalid poll answers were provided| +|400|POLL_OPTION_DUPLICATE|Duplicate poll options provided| +|400|QUIZ_CORRECT_ANSWERS_EMPTY|No correct quiz answer was specified| |400|REPLY_MARKUP_BUY_EMPTY|Reply markup for buy button empty| +|400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|400|TTL_MEDIA_INVALID|Invalid media Time To Live was provided| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| |400|USER_IS_BOT|Bots can't send messages to other bots| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| |400|WEBPAGE_MEDIA_EMPTY|Webpage media empty| |400|YOU_BLOCKED_USER|You blocked this user| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_SEND_GIFS_FORBIDDEN|You can't send gifs in this chat| |403|CHAT_SEND_MEDIA_FORBIDDEN|You can't send media in this chat| +|403|CHAT_SEND_STICKERS_FORBIDDEN|You can't send stickers in this chat.| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| |420|SLOWMODE_WAIT_X|Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v97/methods/messages.sendMessage.md b/old_docs/API_docs_v97/methods/messages.sendMessage.md index 818444ff..db8ee22a 100644 --- a/old_docs/API_docs_v97/methods/messages.sendMessage.md +++ b/old_docs/API_docs_v97/methods/messages.sendMessage.md @@ -122,6 +122,7 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MESSAGE_TOO_LONG|The provided message is too long| |400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|SCHEDULE_BOT_NOT_ALLOWED|Bots cannot schedule messages| |400|SCHEDULE_TOO_MUCH|There are too many scheduled messages| diff --git a/old_docs/API_docs_v97/methods/messages.setInlineBotResults.md b/old_docs/API_docs_v97/methods/messages.setInlineBotResults.md index 9cded9d9..5f01e56a 100644 --- a/old_docs/API_docs_v97/methods/messages.setInlineBotResults.md +++ b/old_docs/API_docs_v97/methods/messages.setInlineBotResults.md @@ -65,6 +65,7 @@ Bool = messages.setInlineBotResults({gallery=Bool, private=Bool, query_id=long, |400|QUERY_ID_INVALID|The query ID is invalid| |400|REPLY_MARKUP_INVALID|The provided reply markup is invalid| |400|RESULT_TYPE_INVALID|Result type invalid| +|400|RESULTS_TOO_MUCH|Too many results were provided| |400|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| |400|START_PARAM_INVALID|Start parameter invalid| |400|WEBDOCUMENT_SIZE_TOO_BIG|Webdocument is too big!| diff --git a/old_docs/API_docs_v97/methods/messages.setTyping.md b/old_docs/API_docs_v97/methods/messages.setTyping.md index cfb8026a..d49a87d5 100644 --- a/old_docs/API_docs_v97/methods/messages.setTyping.md +++ b/old_docs/API_docs_v97/methods/messages.setTyping.md @@ -53,6 +53,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| |400|CHAT_ID_INVALID|The provided chat id is invalid| |400|INPUT_USER_DEACTIVATED|The specified user was deleted| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| |400|USER_IS_BLOCKED|You were blocked by this user| diff --git a/old_docs/API_docs_v97/methods/messages.uploadMedia.md b/old_docs/API_docs_v97/methods/messages.uploadMedia.md index a3f7b695..ed2e774a 100644 --- a/old_docs/API_docs_v97/methods/messages.uploadMedia.md +++ b/old_docs/API_docs_v97/methods/messages.uploadMedia.md @@ -50,9 +50,11 @@ MessageMedia = messages.uploadMedia({peer=InputPeer, media=InputMedia, }) |------|----------|---------------| |400|BOT_MISSING|This method can only be run by a bot| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|400|IMAGE_PROCESS_FAILED|Failure while processing image| |400|MEDIA_INVALID|Media invalid| |400|PEER_ID_INVALID|The provided peer id is invalid| |400|PHOTO_EXT_INVALID|The extension of the photo is invalid| |400|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v97/methods/upload.getFile.md b/old_docs/API_docs_v97/methods/upload.getFile.md index 5a5f7d71..166eb65e 100644 --- a/old_docs/API_docs_v97/methods/upload.getFile.md +++ b/old_docs/API_docs_v97/methods/upload.getFile.md @@ -55,6 +55,7 @@ upload.File = upload.getFile({location=InputFileLocation, offset=int, limit=int, |400|LOCATION_INVALID|The provided location is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |400|OFFSET_INVALID|The provided offset is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |406|FILEREF_UPGRADE_NEEDED|The client has to be updated in order to support [file references](https://core.telegram.org/api/file_reference)| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v97/methods/upload.saveBigFilePart.md b/old_docs/API_docs_v97/methods/upload.saveBigFilePart.md index de20f2e0..eddb9552 100644 --- a/old_docs/API_docs_v97/methods/upload.saveBigFilePart.md +++ b/old_docs/API_docs_v97/methods/upload.saveBigFilePart.md @@ -55,6 +55,7 @@ Bool = upload.saveBigFilePart({file_id=long, file_part=int, file_total_parts=int |400|FILE_PART_SIZE_CHANGED|Provided file part size has changed| |400|FILE_PART_SIZE_INVALID|The provided file part size is invalid| |400|FILE_PARTS_INVALID|The number of file parts is invalid| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |-503|Timeout|Timeout while fetching data| diff --git a/old_docs/API_docs_v97/methods/upload.saveFilePart.md b/old_docs/API_docs_v97/methods/upload.saveFilePart.md index 11efafe6..4f486043 100644 --- a/old_docs/API_docs_v97/methods/upload.saveFilePart.md +++ b/old_docs/API_docs_v97/methods/upload.saveFilePart.md @@ -52,6 +52,7 @@ Bool = upload.saveFilePart({file_id=long, file_part=int, bytes='bytes', }) |400|FILE_PART_EMPTY|The provided file part is empty| |400|FILE_PART_INVALID|The file part number is invalid| |400|INPUT_FETCH_FAIL|Failed deserializing TL payload| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v97/methods/users.getUsers.md b/old_docs/API_docs_v97/methods/users.getUsers.md index 94d3dfda..7e0957e7 100644 --- a/old_docs/API_docs_v97/methods/users.getUsers.md +++ b/old_docs/API_docs_v97/methods/users.getUsers.md @@ -47,6 +47,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|400|INPUT_LAYER_INVALID|The provided layer is invalid| |400|MSG_ID_INVALID|Invalid message ID provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |401|AUTH_KEY_PERM_EMPTY|The temporary auth key must be binded to the permanent auth key to use these methods.|