From acdcb1ab5446e148c7476c36b6db9265a47e5bec Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 29 Oct 2019 19:02:30 +0100 Subject: [PATCH] Add missing errors --- docs/API_docs/methods/auth_resendCode.md | 2 ++ docs/API_docs/methods/channels_createChannel.md | 1 + docs/API_docs/methods/channels_deleteUserHistory.md | 1 + docs/API_docs/methods/channels_getAdminLog.md | 1 + docs/API_docs/methods/channels_getChannels.md | 1 + docs/API_docs/methods/channels_getFullChannel.md | 1 + docs/API_docs/methods/channels_joinChannel.md | 2 ++ docs/API_docs/methods/channels_readHistory.md | 1 + docs/API_docs/methods/contacts_acceptContact.md | 7 +++++++ docs/API_docs/methods/contacts_addContact.md | 1 + docs/API_docs/methods/help_getUserInfo.md | 7 +++++++ docs/API_docs/methods/messages_checkChatInvite.md | 1 + docs/API_docs/methods/messages_editChatAbout.md | 1 + .../methods/messages_editChatDefaultBannedRights.md | 1 + docs/API_docs/methods/messages_forwardMessages.md | 1 + docs/API_docs/methods/messages_sendMedia.md | 3 ++- .../API_docs/methods/messages_sendScheduledMessages.md | 7 +++++++ docs/API_docs/methods/messages_setTyping.md | 1 + docs/API_docs/methods/updates_getChannelDifference.md | 3 ++- docs/API_docs/methods/users_getUsers.md | 1 + docs/index.md | 10 ++++------ old_docs/API_docs_v100/methods/auth_resendCode.md | 2 ++ .../API_docs_v100/methods/channels_createChannel.md | 1 + .../methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v100/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v100/methods/channels_getChannels.md | 1 + .../API_docs_v100/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v100/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v100/methods/channels_readHistory.md | 1 + old_docs/API_docs_v100/methods/help_getUserInfo.md | 7 +++++++ .../API_docs_v100/methods/messages_checkChatInvite.md | 1 + .../API_docs_v100/methods/messages_editChatAbout.md | 1 + .../methods/messages_editChatDefaultBannedRights.md | 1 + .../API_docs_v100/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v100/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v100/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v100/methods/users_getUsers.md | 1 + old_docs/API_docs_v102/methods/auth_resendCode.md | 2 ++ .../API_docs_v102/methods/channels_createChannel.md | 1 + .../methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v102/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v102/methods/channels_getChannels.md | 1 + .../API_docs_v102/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v102/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v102/methods/channels_readHistory.md | 1 + .../API_docs_v102/methods/contacts_acceptContact.md | 7 +++++++ old_docs/API_docs_v102/methods/contacts_addContact.md | 1 + old_docs/API_docs_v102/methods/help_getUserInfo.md | 7 +++++++ .../API_docs_v102/methods/messages_checkChatInvite.md | 1 + .../API_docs_v102/methods/messages_editChatAbout.md | 1 + .../methods/messages_editChatDefaultBannedRights.md | 1 + .../API_docs_v102/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v102/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v102/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v102/methods/users_getUsers.md | 1 + old_docs/API_docs_v103/methods/auth_resendCode.md | 2 ++ .../API_docs_v103/methods/channels_createChannel.md | 1 + .../methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v103/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v103/methods/channels_getChannels.md | 1 + .../API_docs_v103/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v103/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v103/methods/channels_readHistory.md | 1 + .../API_docs_v103/methods/contacts_acceptContact.md | 7 +++++++ old_docs/API_docs_v103/methods/contacts_addContact.md | 1 + old_docs/API_docs_v103/methods/help_getUserInfo.md | 7 +++++++ .../API_docs_v103/methods/messages_checkChatInvite.md | 1 + .../API_docs_v103/methods/messages_editChatAbout.md | 1 + .../methods/messages_editChatDefaultBannedRights.md | 1 + .../API_docs_v103/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v103/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v103/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v103/methods/users_getUsers.md | 1 + old_docs/API_docs_v104/methods/auth_resendCode.md | 2 ++ .../API_docs_v104/methods/channels_createChannel.md | 1 + .../methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v104/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v104/methods/channels_getChannels.md | 1 + .../API_docs_v104/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v104/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v104/methods/channels_readHistory.md | 1 + .../API_docs_v104/methods/contacts_acceptContact.md | 7 +++++++ old_docs/API_docs_v104/methods/contacts_addContact.md | 1 + old_docs/API_docs_v104/methods/help_getUserInfo.md | 7 +++++++ .../API_docs_v104/methods/messages_checkChatInvite.md | 1 + .../API_docs_v104/methods/messages_editChatAbout.md | 1 + .../methods/messages_editChatDefaultBannedRights.md | 1 + .../API_docs_v104/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v104/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v104/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v104/methods/users_getUsers.md | 1 + old_docs/API_docs_v105/methods/auth_resendCode.md | 2 ++ .../API_docs_v105/methods/channels_createChannel.md | 1 + .../methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v105/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v105/methods/channels_getChannels.md | 1 + .../API_docs_v105/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v105/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v105/methods/channels_readHistory.md | 1 + .../API_docs_v105/methods/contacts_acceptContact.md | 7 +++++++ old_docs/API_docs_v105/methods/contacts_addContact.md | 1 + old_docs/API_docs_v105/methods/help_getUserInfo.md | 7 +++++++ .../API_docs_v105/methods/messages_checkChatInvite.md | 1 + .../API_docs_v105/methods/messages_editChatAbout.md | 1 + .../methods/messages_editChatDefaultBannedRights.md | 1 + .../API_docs_v105/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v105/methods/messages_sendMedia.md | 3 ++- .../methods/messages_sendScheduledMessages.md | 7 +++++++ old_docs/API_docs_v105/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v105/methods/users_getUsers.md | 1 + .../API_docs_v18/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v18/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v18/methods/messages_setTyping.md | 1 + old_docs/API_docs_v18/methods/users_getUsers.md | 1 + .../API_docs_v23/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v23/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v23/methods/messages_setTyping.md | 1 + old_docs/API_docs_v23/methods/users_getUsers.md | 1 + .../API_docs_v25/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v25/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v25/methods/messages_setTyping.md | 1 + old_docs/API_docs_v25/methods/users_getUsers.md | 1 + .../API_docs_v27/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v27/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v27/methods/messages_setTyping.md | 1 + old_docs/API_docs_v27/methods/users_getUsers.md | 1 + .../API_docs_v33/methods/messages_checkChatInvite.md | 1 + .../API_docs_v33/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v33/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v33/methods/messages_setTyping.md | 1 + old_docs/API_docs_v33/methods/users_getUsers.md | 1 + .../API_docs_v38/methods/channels_createChannel.md | 1 + .../API_docs_v38/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v38/methods/channels_getChannels.md | 1 + .../API_docs_v38/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v38/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v38/methods/channels_readHistory.md | 1 + .../API_docs_v38/methods/messages_checkChatInvite.md | 1 + .../API_docs_v38/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v38/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v38/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v38/methods/users_getUsers.md | 1 + .../API_docs_v40/methods/messages_checkChatInvite.md | 1 + .../API_docs_v40/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v40/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v40/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v40/methods/users_getUsers.md | 1 + .../API_docs_v41/methods/channels_createChannel.md | 1 + .../API_docs_v41/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v41/methods/channels_getChannels.md | 1 + .../API_docs_v41/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v41/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v41/methods/channels_readHistory.md | 1 + .../API_docs_v41/methods/messages_checkChatInvite.md | 1 + .../API_docs_v41/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v41/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v41/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v41/methods/users_getUsers.md | 1 + .../API_docs_v42/methods/channels_createChannel.md | 1 + .../API_docs_v42/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v42/methods/channels_getChannels.md | 1 + .../API_docs_v42/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v42/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v42/methods/channels_readHistory.md | 1 + .../API_docs_v42/methods/messages_checkChatInvite.md | 1 + .../API_docs_v42/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v42/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v42/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v42/methods/users_getUsers.md | 1 + .../API_docs_v44/methods/channels_createChannel.md | 1 + .../API_docs_v44/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v44/methods/channels_getChannels.md | 1 + .../API_docs_v44/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v44/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v44/methods/channels_readHistory.md | 1 + .../API_docs_v44/methods/messages_checkChatInvite.md | 1 + .../API_docs_v44/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v44/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v44/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v44/methods/users_getUsers.md | 1 + .../API_docs_v45/methods/channels_createChannel.md | 1 + .../API_docs_v45/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v45/methods/channels_getChannels.md | 1 + .../API_docs_v45/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v45/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v45/methods/channels_readHistory.md | 1 + .../API_docs_v45/methods/messages_checkChatInvite.md | 1 + .../API_docs_v45/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v45/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v45/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v45/methods/users_getUsers.md | 1 + .../API_docs_v46/methods/channels_createChannel.md | 1 + .../API_docs_v46/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v46/methods/channels_getChannels.md | 1 + .../API_docs_v46/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v46/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v46/methods/channels_readHistory.md | 1 + .../API_docs_v46/methods/messages_checkChatInvite.md | 1 + .../API_docs_v46/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v46/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v46/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v46/methods/users_getUsers.md | 1 + old_docs/API_docs_v51/methods/auth_resendCode.md | 2 ++ .../API_docs_v51/methods/channels_createChannel.md | 1 + .../API_docs_v51/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v51/methods/channels_getChannels.md | 1 + .../API_docs_v51/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v51/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v51/methods/channels_readHistory.md | 1 + .../API_docs_v51/methods/messages_checkChatInvite.md | 1 + .../API_docs_v51/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v51/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v51/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v51/methods/users_getUsers.md | 1 + old_docs/API_docs_v53/methods/auth_resendCode.md | 2 ++ .../API_docs_v53/methods/channels_createChannel.md | 1 + .../API_docs_v53/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v53/methods/channels_getChannels.md | 1 + .../API_docs_v53/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v53/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v53/methods/channels_readHistory.md | 1 + .../API_docs_v53/methods/messages_checkChatInvite.md | 1 + .../API_docs_v53/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v53/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v53/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v53/methods/users_getUsers.md | 1 + old_docs/API_docs_v55/methods/auth_resendCode.md | 2 ++ .../API_docs_v55/methods/channels_createChannel.md | 1 + .../API_docs_v55/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v55/methods/channels_getChannels.md | 1 + .../API_docs_v55/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v55/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v55/methods/channels_readHistory.md | 1 + .../API_docs_v55/methods/messages_checkChatInvite.md | 1 + .../API_docs_v55/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v55/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v55/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v55/methods/users_getUsers.md | 1 + old_docs/API_docs_v57/methods/auth_resendCode.md | 2 ++ .../API_docs_v57/methods/channels_createChannel.md | 1 + .../API_docs_v57/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v57/methods/channels_getChannels.md | 1 + .../API_docs_v57/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v57/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v57/methods/channels_readHistory.md | 1 + .../API_docs_v57/methods/messages_checkChatInvite.md | 1 + .../API_docs_v57/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v57/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v57/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v57/methods/users_getUsers.md | 1 + old_docs/API_docs_v62/methods/auth_resendCode.md | 2 ++ .../API_docs_v62/methods/channels_createChannel.md | 1 + .../API_docs_v62/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v62/methods/channels_getChannels.md | 1 + .../API_docs_v62/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v62/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v62/methods/channels_readHistory.md | 1 + .../API_docs_v62/methods/messages_checkChatInvite.md | 1 + .../API_docs_v62/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v62/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v62/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v62/methods/users_getUsers.md | 1 + old_docs/API_docs_v65/methods/auth_resendCode.md | 2 ++ .../API_docs_v65/methods/channels_createChannel.md | 1 + .../API_docs_v65/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v65/methods/channels_getChannels.md | 1 + .../API_docs_v65/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v65/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v65/methods/channels_readHistory.md | 1 + .../API_docs_v65/methods/messages_checkChatInvite.md | 1 + .../API_docs_v65/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v65/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v65/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v65/methods/users_getUsers.md | 1 + old_docs/API_docs_v66/methods/auth_resendCode.md | 2 ++ .../API_docs_v66/methods/channels_createChannel.md | 1 + .../API_docs_v66/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v66/methods/channels_getChannels.md | 1 + .../API_docs_v66/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v66/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v66/methods/channels_readHistory.md | 1 + .../API_docs_v66/methods/messages_checkChatInvite.md | 1 + .../API_docs_v66/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v66/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v66/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v66/methods/users_getUsers.md | 1 + old_docs/API_docs_v68/methods/auth_resendCode.md | 2 ++ .../API_docs_v68/methods/channels_createChannel.md | 1 + .../API_docs_v68/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v68/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v68/methods/channels_getChannels.md | 1 + .../API_docs_v68/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v68/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v68/methods/channels_readHistory.md | 1 + .../API_docs_v68/methods/messages_checkChatInvite.md | 1 + .../API_docs_v68/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v68/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v68/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v68/methods/users_getUsers.md | 1 + old_docs/API_docs_v70/methods/auth_resendCode.md | 2 ++ .../API_docs_v70/methods/channels_createChannel.md | 1 + .../API_docs_v70/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v70/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v70/methods/channels_getChannels.md | 1 + .../API_docs_v70/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v70/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v70/methods/channels_readHistory.md | 1 + .../API_docs_v70/methods/messages_checkChatInvite.md | 1 + .../API_docs_v70/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v70/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v70/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v70/methods/users_getUsers.md | 1 + old_docs/API_docs_v71/methods/auth_resendCode.md | 2 ++ .../API_docs_v71/methods/channels_createChannel.md | 1 + .../API_docs_v71/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v71/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v71/methods/channels_getChannels.md | 1 + .../API_docs_v71/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v71/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v71/methods/channels_readHistory.md | 1 + .../API_docs_v71/methods/messages_checkChatInvite.md | 1 + .../API_docs_v71/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v71/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v71/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v71/methods/users_getUsers.md | 1 + old_docs/API_docs_v72/methods/auth_resendCode.md | 2 ++ .../API_docs_v72/methods/channels_createChannel.md | 1 + .../API_docs_v72/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v72/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v72/methods/channels_getChannels.md | 1 + .../API_docs_v72/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v72/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v72/methods/channels_readHistory.md | 1 + .../API_docs_v72/methods/messages_checkChatInvite.md | 1 + .../API_docs_v72/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v72/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v72/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v72/methods/users_getUsers.md | 1 + old_docs/API_docs_v73/methods/auth_resendCode.md | 2 ++ .../API_docs_v73/methods/channels_createChannel.md | 1 + .../API_docs_v73/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v73/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v73/methods/channels_getChannels.md | 1 + .../API_docs_v73/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v73/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v73/methods/channels_readHistory.md | 1 + .../API_docs_v73/methods/messages_checkChatInvite.md | 1 + .../API_docs_v73/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v73/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v73/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v73/methods/users_getUsers.md | 1 + old_docs/API_docs_v75/methods/auth_resendCode.md | 2 ++ .../API_docs_v75/methods/channels_createChannel.md | 1 + .../API_docs_v75/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v75/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v75/methods/channels_getChannels.md | 1 + .../API_docs_v75/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v75/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v75/methods/channels_readHistory.md | 1 + .../API_docs_v75/methods/messages_checkChatInvite.md | 1 + .../API_docs_v75/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v75/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v75/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v75/methods/users_getUsers.md | 1 + old_docs/API_docs_v81/methods/auth_resendCode.md | 2 ++ .../API_docs_v81/methods/channels_createChannel.md | 1 + .../API_docs_v81/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v81/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v81/methods/channels_getChannels.md | 1 + .../API_docs_v81/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v81/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v81/methods/channels_readHistory.md | 1 + .../API_docs_v81/methods/messages_checkChatInvite.md | 1 + .../API_docs_v81/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v81/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v81/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v81/methods/users_getUsers.md | 1 + old_docs/API_docs_v82/methods/auth_resendCode.md | 2 ++ .../API_docs_v82/methods/channels_createChannel.md | 1 + .../API_docs_v82/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v82/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v82/methods/channels_getChannels.md | 1 + .../API_docs_v82/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v82/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v82/methods/channels_readHistory.md | 1 + .../API_docs_v82/methods/messages_checkChatInvite.md | 1 + .../API_docs_v82/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v82/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v82/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v82/methods/users_getUsers.md | 1 + old_docs/API_docs_v86/methods/auth_resendCode.md | 2 ++ .../API_docs_v86/methods/channels_createChannel.md | 1 + .../API_docs_v86/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v86/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v86/methods/channels_getChannels.md | 1 + .../API_docs_v86/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v86/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v86/methods/channels_readHistory.md | 1 + .../API_docs_v86/methods/messages_checkChatInvite.md | 1 + .../API_docs_v86/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v86/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v86/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v86/methods/users_getUsers.md | 1 + old_docs/API_docs_v89/methods/auth_resendCode.md | 2 ++ .../API_docs_v89/methods/channels_createChannel.md | 1 + .../API_docs_v89/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v89/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v89/methods/channels_getChannels.md | 1 + .../API_docs_v89/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v89/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v89/methods/channels_readHistory.md | 1 + old_docs/API_docs_v89/methods/help_getUserInfo.md | 7 +++++++ .../API_docs_v89/methods/messages_checkChatInvite.md | 1 + .../API_docs_v89/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v89/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v89/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v89/methods/users_getUsers.md | 1 + old_docs/API_docs_v91/methods/auth_resendCode.md | 2 ++ .../API_docs_v91/methods/channels_createChannel.md | 1 + .../API_docs_v91/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v91/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v91/methods/channels_getChannels.md | 1 + .../API_docs_v91/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v91/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v91/methods/channels_readHistory.md | 1 + old_docs/API_docs_v91/methods/help_getUserInfo.md | 7 +++++++ .../API_docs_v91/methods/messages_checkChatInvite.md | 1 + .../API_docs_v91/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v91/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v91/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v91/methods/users_getUsers.md | 1 + old_docs/API_docs_v95/methods/auth_resendCode.md | 2 ++ .../API_docs_v95/methods/channels_createChannel.md | 1 + .../API_docs_v95/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v95/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v95/methods/channels_getChannels.md | 1 + .../API_docs_v95/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v95/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v95/methods/channels_readHistory.md | 1 + old_docs/API_docs_v95/methods/help_getUserInfo.md | 7 +++++++ .../API_docs_v95/methods/messages_checkChatInvite.md | 1 + .../API_docs_v95/methods/messages_editChatAbout.md | 1 + .../methods/messages_editChatDefaultBannedRights.md | 1 + .../API_docs_v95/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v95/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v95/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v95/methods/users_getUsers.md | 1 + old_docs/API_docs_v97/methods/auth_resendCode.md | 2 ++ .../API_docs_v97/methods/channels_createChannel.md | 1 + .../API_docs_v97/methods/channels_deleteUserHistory.md | 1 + old_docs/API_docs_v97/methods/channels_getAdminLog.md | 1 + old_docs/API_docs_v97/methods/channels_getChannels.md | 1 + .../API_docs_v97/methods/channels_getFullChannel.md | 1 + old_docs/API_docs_v97/methods/channels_joinChannel.md | 2 ++ old_docs/API_docs_v97/methods/channels_readHistory.md | 1 + old_docs/API_docs_v97/methods/help_getUserInfo.md | 7 +++++++ .../API_docs_v97/methods/messages_checkChatInvite.md | 1 + .../API_docs_v97/methods/messages_editChatAbout.md | 1 + .../methods/messages_editChatDefaultBannedRights.md | 1 + .../API_docs_v97/methods/messages_forwardMessages.md | 1 + old_docs/API_docs_v97/methods/messages_sendMedia.md | 3 ++- old_docs/API_docs_v97/methods/messages_setTyping.md | 1 + .../methods/updates_getChannelDifference.md | 3 ++- old_docs/API_docs_v97/methods/users_getUsers.md | 1 + 495 files changed, 729 insertions(+), 77 deletions(-) diff --git a/docs/API_docs/methods/auth_resendCode.md b/docs/API_docs/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/docs/API_docs/methods/auth_resendCode.md +++ b/docs/API_docs/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/docs/API_docs/methods/channels_createChannel.md b/docs/API_docs/methods/channels_createChannel.md index 9f547934..b644a60b 100644 --- a/docs/API_docs/methods/channels_createChannel.md +++ b/docs/API_docs/methods/channels_createChannel.md @@ -51,6 +51,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/docs/API_docs/methods/channels_deleteUserHistory.md b/docs/API_docs/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/docs/API_docs/methods/channels_deleteUserHistory.md +++ b/docs/API_docs/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/docs/API_docs/methods/channels_getAdminLog.md b/docs/API_docs/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/docs/API_docs/methods/channels_getAdminLog.md +++ b/docs/API_docs/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/docs/API_docs/methods/channels_getChannels.md +++ b/docs/API_docs/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/docs/API_docs/methods/channels_getFullChannel.md b/docs/API_docs/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/docs/API_docs/methods/channels_getFullChannel.md +++ b/docs/API_docs/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/docs/API_docs/methods/channels_joinChannel.md +++ b/docs/API_docs/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/docs/API_docs/methods/channels_readHistory.md b/docs/API_docs/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/docs/API_docs/methods/channels_readHistory.md +++ b/docs/API_docs/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/docs/API_docs/methods/contacts_acceptContact.md b/docs/API_docs/methods/contacts_acceptContact.md index 993def63..d1f00f79 100644 --- a/docs/API_docs/methods/contacts_acceptContact.md +++ b/docs/API_docs/methods/contacts_acceptContact.md @@ -42,3 +42,10 @@ Or, if you're into Lua: Updates = contacts.acceptContact({id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CONTACT_REQ_MISSING|Missing contact request| + + diff --git a/docs/API_docs/methods/contacts_addContact.md b/docs/API_docs/methods/contacts_addContact.md index 80f540bb..3f0769d8 100644 --- a/docs/API_docs/methods/contacts_addContact.md +++ b/docs/API_docs/methods/contacts_addContact.md @@ -51,5 +51,6 @@ Updates = contacts.addContact({add_phone_privacy_exception=Bool, id=InputUser, f | Code | Type | Description | |------|----------|---------------| |400|CONTACT_ID_INVALID|The provided contact ID is invalid| +|400|CONTACT_NAME_EMPTY|Contact name empty| diff --git a/docs/API_docs/methods/help_getUserInfo.md b/docs/API_docs/methods/help_getUserInfo.md index 641fa986..8ba40223 100644 --- a/docs/API_docs/methods/help_getUserInfo.md +++ b/docs/API_docs/methods/help_getUserInfo.md @@ -42,3 +42,10 @@ Or, if you're into Lua: help_UserInfo = help.getUserInfo({user_id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|USER_INVALID|Invalid user provided| + + diff --git a/docs/API_docs/methods/messages_checkChatInvite.md b/docs/API_docs/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/docs/API_docs/methods/messages_checkChatInvite.md +++ b/docs/API_docs/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/docs/API_docs/methods/messages_editChatAbout.md b/docs/API_docs/methods/messages_editChatAbout.md index 05fff24f..19cb898b 100644 --- a/docs/API_docs/methods/messages_editChatAbout.md +++ b/docs/API_docs/methods/messages_editChatAbout.md @@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| |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_editChatDefaultBannedRights.md b/docs/API_docs/methods/messages_editChatDefaultBannedRights.md index a8e075eb..e631fa3b 100644 --- a/docs/API_docs/methods/messages_editChatDefaultBannedRights.md +++ b/docs/API_docs/methods/messages_editChatDefaultBannedRights.md @@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch | Code | Type | Description | |------|----------|---------------| |400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights| +|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/docs/API_docs/methods/messages_forwardMessages.md b/docs/API_docs/methods/messages_forwardMessages.md index c8dc4a6f..b362bda2 100644 --- a/docs/API_docs/methods/messages_forwardMessages.md +++ b/docs/API_docs/methods/messages_forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/docs/API_docs/methods/messages_sendMedia.md index fabb4f8e..b3947ce7 100644 --- a/docs/API_docs/methods/messages_sendMedia.md +++ b/docs/API_docs/methods/messages_sendMedia.md @@ -116,10 +116,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/docs/API_docs/methods/messages_sendScheduledMessages.md b/docs/API_docs/methods/messages_sendScheduledMessages.md index 0e75802b..d83b47d4 100644 --- a/docs/API_docs/methods/messages_sendScheduledMessages.md +++ b/docs/API_docs/methods/messages_sendScheduledMessages.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Updates = messages.sendScheduledMessages({peer=InputPeer, id={int}, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| + + diff --git a/docs/API_docs/methods/messages_setTyping.md b/docs/API_docs/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/docs/API_docs/methods/messages_setTyping.md +++ b/docs/API_docs/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/docs/API_docs/methods/updates_getChannelDifference.md b/docs/API_docs/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/docs/API_docs/methods/updates_getChannelDifference.md +++ b/docs/API_docs/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/docs/API_docs/methods/users_getUsers.md b/docs/API_docs/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/docs/API_docs/methods/users_getUsers.md +++ b/docs/API_docs/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/docs/index.md b/docs/index.md index bc65a483..ba2e65cf 100644 --- a/docs/index.md +++ b/docs/index.md @@ -516,12 +516,10 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro ## Very complex and complete examples You can find examples for nearly every MadelineProto function in +* [magnaluna webradio](https://magna.madelineproto.xyz) - Multifeatured Telegram VoIP webradio * [`tests/testing.php`](https://github.com/danog/MadelineProto/blob/master/tests/testing.php) - examples for making/receiving calls, making secret chats, sending secret chat messages, videos, audios, voice recordings, gifs, stickers, photos, sending normal messages, videos, audios, voice recordings, gifs, stickers, photos. -* [`bot.php`](https://github.com/danog/MadelineProto/blob/master/bot.php) - examples for sending normal messages, downloading any media -* [`secret_bot.php`](https://github.com/danog/MadelineProto/blob/master/secret_bot.php) - secret chat bot -* [`magna.php`](https://github.com/danog/MadelineProto/blob/master/magna.php) - examples for receiving calls -* [`userbots/pipesbot.php`](https://github.com/danog/MadelineProto/blob/master/userbots/pipesbot.php) - examples for creating inline bots and using other inline bots via a userbot -* [`userbots/MadelineProto_bot.php`](https://github.com/danog/MadelineProto/blob/master/userbots/MadelineProto_bot.php) - Multi-function bot -* [`userbots/pwrtelegram_debug_bot`](https://github.com/danog/MadelineProto/blob/master/userbots/pwrtelegram_debug_bot.php) - Multi-function bot +* [`bot.php`](https://github.com/danog/MadelineProto/blob/master/examples/bot.php) - examples for sending normal messages, downloading any media +* [`secret_bot.php`](https://github.com/danog/MadelineProto/blob/master/examples/secret_bot.php) - secret chat bot +* [`pipesbot.php`](https://github.com/danog/MadelineProto/blob/master/examples/pipesbot.php) - examples for creating inline bots and using other inline bots via a userbot diff --git a/old_docs/API_docs_v100/methods/auth_resendCode.md b/old_docs/API_docs_v100/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v100/methods/auth_resendCode.md +++ b/old_docs/API_docs_v100/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v100/methods/channels_createChannel.md b/old_docs/API_docs_v100/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v100/methods/channels_createChannel.md +++ b/old_docs/API_docs_v100/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v100/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v100/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v100/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v100/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v100/methods/channels_getAdminLog.md b/old_docs/API_docs_v100/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v100/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v100/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v100/methods/channels_getChannels.md +++ b/old_docs/API_docs_v100/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v100/methods/channels_getFullChannel.md b/old_docs/API_docs_v100/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v100/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v100/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v100/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v100/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v100/methods/channels_readHistory.md b/old_docs/API_docs_v100/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v100/methods/channels_readHistory.md +++ b/old_docs/API_docs_v100/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v100/methods/help_getUserInfo.md b/old_docs/API_docs_v100/methods/help_getUserInfo.md index 641fa986..8ba40223 100644 --- a/old_docs/API_docs_v100/methods/help_getUserInfo.md +++ b/old_docs/API_docs_v100/methods/help_getUserInfo.md @@ -42,3 +42,10 @@ Or, if you're into Lua: help_UserInfo = help.getUserInfo({user_id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|USER_INVALID|Invalid user provided| + + diff --git a/old_docs/API_docs_v100/methods/messages_checkChatInvite.md b/old_docs/API_docs_v100/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v100/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v100/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v100/methods/messages_editChatAbout.md b/old_docs/API_docs_v100/methods/messages_editChatAbout.md index 05fff24f..19cb898b 100644 --- a/old_docs/API_docs_v100/methods/messages_editChatAbout.md +++ b/old_docs/API_docs_v100/methods/messages_editChatAbout.md @@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| |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_editChatDefaultBannedRights.md b/old_docs/API_docs_v100/methods/messages_editChatDefaultBannedRights.md index a8e075eb..e631fa3b 100644 --- a/old_docs/API_docs_v100/methods/messages_editChatDefaultBannedRights.md +++ b/old_docs/API_docs_v100/methods/messages_editChatDefaultBannedRights.md @@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch | Code | Type | Description | |------|----------|---------------| |400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights| +|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v100/methods/messages_forwardMessages.md b/old_docs/API_docs_v100/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v100/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v100/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v100/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v100/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v100/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v100/methods/messages_setTyping.md b/old_docs/API_docs_v100/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v100/methods/messages_setTyping.md +++ b/old_docs/API_docs_v100/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v100/methods/updates_getChannelDifference.md b/old_docs/API_docs_v100/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v100/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v100/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v100/methods/users_getUsers.md b/old_docs/API_docs_v100/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v100/methods/users_getUsers.md +++ b/old_docs/API_docs_v100/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v102/methods/auth_resendCode.md b/old_docs/API_docs_v102/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v102/methods/auth_resendCode.md +++ b/old_docs/API_docs_v102/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v102/methods/channels_createChannel.md b/old_docs/API_docs_v102/methods/channels_createChannel.md index 9f547934..b644a60b 100644 --- a/old_docs/API_docs_v102/methods/channels_createChannel.md +++ b/old_docs/API_docs_v102/methods/channels_createChannel.md @@ -51,6 +51,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v102/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v102/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v102/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v102/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v102/methods/channels_getAdminLog.md b/old_docs/API_docs_v102/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v102/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v102/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v102/methods/channels_getChannels.md +++ b/old_docs/API_docs_v102/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v102/methods/channels_getFullChannel.md b/old_docs/API_docs_v102/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v102/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v102/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v102/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v102/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v102/methods/channels_readHistory.md b/old_docs/API_docs_v102/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v102/methods/channels_readHistory.md +++ b/old_docs/API_docs_v102/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v102/methods/contacts_acceptContact.md b/old_docs/API_docs_v102/methods/contacts_acceptContact.md index 993def63..d1f00f79 100644 --- a/old_docs/API_docs_v102/methods/contacts_acceptContact.md +++ b/old_docs/API_docs_v102/methods/contacts_acceptContact.md @@ -42,3 +42,10 @@ Or, if you're into Lua: Updates = contacts.acceptContact({id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CONTACT_REQ_MISSING|Missing contact request| + + diff --git a/old_docs/API_docs_v102/methods/contacts_addContact.md b/old_docs/API_docs_v102/methods/contacts_addContact.md index 80f540bb..3f0769d8 100644 --- a/old_docs/API_docs_v102/methods/contacts_addContact.md +++ b/old_docs/API_docs_v102/methods/contacts_addContact.md @@ -51,5 +51,6 @@ Updates = contacts.addContact({add_phone_privacy_exception=Bool, id=InputUser, f | Code | Type | Description | |------|----------|---------------| |400|CONTACT_ID_INVALID|The provided contact ID is invalid| +|400|CONTACT_NAME_EMPTY|Contact name empty| diff --git a/old_docs/API_docs_v102/methods/help_getUserInfo.md b/old_docs/API_docs_v102/methods/help_getUserInfo.md index 641fa986..8ba40223 100644 --- a/old_docs/API_docs_v102/methods/help_getUserInfo.md +++ b/old_docs/API_docs_v102/methods/help_getUserInfo.md @@ -42,3 +42,10 @@ Or, if you're into Lua: help_UserInfo = help.getUserInfo({user_id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|USER_INVALID|Invalid user provided| + + diff --git a/old_docs/API_docs_v102/methods/messages_checkChatInvite.md b/old_docs/API_docs_v102/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v102/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v102/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v102/methods/messages_editChatAbout.md b/old_docs/API_docs_v102/methods/messages_editChatAbout.md index 05fff24f..19cb898b 100644 --- a/old_docs/API_docs_v102/methods/messages_editChatAbout.md +++ b/old_docs/API_docs_v102/methods/messages_editChatAbout.md @@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| |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_editChatDefaultBannedRights.md b/old_docs/API_docs_v102/methods/messages_editChatDefaultBannedRights.md index a8e075eb..e631fa3b 100644 --- a/old_docs/API_docs_v102/methods/messages_editChatDefaultBannedRights.md +++ b/old_docs/API_docs_v102/methods/messages_editChatDefaultBannedRights.md @@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch | Code | Type | Description | |------|----------|---------------| |400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights| +|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v102/methods/messages_forwardMessages.md b/old_docs/API_docs_v102/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v102/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v102/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v102/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v102/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v102/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v102/methods/messages_setTyping.md b/old_docs/API_docs_v102/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v102/methods/messages_setTyping.md +++ b/old_docs/API_docs_v102/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v102/methods/updates_getChannelDifference.md b/old_docs/API_docs_v102/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v102/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v102/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v102/methods/users_getUsers.md b/old_docs/API_docs_v102/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v102/methods/users_getUsers.md +++ b/old_docs/API_docs_v102/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v103/methods/auth_resendCode.md b/old_docs/API_docs_v103/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v103/methods/auth_resendCode.md +++ b/old_docs/API_docs_v103/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v103/methods/channels_createChannel.md b/old_docs/API_docs_v103/methods/channels_createChannel.md index 9f547934..b644a60b 100644 --- a/old_docs/API_docs_v103/methods/channels_createChannel.md +++ b/old_docs/API_docs_v103/methods/channels_createChannel.md @@ -51,6 +51,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v103/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v103/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v103/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v103/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v103/methods/channels_getAdminLog.md b/old_docs/API_docs_v103/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v103/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v103/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v103/methods/channels_getChannels.md +++ b/old_docs/API_docs_v103/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v103/methods/channels_getFullChannel.md b/old_docs/API_docs_v103/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v103/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v103/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v103/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v103/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v103/methods/channels_readHistory.md b/old_docs/API_docs_v103/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v103/methods/channels_readHistory.md +++ b/old_docs/API_docs_v103/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v103/methods/contacts_acceptContact.md b/old_docs/API_docs_v103/methods/contacts_acceptContact.md index 993def63..d1f00f79 100644 --- a/old_docs/API_docs_v103/methods/contacts_acceptContact.md +++ b/old_docs/API_docs_v103/methods/contacts_acceptContact.md @@ -42,3 +42,10 @@ Or, if you're into Lua: Updates = contacts.acceptContact({id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CONTACT_REQ_MISSING|Missing contact request| + + diff --git a/old_docs/API_docs_v103/methods/contacts_addContact.md b/old_docs/API_docs_v103/methods/contacts_addContact.md index 80f540bb..3f0769d8 100644 --- a/old_docs/API_docs_v103/methods/contacts_addContact.md +++ b/old_docs/API_docs_v103/methods/contacts_addContact.md @@ -51,5 +51,6 @@ Updates = contacts.addContact({add_phone_privacy_exception=Bool, id=InputUser, f | Code | Type | Description | |------|----------|---------------| |400|CONTACT_ID_INVALID|The provided contact ID is invalid| +|400|CONTACT_NAME_EMPTY|Contact name empty| diff --git a/old_docs/API_docs_v103/methods/help_getUserInfo.md b/old_docs/API_docs_v103/methods/help_getUserInfo.md index 641fa986..8ba40223 100644 --- a/old_docs/API_docs_v103/methods/help_getUserInfo.md +++ b/old_docs/API_docs_v103/methods/help_getUserInfo.md @@ -42,3 +42,10 @@ Or, if you're into Lua: help_UserInfo = help.getUserInfo({user_id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|USER_INVALID|Invalid user provided| + + diff --git a/old_docs/API_docs_v103/methods/messages_checkChatInvite.md b/old_docs/API_docs_v103/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v103/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v103/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v103/methods/messages_editChatAbout.md b/old_docs/API_docs_v103/methods/messages_editChatAbout.md index 05fff24f..19cb898b 100644 --- a/old_docs/API_docs_v103/methods/messages_editChatAbout.md +++ b/old_docs/API_docs_v103/methods/messages_editChatAbout.md @@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| |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_editChatDefaultBannedRights.md b/old_docs/API_docs_v103/methods/messages_editChatDefaultBannedRights.md index a8e075eb..e631fa3b 100644 --- a/old_docs/API_docs_v103/methods/messages_editChatDefaultBannedRights.md +++ b/old_docs/API_docs_v103/methods/messages_editChatDefaultBannedRights.md @@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch | Code | Type | Description | |------|----------|---------------| |400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights| +|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v103/methods/messages_forwardMessages.md b/old_docs/API_docs_v103/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v103/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v103/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v103/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v103/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v103/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v103/methods/messages_setTyping.md b/old_docs/API_docs_v103/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v103/methods/messages_setTyping.md +++ b/old_docs/API_docs_v103/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v103/methods/updates_getChannelDifference.md b/old_docs/API_docs_v103/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v103/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v103/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v103/methods/users_getUsers.md b/old_docs/API_docs_v103/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v103/methods/users_getUsers.md +++ b/old_docs/API_docs_v103/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v104/methods/auth_resendCode.md b/old_docs/API_docs_v104/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v104/methods/auth_resendCode.md +++ b/old_docs/API_docs_v104/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v104/methods/channels_createChannel.md b/old_docs/API_docs_v104/methods/channels_createChannel.md index 9f547934..b644a60b 100644 --- a/old_docs/API_docs_v104/methods/channels_createChannel.md +++ b/old_docs/API_docs_v104/methods/channels_createChannel.md @@ -51,6 +51,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v104/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v104/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v104/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v104/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v104/methods/channels_getAdminLog.md b/old_docs/API_docs_v104/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v104/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v104/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v104/methods/channels_getChannels.md +++ b/old_docs/API_docs_v104/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v104/methods/channels_getFullChannel.md b/old_docs/API_docs_v104/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v104/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v104/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v104/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v104/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v104/methods/channels_readHistory.md b/old_docs/API_docs_v104/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v104/methods/channels_readHistory.md +++ b/old_docs/API_docs_v104/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v104/methods/contacts_acceptContact.md b/old_docs/API_docs_v104/methods/contacts_acceptContact.md index 993def63..d1f00f79 100644 --- a/old_docs/API_docs_v104/methods/contacts_acceptContact.md +++ b/old_docs/API_docs_v104/methods/contacts_acceptContact.md @@ -42,3 +42,10 @@ Or, if you're into Lua: Updates = contacts.acceptContact({id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CONTACT_REQ_MISSING|Missing contact request| + + diff --git a/old_docs/API_docs_v104/methods/contacts_addContact.md b/old_docs/API_docs_v104/methods/contacts_addContact.md index 80f540bb..3f0769d8 100644 --- a/old_docs/API_docs_v104/methods/contacts_addContact.md +++ b/old_docs/API_docs_v104/methods/contacts_addContact.md @@ -51,5 +51,6 @@ Updates = contacts.addContact({add_phone_privacy_exception=Bool, id=InputUser, f | Code | Type | Description | |------|----------|---------------| |400|CONTACT_ID_INVALID|The provided contact ID is invalid| +|400|CONTACT_NAME_EMPTY|Contact name empty| diff --git a/old_docs/API_docs_v104/methods/help_getUserInfo.md b/old_docs/API_docs_v104/methods/help_getUserInfo.md index 641fa986..8ba40223 100644 --- a/old_docs/API_docs_v104/methods/help_getUserInfo.md +++ b/old_docs/API_docs_v104/methods/help_getUserInfo.md @@ -42,3 +42,10 @@ Or, if you're into Lua: help_UserInfo = help.getUserInfo({user_id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|USER_INVALID|Invalid user provided| + + diff --git a/old_docs/API_docs_v104/methods/messages_checkChatInvite.md b/old_docs/API_docs_v104/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v104/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v104/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v104/methods/messages_editChatAbout.md b/old_docs/API_docs_v104/methods/messages_editChatAbout.md index 05fff24f..19cb898b 100644 --- a/old_docs/API_docs_v104/methods/messages_editChatAbout.md +++ b/old_docs/API_docs_v104/methods/messages_editChatAbout.md @@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| |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_editChatDefaultBannedRights.md b/old_docs/API_docs_v104/methods/messages_editChatDefaultBannedRights.md index a8e075eb..e631fa3b 100644 --- a/old_docs/API_docs_v104/methods/messages_editChatDefaultBannedRights.md +++ b/old_docs/API_docs_v104/methods/messages_editChatDefaultBannedRights.md @@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch | Code | Type | Description | |------|----------|---------------| |400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights| +|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v104/methods/messages_forwardMessages.md b/old_docs/API_docs_v104/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v104/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v104/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v104/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v104/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v104/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v104/methods/messages_setTyping.md b/old_docs/API_docs_v104/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v104/methods/messages_setTyping.md +++ b/old_docs/API_docs_v104/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v104/methods/updates_getChannelDifference.md b/old_docs/API_docs_v104/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v104/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v104/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v104/methods/users_getUsers.md b/old_docs/API_docs_v104/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v104/methods/users_getUsers.md +++ b/old_docs/API_docs_v104/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v105/methods/auth_resendCode.md b/old_docs/API_docs_v105/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v105/methods/auth_resendCode.md +++ b/old_docs/API_docs_v105/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v105/methods/channels_createChannel.md b/old_docs/API_docs_v105/methods/channels_createChannel.md index 9f547934..b644a60b 100644 --- a/old_docs/API_docs_v105/methods/channels_createChannel.md +++ b/old_docs/API_docs_v105/methods/channels_createChannel.md @@ -51,6 +51,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v105/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v105/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v105/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v105/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v105/methods/channels_getAdminLog.md b/old_docs/API_docs_v105/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v105/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v105/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v105/methods/channels_getChannels.md +++ b/old_docs/API_docs_v105/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v105/methods/channels_getFullChannel.md b/old_docs/API_docs_v105/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v105/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v105/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v105/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v105/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v105/methods/channels_readHistory.md b/old_docs/API_docs_v105/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v105/methods/channels_readHistory.md +++ b/old_docs/API_docs_v105/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v105/methods/contacts_acceptContact.md b/old_docs/API_docs_v105/methods/contacts_acceptContact.md index 993def63..d1f00f79 100644 --- a/old_docs/API_docs_v105/methods/contacts_acceptContact.md +++ b/old_docs/API_docs_v105/methods/contacts_acceptContact.md @@ -42,3 +42,10 @@ Or, if you're into Lua: Updates = contacts.acceptContact({id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|CONTACT_REQ_MISSING|Missing contact request| + + diff --git a/old_docs/API_docs_v105/methods/contacts_addContact.md b/old_docs/API_docs_v105/methods/contacts_addContact.md index 80f540bb..3f0769d8 100644 --- a/old_docs/API_docs_v105/methods/contacts_addContact.md +++ b/old_docs/API_docs_v105/methods/contacts_addContact.md @@ -51,5 +51,6 @@ Updates = contacts.addContact({add_phone_privacy_exception=Bool, id=InputUser, f | Code | Type | Description | |------|----------|---------------| |400|CONTACT_ID_INVALID|The provided contact ID is invalid| +|400|CONTACT_NAME_EMPTY|Contact name empty| diff --git a/old_docs/API_docs_v105/methods/help_getUserInfo.md b/old_docs/API_docs_v105/methods/help_getUserInfo.md index 641fa986..8ba40223 100644 --- a/old_docs/API_docs_v105/methods/help_getUserInfo.md +++ b/old_docs/API_docs_v105/methods/help_getUserInfo.md @@ -42,3 +42,10 @@ Or, if you're into Lua: help_UserInfo = help.getUserInfo({user_id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|USER_INVALID|Invalid user provided| + + diff --git a/old_docs/API_docs_v105/methods/messages_checkChatInvite.md b/old_docs/API_docs_v105/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v105/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v105/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v105/methods/messages_editChatAbout.md b/old_docs/API_docs_v105/methods/messages_editChatAbout.md index 05fff24f..19cb898b 100644 --- a/old_docs/API_docs_v105/methods/messages_editChatAbout.md +++ b/old_docs/API_docs_v105/methods/messages_editChatAbout.md @@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| |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_editChatDefaultBannedRights.md b/old_docs/API_docs_v105/methods/messages_editChatDefaultBannedRights.md index a8e075eb..e631fa3b 100644 --- a/old_docs/API_docs_v105/methods/messages_editChatDefaultBannedRights.md +++ b/old_docs/API_docs_v105/methods/messages_editChatDefaultBannedRights.md @@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch | Code | Type | Description | |------|----------|---------------| |400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights| +|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v105/methods/messages_forwardMessages.md b/old_docs/API_docs_v105/methods/messages_forwardMessages.md index c8dc4a6f..b362bda2 100644 --- a/old_docs/API_docs_v105/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v105/methods/messages_forwardMessages.md @@ -72,6 +72,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v105/methods/messages_sendMedia.md index fabb4f8e..b3947ce7 100644 --- a/old_docs/API_docs_v105/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v105/methods/messages_sendMedia.md @@ -116,10 +116,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v105/methods/messages_sendScheduledMessages.md b/old_docs/API_docs_v105/methods/messages_sendScheduledMessages.md index 0e75802b..d83b47d4 100644 --- a/old_docs/API_docs_v105/methods/messages_sendScheduledMessages.md +++ b/old_docs/API_docs_v105/methods/messages_sendScheduledMessages.md @@ -43,3 +43,10 @@ Or, if you're into Lua: Updates = messages.sendScheduledMessages({peer=InputPeer, id={int}, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|400|MESSAGE_ID_INVALID|The provided message id is invalid| + + diff --git a/old_docs/API_docs_v105/methods/messages_setTyping.md b/old_docs/API_docs_v105/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v105/methods/messages_setTyping.md +++ b/old_docs/API_docs_v105/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v105/methods/updates_getChannelDifference.md b/old_docs/API_docs_v105/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v105/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v105/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v105/methods/users_getUsers.md b/old_docs/API_docs_v105/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v105/methods/users_getUsers.md +++ b/old_docs/API_docs_v105/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessages.md b/old_docs/API_docs_v18/methods/messages_forwardMessages.md index 04bd7f4d..5d799ab1 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessages.md @@ -66,6 +66,7 @@ messages_StatedMessages = messages.forwardMessages({peer=InputPeer, id={int}, }) |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_sendMedia.md b/old_docs/API_docs_v18/methods/messages_sendMedia.md index 0960dd5f..42c090e0 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v18/methods/messages_sendMedia.md @@ -59,10 +59,11 @@ messages_StatedMessage = messages.sendMedia({peer=InputPeer, media=InputMedia, } |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v18/methods/messages_setTyping.md b/old_docs/API_docs_v18/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v18/methods/messages_setTyping.md +++ b/old_docs/API_docs_v18/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v18/methods/users_getUsers.md b/old_docs/API_docs_v18/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v18/methods/users_getUsers.md +++ b/old_docs/API_docs_v18/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessages.md b/old_docs/API_docs_v23/methods/messages_forwardMessages.md index 04bd7f4d..5d799ab1 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessages.md @@ -66,6 +66,7 @@ messages_StatedMessages = messages.forwardMessages({peer=InputPeer, id={int}, }) |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_sendMedia.md b/old_docs/API_docs_v23/methods/messages_sendMedia.md index 0960dd5f..42c090e0 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v23/methods/messages_sendMedia.md @@ -59,10 +59,11 @@ messages_StatedMessage = messages.sendMedia({peer=InputPeer, media=InputMedia, } |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v23/methods/messages_setTyping.md b/old_docs/API_docs_v23/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v23/methods/messages_setTyping.md +++ b/old_docs/API_docs_v23/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v23/methods/users_getUsers.md b/old_docs/API_docs_v23/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v23/methods/users_getUsers.md +++ b/old_docs/API_docs_v23/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessages.md b/old_docs/API_docs_v25/methods/messages_forwardMessages.md index 04bd7f4d..5d799ab1 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessages.md @@ -66,6 +66,7 @@ messages_StatedMessages = messages.forwardMessages({peer=InputPeer, id={int}, }) |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_sendMedia.md b/old_docs/API_docs_v25/methods/messages_sendMedia.md index 1c54e2ef..0c0965bc 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v25/methods/messages_sendMedia.md @@ -60,10 +60,11 @@ messages_StatedMessage = messages.sendMedia({peer=InputPeer, reply_to_msg_id=int |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v25/methods/messages_setTyping.md b/old_docs/API_docs_v25/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v25/methods/messages_setTyping.md +++ b/old_docs/API_docs_v25/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v25/methods/users_getUsers.md b/old_docs/API_docs_v25/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v25/methods/users_getUsers.md +++ b/old_docs/API_docs_v25/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessages.md b/old_docs/API_docs_v27/methods/messages_forwardMessages.md index b8e62557..017833c0 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessages.md @@ -66,6 +66,7 @@ Updates = messages.forwardMessages({peer=InputPeer, id={int}, }) |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_sendMedia.md b/old_docs/API_docs_v27/methods/messages_sendMedia.md index 2ff1307d..43c56313 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v27/methods/messages_sendMedia.md @@ -60,10 +60,11 @@ Updates = messages.sendMedia({peer=InputPeer, reply_to_msg_id=int, media=InputMe |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v27/methods/messages_setTyping.md b/old_docs/API_docs_v27/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v27/methods/messages_setTyping.md +++ b/old_docs/API_docs_v27/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v27/methods/users_getUsers.md b/old_docs/API_docs_v27/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v27/methods/users_getUsers.md +++ b/old_docs/API_docs_v27/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessages.md b/old_docs/API_docs_v33/methods/messages_forwardMessages.md index b8e62557..017833c0 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessages.md @@ -66,6 +66,7 @@ Updates = messages.forwardMessages({peer=InputPeer, id={int}, }) |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_sendMedia.md b/old_docs/API_docs_v33/methods/messages_sendMedia.md index 8ace3c2d..df7b7666 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v33/methods/messages_sendMedia.md @@ -67,10 +67,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v33/methods/messages_setTyping.md b/old_docs/API_docs_v33/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v33/methods/messages_setTyping.md +++ b/old_docs/API_docs_v33/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v33/methods/users_getUsers.md b/old_docs/API_docs_v33/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v33/methods/users_getUsers.md +++ b/old_docs/API_docs_v33/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v38/methods/channels_createChannel.md b/old_docs/API_docs_v38/methods/channels_createChannel.md index bde3d1ed..c30a43eb 100644 --- a/old_docs/API_docs_v38/methods/channels_createChannel.md +++ b/old_docs/API_docs_v38/methods/channels_createChannel.md @@ -48,6 +48,7 @@ Updates = channels.createChannel({title='string', about='string', users={InputUs | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v38/methods/channels_getChannels.md b/old_docs/API_docs_v38/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v38/methods/channels_getChannels.md +++ b/old_docs/API_docs_v38/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v38/methods/channels_getFullChannel.md b/old_docs/API_docs_v38/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v38/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v38/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v38/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v38/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v38/methods/channels_readHistory.md b/old_docs/API_docs_v38/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v38/methods/channels_readHistory.md +++ b/old_docs/API_docs_v38/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessages.md b/old_docs/API_docs_v38/methods/messages_forwardMessages.md index df87dee9..f9d38d42 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessages.md @@ -67,6 +67,7 @@ Updates = messages.forwardMessages({from_peer=InputPeer, id={int}, to_peer=Input |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_sendMedia.md b/old_docs/API_docs_v38/methods/messages_sendMedia.md index 8ace3c2d..df7b7666 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v38/methods/messages_sendMedia.md @@ -67,10 +67,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v38/methods/messages_setTyping.md b/old_docs/API_docs_v38/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v38/methods/messages_setTyping.md +++ b/old_docs/API_docs_v38/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v38/methods/updates_getChannelDifference.md b/old_docs/API_docs_v38/methods/updates_getChannelDifference.md index 19cc26b8..77a45636 100644 --- a/old_docs/API_docs_v38/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v38/methods/updates_getChannelDifference.md @@ -52,9 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({channel=InputChannel, |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v38/methods/users_getUsers.md b/old_docs/API_docs_v38/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v38/methods/users_getUsers.md +++ b/old_docs/API_docs_v38/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessages.md b/old_docs/API_docs_v40/methods/messages_forwardMessages.md index b8e62557..017833c0 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessages.md @@ -66,6 +66,7 @@ Updates = messages.forwardMessages({peer=InputPeer, id={int}, }) |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_sendMedia.md b/old_docs/API_docs_v40/methods/messages_sendMedia.md index 8ace3c2d..df7b7666 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v40/methods/messages_sendMedia.md @@ -67,10 +67,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v40/methods/messages_setTyping.md b/old_docs/API_docs_v40/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v40/methods/messages_setTyping.md +++ b/old_docs/API_docs_v40/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v40/methods/updates_getChannelDifference.md b/old_docs/API_docs_v40/methods/updates_getChannelDifference.md index 19f92ebe..62203fd1 100644 --- a/old_docs/API_docs_v40/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v40/methods/updates_getChannelDifference.md @@ -52,9 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({peer=InputPeer, filter |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v40/methods/users_getUsers.md b/old_docs/API_docs_v40/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v40/methods/users_getUsers.md +++ b/old_docs/API_docs_v40/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v41/methods/channels_createChannel.md b/old_docs/API_docs_v41/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v41/methods/channels_createChannel.md +++ b/old_docs/API_docs_v41/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v41/methods/channels_getChannels.md b/old_docs/API_docs_v41/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v41/methods/channels_getChannels.md +++ b/old_docs/API_docs_v41/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v41/methods/channels_getFullChannel.md b/old_docs/API_docs_v41/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v41/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v41/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v41/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v41/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v41/methods/channels_readHistory.md b/old_docs/API_docs_v41/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v41/methods/channels_readHistory.md +++ b/old_docs/API_docs_v41/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessages.md b/old_docs/API_docs_v41/methods/messages_forwardMessages.md index ce66ff7b..4f386b3c 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessages.md @@ -68,6 +68,7 @@ Updates = messages.forwardMessages({broadcast=Bool, from_peer=InputPeer, id={int |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_sendMedia.md b/old_docs/API_docs_v41/methods/messages_sendMedia.md index 428d3a51..867810cf 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v41/methods/messages_sendMedia.md @@ -68,10 +68,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v41/methods/messages_setTyping.md b/old_docs/API_docs_v41/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v41/methods/messages_setTyping.md +++ b/old_docs/API_docs_v41/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v41/methods/updates_getChannelDifference.md b/old_docs/API_docs_v41/methods/updates_getChannelDifference.md index 19cc26b8..77a45636 100644 --- a/old_docs/API_docs_v41/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v41/methods/updates_getChannelDifference.md @@ -52,9 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({channel=InputChannel, |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v41/methods/users_getUsers.md b/old_docs/API_docs_v41/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v41/methods/users_getUsers.md +++ b/old_docs/API_docs_v41/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v42/methods/channels_createChannel.md b/old_docs/API_docs_v42/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v42/methods/channels_createChannel.md +++ b/old_docs/API_docs_v42/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v42/methods/channels_getChannels.md b/old_docs/API_docs_v42/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v42/methods/channels_getChannels.md +++ b/old_docs/API_docs_v42/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v42/methods/channels_getFullChannel.md b/old_docs/API_docs_v42/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v42/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v42/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v42/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v42/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v42/methods/channels_readHistory.md b/old_docs/API_docs_v42/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v42/methods/channels_readHistory.md +++ b/old_docs/API_docs_v42/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessages.md b/old_docs/API_docs_v42/methods/messages_forwardMessages.md index ce66ff7b..4f386b3c 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessages.md @@ -68,6 +68,7 @@ Updates = messages.forwardMessages({broadcast=Bool, from_peer=InputPeer, id={int |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_sendMedia.md b/old_docs/API_docs_v42/methods/messages_sendMedia.md index 428d3a51..867810cf 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v42/methods/messages_sendMedia.md @@ -68,10 +68,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v42/methods/messages_setTyping.md b/old_docs/API_docs_v42/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v42/methods/messages_setTyping.md +++ b/old_docs/API_docs_v42/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v42/methods/updates_getChannelDifference.md b/old_docs/API_docs_v42/methods/updates_getChannelDifference.md index 19cc26b8..77a45636 100644 --- a/old_docs/API_docs_v42/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v42/methods/updates_getChannelDifference.md @@ -52,9 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({channel=InputChannel, |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v42/methods/users_getUsers.md b/old_docs/API_docs_v42/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v42/methods/users_getUsers.md +++ b/old_docs/API_docs_v42/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v44/methods/channels_createChannel.md b/old_docs/API_docs_v44/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v44/methods/channels_createChannel.md +++ b/old_docs/API_docs_v44/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v44/methods/channels_getChannels.md b/old_docs/API_docs_v44/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v44/methods/channels_getChannels.md +++ b/old_docs/API_docs_v44/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v44/methods/channels_getFullChannel.md b/old_docs/API_docs_v44/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v44/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v44/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v44/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v44/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v44/methods/channels_readHistory.md b/old_docs/API_docs_v44/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v44/methods/channels_readHistory.md +++ b/old_docs/API_docs_v44/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessages.md b/old_docs/API_docs_v44/methods/messages_forwardMessages.md index ce66ff7b..4f386b3c 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessages.md @@ -68,6 +68,7 @@ Updates = messages.forwardMessages({broadcast=Bool, from_peer=InputPeer, id={int |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_sendMedia.md b/old_docs/API_docs_v44/methods/messages_sendMedia.md index 428d3a51..867810cf 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v44/methods/messages_sendMedia.md @@ -68,10 +68,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v44/methods/messages_setTyping.md b/old_docs/API_docs_v44/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v44/methods/messages_setTyping.md +++ b/old_docs/API_docs_v44/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v44/methods/updates_getChannelDifference.md b/old_docs/API_docs_v44/methods/updates_getChannelDifference.md index 19cc26b8..77a45636 100644 --- a/old_docs/API_docs_v44/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v44/methods/updates_getChannelDifference.md @@ -52,9 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({channel=InputChannel, |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v44/methods/users_getUsers.md b/old_docs/API_docs_v44/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v44/methods/users_getUsers.md +++ b/old_docs/API_docs_v44/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v45/methods/channels_createChannel.md b/old_docs/API_docs_v45/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v45/methods/channels_createChannel.md +++ b/old_docs/API_docs_v45/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v45/methods/channels_getChannels.md b/old_docs/API_docs_v45/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v45/methods/channels_getChannels.md +++ b/old_docs/API_docs_v45/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v45/methods/channels_getFullChannel.md b/old_docs/API_docs_v45/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v45/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v45/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v45/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v45/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v45/methods/channels_readHistory.md b/old_docs/API_docs_v45/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v45/methods/channels_readHistory.md +++ b/old_docs/API_docs_v45/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessages.md b/old_docs/API_docs_v45/methods/messages_forwardMessages.md index ce66ff7b..4f386b3c 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessages.md @@ -68,6 +68,7 @@ Updates = messages.forwardMessages({broadcast=Bool, from_peer=InputPeer, id={int |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_sendMedia.md b/old_docs/API_docs_v45/methods/messages_sendMedia.md index 428d3a51..867810cf 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v45/methods/messages_sendMedia.md @@ -68,10 +68,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v45/methods/messages_setTyping.md b/old_docs/API_docs_v45/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v45/methods/messages_setTyping.md +++ b/old_docs/API_docs_v45/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v45/methods/updates_getChannelDifference.md b/old_docs/API_docs_v45/methods/updates_getChannelDifference.md index 19cc26b8..77a45636 100644 --- a/old_docs/API_docs_v45/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v45/methods/updates_getChannelDifference.md @@ -52,9 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({channel=InputChannel, |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v45/methods/users_getUsers.md b/old_docs/API_docs_v45/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v45/methods/users_getUsers.md +++ b/old_docs/API_docs_v45/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v46/methods/channels_createChannel.md b/old_docs/API_docs_v46/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v46/methods/channels_createChannel.md +++ b/old_docs/API_docs_v46/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v46/methods/channels_getChannels.md b/old_docs/API_docs_v46/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v46/methods/channels_getChannels.md +++ b/old_docs/API_docs_v46/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v46/methods/channels_getFullChannel.md b/old_docs/API_docs_v46/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v46/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v46/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v46/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v46/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v46/methods/channels_readHistory.md b/old_docs/API_docs_v46/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v46/methods/channels_readHistory.md +++ b/old_docs/API_docs_v46/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessages.md b/old_docs/API_docs_v46/methods/messages_forwardMessages.md index ce66ff7b..4f386b3c 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessages.md @@ -68,6 +68,7 @@ Updates = messages.forwardMessages({broadcast=Bool, from_peer=InputPeer, id={int |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_sendMedia.md b/old_docs/API_docs_v46/methods/messages_sendMedia.md index 428d3a51..867810cf 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v46/methods/messages_sendMedia.md @@ -68,10 +68,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v46/methods/messages_setTyping.md b/old_docs/API_docs_v46/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v46/methods/messages_setTyping.md +++ b/old_docs/API_docs_v46/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v46/methods/updates_getChannelDifference.md b/old_docs/API_docs_v46/methods/updates_getChannelDifference.md index 19cc26b8..77a45636 100644 --- a/old_docs/API_docs_v46/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v46/methods/updates_getChannelDifference.md @@ -52,9 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({channel=InputChannel, |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v46/methods/users_getUsers.md b/old_docs/API_docs_v46/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v46/methods/users_getUsers.md +++ b/old_docs/API_docs_v46/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v51/methods/auth_resendCode.md b/old_docs/API_docs_v51/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v51/methods/auth_resendCode.md +++ b/old_docs/API_docs_v51/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v51/methods/channels_createChannel.md b/old_docs/API_docs_v51/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v51/methods/channels_createChannel.md +++ b/old_docs/API_docs_v51/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v51/methods/channels_getChannels.md b/old_docs/API_docs_v51/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v51/methods/channels_getChannels.md +++ b/old_docs/API_docs_v51/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v51/methods/channels_getFullChannel.md b/old_docs/API_docs_v51/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v51/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v51/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v51/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v51/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v51/methods/channels_readHistory.md b/old_docs/API_docs_v51/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v51/methods/channels_readHistory.md +++ b/old_docs/API_docs_v51/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessages.md b/old_docs/API_docs_v51/methods/messages_forwardMessages.md index 395aec91..e8ffa19e 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessages.md @@ -70,6 +70,7 @@ Updates = messages.forwardMessages({broadcast=Bool, silent=Bool, background=Bool |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_sendMedia.md b/old_docs/API_docs_v51/methods/messages_sendMedia.md index 7c37851f..bb671ddb 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v51/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v51/methods/messages_setTyping.md b/old_docs/API_docs_v51/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v51/methods/messages_setTyping.md +++ b/old_docs/API_docs_v51/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v51/methods/updates_getChannelDifference.md b/old_docs/API_docs_v51/methods/updates_getChannelDifference.md index 19cc26b8..77a45636 100644 --- a/old_docs/API_docs_v51/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v51/methods/updates_getChannelDifference.md @@ -52,9 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({channel=InputChannel, |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v51/methods/users_getUsers.md b/old_docs/API_docs_v51/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v51/methods/users_getUsers.md +++ b/old_docs/API_docs_v51/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v53/methods/auth_resendCode.md b/old_docs/API_docs_v53/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v53/methods/auth_resendCode.md +++ b/old_docs/API_docs_v53/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v53/methods/channels_createChannel.md b/old_docs/API_docs_v53/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v53/methods/channels_createChannel.md +++ b/old_docs/API_docs_v53/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v53/methods/channels_getChannels.md b/old_docs/API_docs_v53/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v53/methods/channels_getChannels.md +++ b/old_docs/API_docs_v53/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v53/methods/channels_getFullChannel.md b/old_docs/API_docs_v53/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v53/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v53/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v53/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v53/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v53/methods/channels_readHistory.md b/old_docs/API_docs_v53/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v53/methods/channels_readHistory.md +++ b/old_docs/API_docs_v53/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessages.md b/old_docs/API_docs_v53/methods/messages_forwardMessages.md index 1999e99f..b1a224e0 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessages.md @@ -69,6 +69,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, from_peer=Inpu |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_sendMedia.md b/old_docs/API_docs_v53/methods/messages_sendMedia.md index 457727bf..da4ebf8f 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v53/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v53/methods/messages_setTyping.md b/old_docs/API_docs_v53/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v53/methods/messages_setTyping.md +++ b/old_docs/API_docs_v53/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v53/methods/updates_getChannelDifference.md b/old_docs/API_docs_v53/methods/updates_getChannelDifference.md index 19cc26b8..77a45636 100644 --- a/old_docs/API_docs_v53/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v53/methods/updates_getChannelDifference.md @@ -52,9 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({channel=InputChannel, |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v53/methods/users_getUsers.md b/old_docs/API_docs_v53/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v53/methods/users_getUsers.md +++ b/old_docs/API_docs_v53/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v55/methods/auth_resendCode.md b/old_docs/API_docs_v55/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v55/methods/auth_resendCode.md +++ b/old_docs/API_docs_v55/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v55/methods/channels_createChannel.md b/old_docs/API_docs_v55/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v55/methods/channels_createChannel.md +++ b/old_docs/API_docs_v55/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v55/methods/channels_getChannels.md b/old_docs/API_docs_v55/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v55/methods/channels_getChannels.md +++ b/old_docs/API_docs_v55/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v55/methods/channels_getFullChannel.md b/old_docs/API_docs_v55/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v55/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v55/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v55/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v55/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v55/methods/channels_readHistory.md b/old_docs/API_docs_v55/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v55/methods/channels_readHistory.md +++ b/old_docs/API_docs_v55/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessages.md b/old_docs/API_docs_v55/methods/messages_forwardMessages.md index 1999e99f..b1a224e0 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessages.md @@ -69,6 +69,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, from_peer=Inpu |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_sendMedia.md b/old_docs/API_docs_v55/methods/messages_sendMedia.md index 457727bf..da4ebf8f 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v55/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v55/methods/messages_setTyping.md b/old_docs/API_docs_v55/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v55/methods/messages_setTyping.md +++ b/old_docs/API_docs_v55/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v55/methods/updates_getChannelDifference.md b/old_docs/API_docs_v55/methods/updates_getChannelDifference.md index 19cc26b8..77a45636 100644 --- a/old_docs/API_docs_v55/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v55/methods/updates_getChannelDifference.md @@ -52,9 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({channel=InputChannel, |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v55/methods/users_getUsers.md b/old_docs/API_docs_v55/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v55/methods/users_getUsers.md +++ b/old_docs/API_docs_v55/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v57/methods/auth_resendCode.md b/old_docs/API_docs_v57/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v57/methods/auth_resendCode.md +++ b/old_docs/API_docs_v57/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v57/methods/channels_createChannel.md b/old_docs/API_docs_v57/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v57/methods/channels_createChannel.md +++ b/old_docs/API_docs_v57/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v57/methods/channels_getChannels.md b/old_docs/API_docs_v57/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v57/methods/channels_getChannels.md +++ b/old_docs/API_docs_v57/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v57/methods/channels_getFullChannel.md b/old_docs/API_docs_v57/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v57/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v57/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v57/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v57/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v57/methods/channels_readHistory.md b/old_docs/API_docs_v57/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v57/methods/channels_readHistory.md +++ b/old_docs/API_docs_v57/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessages.md b/old_docs/API_docs_v57/methods/messages_forwardMessages.md index 2d751dcb..56da3a10 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessages.md @@ -70,6 +70,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v57/methods/messages_sendMedia.md index 457727bf..da4ebf8f 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v57/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v57/methods/messages_setTyping.md b/old_docs/API_docs_v57/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v57/methods/messages_setTyping.md +++ b/old_docs/API_docs_v57/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v57/methods/updates_getChannelDifference.md b/old_docs/API_docs_v57/methods/updates_getChannelDifference.md index 19cc26b8..77a45636 100644 --- a/old_docs/API_docs_v57/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v57/methods/updates_getChannelDifference.md @@ -52,9 +52,10 @@ updates_ChannelDifference = updates.getChannelDifference({channel=InputChannel, |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v57/methods/users_getUsers.md b/old_docs/API_docs_v57/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v57/methods/users_getUsers.md +++ b/old_docs/API_docs_v57/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v62/methods/auth_resendCode.md b/old_docs/API_docs_v62/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v62/methods/auth_resendCode.md +++ b/old_docs/API_docs_v62/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v62/methods/channels_createChannel.md b/old_docs/API_docs_v62/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v62/methods/channels_createChannel.md +++ b/old_docs/API_docs_v62/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v62/methods/channels_getChannels.md b/old_docs/API_docs_v62/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v62/methods/channels_getChannels.md +++ b/old_docs/API_docs_v62/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v62/methods/channels_getFullChannel.md b/old_docs/API_docs_v62/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v62/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v62/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v62/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v62/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v62/methods/channels_readHistory.md b/old_docs/API_docs_v62/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v62/methods/channels_readHistory.md +++ b/old_docs/API_docs_v62/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessages.md b/old_docs/API_docs_v62/methods/messages_forwardMessages.md index 2d751dcb..56da3a10 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessages.md @@ -70,6 +70,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v62/methods/messages_sendMedia.md index 457727bf..da4ebf8f 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v62/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v62/methods/messages_setTyping.md b/old_docs/API_docs_v62/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v62/methods/messages_setTyping.md +++ b/old_docs/API_docs_v62/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v62/methods/updates_getChannelDifference.md b/old_docs/API_docs_v62/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v62/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v62/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v62/methods/users_getUsers.md b/old_docs/API_docs_v62/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v62/methods/users_getUsers.md +++ b/old_docs/API_docs_v62/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v65/methods/auth_resendCode.md b/old_docs/API_docs_v65/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v65/methods/auth_resendCode.md +++ b/old_docs/API_docs_v65/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v65/methods/channels_createChannel.md b/old_docs/API_docs_v65/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v65/methods/channels_createChannel.md +++ b/old_docs/API_docs_v65/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v65/methods/channels_getChannels.md b/old_docs/API_docs_v65/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v65/methods/channels_getChannels.md +++ b/old_docs/API_docs_v65/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v65/methods/channels_getFullChannel.md b/old_docs/API_docs_v65/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v65/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v65/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v65/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v65/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v65/methods/channels_readHistory.md b/old_docs/API_docs_v65/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v65/methods/channels_readHistory.md +++ b/old_docs/API_docs_v65/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v65/methods/messages_checkChatInvite.md b/old_docs/API_docs_v65/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v65/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessages.md b/old_docs/API_docs_v65/methods/messages_forwardMessages.md index 2d751dcb..56da3a10 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessages.md @@ -70,6 +70,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v65/methods/messages_sendMedia.md index 457727bf..da4ebf8f 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v65/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v65/methods/messages_setTyping.md b/old_docs/API_docs_v65/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v65/methods/messages_setTyping.md +++ b/old_docs/API_docs_v65/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v65/methods/updates_getChannelDifference.md b/old_docs/API_docs_v65/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v65/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v65/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v65/methods/users_getUsers.md b/old_docs/API_docs_v65/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v65/methods/users_getUsers.md +++ b/old_docs/API_docs_v65/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v66/methods/auth_resendCode.md b/old_docs/API_docs_v66/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v66/methods/auth_resendCode.md +++ b/old_docs/API_docs_v66/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v66/methods/channels_createChannel.md b/old_docs/API_docs_v66/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v66/methods/channels_createChannel.md +++ b/old_docs/API_docs_v66/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v66/methods/channels_getChannels.md b/old_docs/API_docs_v66/methods/channels_getChannels.md index 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v66/methods/channels_getChannels.md +++ b/old_docs/API_docs_v66/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v66/methods/channels_getFullChannel.md b/old_docs/API_docs_v66/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v66/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v66/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v66/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v66/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v66/methods/channels_readHistory.md b/old_docs/API_docs_v66/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v66/methods/channels_readHistory.md +++ b/old_docs/API_docs_v66/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v66/methods/messages_checkChatInvite.md b/old_docs/API_docs_v66/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v66/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessages.md b/old_docs/API_docs_v66/methods/messages_forwardMessages.md index 2d751dcb..56da3a10 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessages.md @@ -70,6 +70,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v66/methods/messages_sendMedia.md index 457727bf..da4ebf8f 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v66/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v66/methods/messages_setTyping.md b/old_docs/API_docs_v66/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v66/methods/messages_setTyping.md +++ b/old_docs/API_docs_v66/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v66/methods/updates_getChannelDifference.md b/old_docs/API_docs_v66/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v66/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v66/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v66/methods/users_getUsers.md b/old_docs/API_docs_v66/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v66/methods/users_getUsers.md +++ b/old_docs/API_docs_v66/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v68/methods/auth_resendCode.md b/old_docs/API_docs_v68/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v68/methods/auth_resendCode.md +++ b/old_docs/API_docs_v68/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v68/methods/channels_createChannel.md b/old_docs/API_docs_v68/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v68/methods/channels_createChannel.md +++ b/old_docs/API_docs_v68/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v68/methods/channels_getAdminLog.md b/old_docs/API_docs_v68/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v68/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v68/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v68/methods/channels_getChannels.md +++ b/old_docs/API_docs_v68/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v68/methods/channels_getFullChannel.md b/old_docs/API_docs_v68/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v68/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v68/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v68/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v68/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v68/methods/channels_readHistory.md b/old_docs/API_docs_v68/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v68/methods/channels_readHistory.md +++ b/old_docs/API_docs_v68/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v68/methods/messages_checkChatInvite.md b/old_docs/API_docs_v68/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v68/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessages.md b/old_docs/API_docs_v68/methods/messages_forwardMessages.md index 2d751dcb..56da3a10 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessages.md @@ -70,6 +70,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v68/methods/messages_sendMedia.md index 457727bf..da4ebf8f 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v68/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v68/methods/messages_setTyping.md b/old_docs/API_docs_v68/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v68/methods/messages_setTyping.md +++ b/old_docs/API_docs_v68/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v68/methods/updates_getChannelDifference.md b/old_docs/API_docs_v68/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v68/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v68/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v68/methods/users_getUsers.md b/old_docs/API_docs_v68/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v68/methods/users_getUsers.md +++ b/old_docs/API_docs_v68/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v70/methods/auth_resendCode.md b/old_docs/API_docs_v70/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v70/methods/auth_resendCode.md +++ b/old_docs/API_docs_v70/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v70/methods/channels_createChannel.md b/old_docs/API_docs_v70/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v70/methods/channels_createChannel.md +++ b/old_docs/API_docs_v70/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v70/methods/channels_getAdminLog.md b/old_docs/API_docs_v70/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v70/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v70/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v70/methods/channels_getChannels.md +++ b/old_docs/API_docs_v70/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v70/methods/channels_getFullChannel.md b/old_docs/API_docs_v70/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v70/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v70/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v70/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v70/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v70/methods/channels_readHistory.md b/old_docs/API_docs_v70/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v70/methods/channels_readHistory.md +++ b/old_docs/API_docs_v70/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v70/methods/messages_checkChatInvite.md b/old_docs/API_docs_v70/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v70/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessages.md b/old_docs/API_docs_v70/methods/messages_forwardMessages.md index 2d751dcb..56da3a10 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessages.md @@ -70,6 +70,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v70/methods/messages_sendMedia.md index 457727bf..da4ebf8f 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v70/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v70/methods/messages_setTyping.md b/old_docs/API_docs_v70/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v70/methods/messages_setTyping.md +++ b/old_docs/API_docs_v70/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v70/methods/updates_getChannelDifference.md b/old_docs/API_docs_v70/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v70/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v70/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v70/methods/users_getUsers.md b/old_docs/API_docs_v70/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v70/methods/users_getUsers.md +++ b/old_docs/API_docs_v70/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v71/methods/auth_resendCode.md b/old_docs/API_docs_v71/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v71/methods/auth_resendCode.md +++ b/old_docs/API_docs_v71/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v71/methods/channels_createChannel.md b/old_docs/API_docs_v71/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v71/methods/channels_createChannel.md +++ b/old_docs/API_docs_v71/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v71/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v71/methods/channels_getAdminLog.md b/old_docs/API_docs_v71/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v71/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v71/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v71/methods/channels_getChannels.md +++ b/old_docs/API_docs_v71/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v71/methods/channels_getFullChannel.md b/old_docs/API_docs_v71/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v71/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v71/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v71/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v71/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v71/methods/channels_readHistory.md b/old_docs/API_docs_v71/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v71/methods/channels_readHistory.md +++ b/old_docs/API_docs_v71/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v71/methods/messages_checkChatInvite.md b/old_docs/API_docs_v71/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v71/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v71/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v71/methods/messages_forwardMessages.md b/old_docs/API_docs_v71/methods/messages_forwardMessages.md index 2d751dcb..56da3a10 100644 --- a/old_docs/API_docs_v71/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v71/methods/messages_forwardMessages.md @@ -70,6 +70,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v71/methods/messages_sendMedia.md index 457727bf..da4ebf8f 100644 --- a/old_docs/API_docs_v71/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v71/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v71/methods/messages_setTyping.md b/old_docs/API_docs_v71/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v71/methods/messages_setTyping.md +++ b/old_docs/API_docs_v71/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v71/methods/updates_getChannelDifference.md b/old_docs/API_docs_v71/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v71/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v71/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v71/methods/users_getUsers.md b/old_docs/API_docs_v71/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v71/methods/users_getUsers.md +++ b/old_docs/API_docs_v71/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v72/methods/auth_resendCode.md b/old_docs/API_docs_v72/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v72/methods/auth_resendCode.md +++ b/old_docs/API_docs_v72/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v72/methods/channels_createChannel.md b/old_docs/API_docs_v72/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v72/methods/channels_createChannel.md +++ b/old_docs/API_docs_v72/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v72/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v72/methods/channels_getAdminLog.md b/old_docs/API_docs_v72/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v72/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v72/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v72/methods/channels_getChannels.md +++ b/old_docs/API_docs_v72/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v72/methods/channels_getFullChannel.md b/old_docs/API_docs_v72/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v72/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v72/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v72/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v72/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v72/methods/channels_readHistory.md b/old_docs/API_docs_v72/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v72/methods/channels_readHistory.md +++ b/old_docs/API_docs_v72/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v72/methods/messages_checkChatInvite.md b/old_docs/API_docs_v72/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v72/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v72/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v72/methods/messages_forwardMessages.md b/old_docs/API_docs_v72/methods/messages_forwardMessages.md index 2d751dcb..56da3a10 100644 --- a/old_docs/API_docs_v72/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v72/methods/messages_forwardMessages.md @@ -70,6 +70,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v72/methods/messages_sendMedia.md index 457727bf..da4ebf8f 100644 --- a/old_docs/API_docs_v72/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v72/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v72/methods/messages_setTyping.md b/old_docs/API_docs_v72/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v72/methods/messages_setTyping.md +++ b/old_docs/API_docs_v72/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v72/methods/updates_getChannelDifference.md b/old_docs/API_docs_v72/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v72/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v72/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v72/methods/users_getUsers.md b/old_docs/API_docs_v72/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v72/methods/users_getUsers.md +++ b/old_docs/API_docs_v72/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v73/methods/auth_resendCode.md b/old_docs/API_docs_v73/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v73/methods/auth_resendCode.md +++ b/old_docs/API_docs_v73/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v73/methods/channels_createChannel.md b/old_docs/API_docs_v73/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v73/methods/channels_createChannel.md +++ b/old_docs/API_docs_v73/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v73/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v73/methods/channels_getAdminLog.md b/old_docs/API_docs_v73/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v73/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v73/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v73/methods/channels_getChannels.md +++ b/old_docs/API_docs_v73/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v73/methods/channels_getFullChannel.md b/old_docs/API_docs_v73/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v73/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v73/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v73/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v73/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v73/methods/channels_readHistory.md b/old_docs/API_docs_v73/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v73/methods/channels_readHistory.md +++ b/old_docs/API_docs_v73/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v73/methods/messages_checkChatInvite.md b/old_docs/API_docs_v73/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v73/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v73/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v73/methods/messages_forwardMessages.md b/old_docs/API_docs_v73/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v73/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v73/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v73/methods/messages_sendMedia.md index 457727bf..da4ebf8f 100644 --- a/old_docs/API_docs_v73/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v73/methods/messages_sendMedia.md @@ -70,10 +70,11 @@ You can provide bot API reply_markup objects here. |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v73/methods/messages_setTyping.md b/old_docs/API_docs_v73/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v73/methods/messages_setTyping.md +++ b/old_docs/API_docs_v73/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v73/methods/updates_getChannelDifference.md b/old_docs/API_docs_v73/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v73/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v73/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v73/methods/users_getUsers.md b/old_docs/API_docs_v73/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v73/methods/users_getUsers.md +++ b/old_docs/API_docs_v73/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v75/methods/auth_resendCode.md b/old_docs/API_docs_v75/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v75/methods/auth_resendCode.md +++ b/old_docs/API_docs_v75/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v75/methods/channels_createChannel.md b/old_docs/API_docs_v75/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v75/methods/channels_createChannel.md +++ b/old_docs/API_docs_v75/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v75/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v75/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v75/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v75/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v75/methods/channels_getAdminLog.md b/old_docs/API_docs_v75/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v75/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v75/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v75/methods/channels_getChannels.md +++ b/old_docs/API_docs_v75/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v75/methods/channels_getFullChannel.md b/old_docs/API_docs_v75/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v75/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v75/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v75/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v75/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v75/methods/channels_readHistory.md b/old_docs/API_docs_v75/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v75/methods/channels_readHistory.md +++ b/old_docs/API_docs_v75/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v75/methods/messages_checkChatInvite.md b/old_docs/API_docs_v75/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v75/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v75/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v75/methods/messages_forwardMessages.md b/old_docs/API_docs_v75/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v75/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v75/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v75/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v75/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v75/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v75/methods/messages_setTyping.md b/old_docs/API_docs_v75/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v75/methods/messages_setTyping.md +++ b/old_docs/API_docs_v75/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v75/methods/updates_getChannelDifference.md b/old_docs/API_docs_v75/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v75/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v75/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v75/methods/users_getUsers.md b/old_docs/API_docs_v75/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v75/methods/users_getUsers.md +++ b/old_docs/API_docs_v75/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v81/methods/auth_resendCode.md b/old_docs/API_docs_v81/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v81/methods/auth_resendCode.md +++ b/old_docs/API_docs_v81/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v81/methods/channels_createChannel.md b/old_docs/API_docs_v81/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v81/methods/channels_createChannel.md +++ b/old_docs/API_docs_v81/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v81/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v81/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v81/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v81/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v81/methods/channels_getAdminLog.md b/old_docs/API_docs_v81/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v81/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v81/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v81/methods/channels_getChannels.md +++ b/old_docs/API_docs_v81/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v81/methods/channels_getFullChannel.md b/old_docs/API_docs_v81/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v81/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v81/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v81/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v81/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v81/methods/channels_readHistory.md b/old_docs/API_docs_v81/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v81/methods/channels_readHistory.md +++ b/old_docs/API_docs_v81/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v81/methods/messages_checkChatInvite.md b/old_docs/API_docs_v81/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v81/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v81/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v81/methods/messages_forwardMessages.md b/old_docs/API_docs_v81/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v81/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v81/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v81/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v81/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v81/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v81/methods/messages_setTyping.md b/old_docs/API_docs_v81/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v81/methods/messages_setTyping.md +++ b/old_docs/API_docs_v81/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v81/methods/updates_getChannelDifference.md b/old_docs/API_docs_v81/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v81/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v81/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v81/methods/users_getUsers.md b/old_docs/API_docs_v81/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v81/methods/users_getUsers.md +++ b/old_docs/API_docs_v81/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v82/methods/auth_resendCode.md b/old_docs/API_docs_v82/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v82/methods/auth_resendCode.md +++ b/old_docs/API_docs_v82/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v82/methods/channels_createChannel.md b/old_docs/API_docs_v82/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v82/methods/channels_createChannel.md +++ b/old_docs/API_docs_v82/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v82/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v82/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v82/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v82/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v82/methods/channels_getAdminLog.md b/old_docs/API_docs_v82/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v82/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v82/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v82/methods/channels_getChannels.md +++ b/old_docs/API_docs_v82/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v82/methods/channels_getFullChannel.md b/old_docs/API_docs_v82/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v82/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v82/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v82/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v82/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v82/methods/channels_readHistory.md b/old_docs/API_docs_v82/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v82/methods/channels_readHistory.md +++ b/old_docs/API_docs_v82/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v82/methods/messages_checkChatInvite.md b/old_docs/API_docs_v82/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v82/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v82/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v82/methods/messages_forwardMessages.md b/old_docs/API_docs_v82/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v82/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v82/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v82/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v82/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v82/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v82/methods/messages_setTyping.md b/old_docs/API_docs_v82/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v82/methods/messages_setTyping.md +++ b/old_docs/API_docs_v82/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v82/methods/updates_getChannelDifference.md b/old_docs/API_docs_v82/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v82/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v82/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v82/methods/users_getUsers.md b/old_docs/API_docs_v82/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v82/methods/users_getUsers.md +++ b/old_docs/API_docs_v82/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v86/methods/auth_resendCode.md b/old_docs/API_docs_v86/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v86/methods/auth_resendCode.md +++ b/old_docs/API_docs_v86/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v86/methods/channels_createChannel.md b/old_docs/API_docs_v86/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v86/methods/channels_createChannel.md +++ b/old_docs/API_docs_v86/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v86/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v86/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v86/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v86/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v86/methods/channels_getAdminLog.md b/old_docs/API_docs_v86/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v86/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v86/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v86/methods/channels_getChannels.md +++ b/old_docs/API_docs_v86/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v86/methods/channels_getFullChannel.md b/old_docs/API_docs_v86/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v86/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v86/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v86/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v86/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v86/methods/channels_readHistory.md b/old_docs/API_docs_v86/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v86/methods/channels_readHistory.md +++ b/old_docs/API_docs_v86/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v86/methods/messages_checkChatInvite.md b/old_docs/API_docs_v86/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v86/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v86/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v86/methods/messages_forwardMessages.md b/old_docs/API_docs_v86/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v86/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v86/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v86/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v86/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v86/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v86/methods/messages_setTyping.md b/old_docs/API_docs_v86/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v86/methods/messages_setTyping.md +++ b/old_docs/API_docs_v86/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v86/methods/updates_getChannelDifference.md b/old_docs/API_docs_v86/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v86/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v86/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v86/methods/users_getUsers.md b/old_docs/API_docs_v86/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v86/methods/users_getUsers.md +++ b/old_docs/API_docs_v86/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v89/methods/auth_resendCode.md b/old_docs/API_docs_v89/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v89/methods/auth_resendCode.md +++ b/old_docs/API_docs_v89/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v89/methods/channels_createChannel.md b/old_docs/API_docs_v89/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v89/methods/channels_createChannel.md +++ b/old_docs/API_docs_v89/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v89/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v89/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v89/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v89/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v89/methods/channels_getAdminLog.md b/old_docs/API_docs_v89/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v89/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v89/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v89/methods/channels_getChannels.md +++ b/old_docs/API_docs_v89/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v89/methods/channels_getFullChannel.md b/old_docs/API_docs_v89/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v89/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v89/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v89/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v89/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v89/methods/channels_readHistory.md b/old_docs/API_docs_v89/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v89/methods/channels_readHistory.md +++ b/old_docs/API_docs_v89/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v89/methods/help_getUserInfo.md b/old_docs/API_docs_v89/methods/help_getUserInfo.md index 641fa986..8ba40223 100644 --- a/old_docs/API_docs_v89/methods/help_getUserInfo.md +++ b/old_docs/API_docs_v89/methods/help_getUserInfo.md @@ -42,3 +42,10 @@ Or, if you're into Lua: help_UserInfo = help.getUserInfo({user_id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|USER_INVALID|Invalid user provided| + + diff --git a/old_docs/API_docs_v89/methods/messages_checkChatInvite.md b/old_docs/API_docs_v89/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v89/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v89/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v89/methods/messages_forwardMessages.md b/old_docs/API_docs_v89/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v89/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v89/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v89/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v89/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v89/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v89/methods/messages_setTyping.md b/old_docs/API_docs_v89/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v89/methods/messages_setTyping.md +++ b/old_docs/API_docs_v89/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v89/methods/updates_getChannelDifference.md b/old_docs/API_docs_v89/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v89/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v89/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v89/methods/users_getUsers.md b/old_docs/API_docs_v89/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v89/methods/users_getUsers.md +++ b/old_docs/API_docs_v89/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v91/methods/auth_resendCode.md b/old_docs/API_docs_v91/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v91/methods/auth_resendCode.md +++ b/old_docs/API_docs_v91/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v91/methods/channels_createChannel.md b/old_docs/API_docs_v91/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v91/methods/channels_createChannel.md +++ b/old_docs/API_docs_v91/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v91/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v91/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v91/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v91/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v91/methods/channels_getAdminLog.md b/old_docs/API_docs_v91/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v91/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v91/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v91/methods/channels_getChannels.md +++ b/old_docs/API_docs_v91/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v91/methods/channels_getFullChannel.md b/old_docs/API_docs_v91/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v91/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v91/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v91/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v91/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v91/methods/channels_readHistory.md b/old_docs/API_docs_v91/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v91/methods/channels_readHistory.md +++ b/old_docs/API_docs_v91/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v91/methods/help_getUserInfo.md b/old_docs/API_docs_v91/methods/help_getUserInfo.md index 641fa986..8ba40223 100644 --- a/old_docs/API_docs_v91/methods/help_getUserInfo.md +++ b/old_docs/API_docs_v91/methods/help_getUserInfo.md @@ -42,3 +42,10 @@ Or, if you're into Lua: help_UserInfo = help.getUserInfo({user_id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|USER_INVALID|Invalid user provided| + + diff --git a/old_docs/API_docs_v91/methods/messages_checkChatInvite.md b/old_docs/API_docs_v91/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v91/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v91/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v91/methods/messages_forwardMessages.md b/old_docs/API_docs_v91/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v91/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v91/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v91/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v91/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v91/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v91/methods/messages_setTyping.md b/old_docs/API_docs_v91/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v91/methods/messages_setTyping.md +++ b/old_docs/API_docs_v91/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v91/methods/updates_getChannelDifference.md b/old_docs/API_docs_v91/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v91/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v91/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v91/methods/users_getUsers.md b/old_docs/API_docs_v91/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v91/methods/users_getUsers.md +++ b/old_docs/API_docs_v91/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v95/methods/auth_resendCode.md b/old_docs/API_docs_v95/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v95/methods/auth_resendCode.md +++ b/old_docs/API_docs_v95/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v95/methods/channels_createChannel.md b/old_docs/API_docs_v95/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v95/methods/channels_createChannel.md +++ b/old_docs/API_docs_v95/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v95/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v95/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v95/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v95/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v95/methods/channels_getAdminLog.md b/old_docs/API_docs_v95/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v95/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v95/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v95/methods/channels_getChannels.md +++ b/old_docs/API_docs_v95/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v95/methods/channels_getFullChannel.md b/old_docs/API_docs_v95/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v95/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v95/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v95/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v95/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v95/methods/channels_readHistory.md b/old_docs/API_docs_v95/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v95/methods/channels_readHistory.md +++ b/old_docs/API_docs_v95/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v95/methods/help_getUserInfo.md b/old_docs/API_docs_v95/methods/help_getUserInfo.md index 641fa986..8ba40223 100644 --- a/old_docs/API_docs_v95/methods/help_getUserInfo.md +++ b/old_docs/API_docs_v95/methods/help_getUserInfo.md @@ -42,3 +42,10 @@ Or, if you're into Lua: help_UserInfo = help.getUserInfo({user_id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|USER_INVALID|Invalid user provided| + + diff --git a/old_docs/API_docs_v95/methods/messages_checkChatInvite.md b/old_docs/API_docs_v95/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v95/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v95/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v95/methods/messages_editChatAbout.md b/old_docs/API_docs_v95/methods/messages_editChatAbout.md index 05fff24f..19cb898b 100644 --- a/old_docs/API_docs_v95/methods/messages_editChatAbout.md +++ b/old_docs/API_docs_v95/methods/messages_editChatAbout.md @@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| |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_editChatDefaultBannedRights.md b/old_docs/API_docs_v95/methods/messages_editChatDefaultBannedRights.md index a8e075eb..e631fa3b 100644 --- a/old_docs/API_docs_v95/methods/messages_editChatDefaultBannedRights.md +++ b/old_docs/API_docs_v95/methods/messages_editChatDefaultBannedRights.md @@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch | Code | Type | Description | |------|----------|---------------| |400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights| +|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v95/methods/messages_forwardMessages.md b/old_docs/API_docs_v95/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v95/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v95/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v95/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v95/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v95/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v95/methods/messages_setTyping.md b/old_docs/API_docs_v95/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v95/methods/messages_setTyping.md +++ b/old_docs/API_docs_v95/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v95/methods/updates_getChannelDifference.md b/old_docs/API_docs_v95/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v95/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v95/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v95/methods/users_getUsers.md b/old_docs/API_docs_v95/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v95/methods/users_getUsers.md +++ b/old_docs/API_docs_v95/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v97/methods/auth_resendCode.md b/old_docs/API_docs_v97/methods/auth_resendCode.md index ec730d75..2a0e037e 100644 --- a/old_docs/API_docs_v97/methods/auth_resendCode.md +++ b/old_docs/API_docs_v97/methods/auth_resendCode.md @@ -47,6 +47,8 @@ auth_SentCode = auth.resendCode({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_CODE_HASH_EMPTY|phone_code_hash is missing| |400|PHONE_NUMBER_INVALID|The phone number is invalid| diff --git a/old_docs/API_docs_v97/methods/channels_createChannel.md b/old_docs/API_docs_v97/methods/channels_createChannel.md index ecaee0ef..2af2a283 100644 --- a/old_docs/API_docs_v97/methods/channels_createChannel.md +++ b/old_docs/API_docs_v97/methods/channels_createChannel.md @@ -49,6 +49,7 @@ Updates = channels.createChannel({broadcast=Bool, megagroup=Bool, title='string' | Code | Type | Description | |------|----------|---------------| +|400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |400|CHAT_TITLE_EMPTY|No chat title provided| |406|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| |403|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| diff --git a/old_docs/API_docs_v97/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v97/methods/channels_deleteUserHistory.md index 33905a7e..acaf6ea5 100644 --- a/old_docs/API_docs_v97/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v97/methods/channels_deleteUserHistory.md @@ -49,5 +49,6 @@ messages_AffectedHistory = channels.deleteUserHistory({channel=InputChannel, use |------|----------|---------------| |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|400|MSG_ID_INVALID|Invalid message ID provided| diff --git a/old_docs/API_docs_v97/methods/channels_getAdminLog.md b/old_docs/API_docs_v97/methods/channels_getAdminLog.md index adb87748..e3b035ab 100644 --- a/old_docs/API_docs_v97/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v97/methods/channels_getAdminLog.md @@ -55,5 +55,6 @@ channels_AdminLogResults = channels.getAdminLog({channel=InputChannel, q='string |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| +|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 95d7a188..874c1b17 100644 --- a/old_docs/API_docs_v97/methods/channels_getChannels.md +++ b/old_docs/API_docs_v97/methods/channels_getChannels.md @@ -48,5 +48,6 @@ messages_Chats = channels.getChannels({id={InputChannel}, }) |------|----------|---------------| |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| diff --git a/old_docs/API_docs_v97/methods/channels_getFullChannel.md b/old_docs/API_docs_v97/methods/channels_getFullChannel.md index ebd53de4..43024389 100644 --- a/old_docs/API_docs_v97/methods/channels_getFullChannel.md +++ b/old_docs/API_docs_v97/methods/channels_getFullChannel.md @@ -48,6 +48,7 @@ messages_ChatFull = channels.getFullChannel({channel=InputChannel, }) |------|----------|---------------| |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| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| |-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 a4a7c177..981e3d64 100644 --- a/old_docs/API_docs_v97/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v97/methods/channels_joinChannel.md @@ -51,6 +51,8 @@ Updates = channels.joinChannel({channel=InputChannel, }) |400|CHANNELS_TOO_MUCH|You have joined too many channels/supergroups| |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|USER_ALREADY_PARTICIPANT|The user is already in the group| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| diff --git a/old_docs/API_docs_v97/methods/channels_readHistory.md b/old_docs/API_docs_v97/methods/channels_readHistory.md index 3532dae0..ee9151f0 100644 --- a/old_docs/API_docs_v97/methods/channels_readHistory.md +++ b/old_docs/API_docs_v97/methods/channels_readHistory.md @@ -49,5 +49,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| diff --git a/old_docs/API_docs_v97/methods/help_getUserInfo.md b/old_docs/API_docs_v97/methods/help_getUserInfo.md index 641fa986..8ba40223 100644 --- a/old_docs/API_docs_v97/methods/help_getUserInfo.md +++ b/old_docs/API_docs_v97/methods/help_getUserInfo.md @@ -42,3 +42,10 @@ Or, if you're into Lua: help_UserInfo = help.getUserInfo({user_id=InputUser, }) ``` +### Errors + +| Code | Type | Description | +|------|----------|---------------| +|403|USER_INVALID|Invalid user provided| + + diff --git a/old_docs/API_docs_v97/methods/messages_checkChatInvite.md b/old_docs/API_docs_v97/methods/messages_checkChatInvite.md index 0d13d55e..c5eb4a16 100644 --- a/old_docs/API_docs_v97/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v97/methods/messages_checkChatInvite.md @@ -49,5 +49,6 @@ ChatInvite = messages.checkChatInvite({hash='string', }) |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| +|401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| diff --git a/old_docs/API_docs_v97/methods/messages_editChatAbout.md b/old_docs/API_docs_v97/methods/messages_editChatAbout.md index 05fff24f..19cb898b 100644 --- a/old_docs/API_docs_v97/methods/messages_editChatAbout.md +++ b/old_docs/API_docs_v97/methods/messages_editChatAbout.md @@ -48,5 +48,6 @@ Bool = messages.editChatAbout({peer=InputPeer, about='string', }) | Code | Type | Description | |------|----------|---------------| |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_editChatDefaultBannedRights.md b/old_docs/API_docs_v97/methods/messages_editChatDefaultBannedRights.md index a8e075eb..e631fa3b 100644 --- a/old_docs/API_docs_v97/methods/messages_editChatDefaultBannedRights.md +++ b/old_docs/API_docs_v97/methods/messages_editChatDefaultBannedRights.md @@ -48,6 +48,7 @@ Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=Ch | Code | Type | Description | |------|----------|---------------| |400|BANNED_RIGHTS_INVALID|You provided some invalid flags in the banned rights| +|400|CHAT_NOT_MODIFIED|The pinned message wasn't modified| |400|PEER_ID_INVALID|The provided peer id is invalid| diff --git a/old_docs/API_docs_v97/methods/messages_forwardMessages.md b/old_docs/API_docs_v97/methods/messages_forwardMessages.md index 743fa7a6..610af23e 100644 --- a/old_docs/API_docs_v97/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v97/methods/messages_forwardMessages.md @@ -71,6 +71,7 @@ Updates = messages.forwardMessages({silent=Bool, background=Bool, with_my_score= |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_sendMedia.md b/old_docs/API_docs_v97/methods/messages_sendMedia.md index 2dce410b..8575afa2 100644 --- a/old_docs/API_docs_v97/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v97/methods/messages_sendMedia.md @@ -115,10 +115,11 @@ MadelineProto supports all html entities supported by [html_entity_decode](http: |400|MEDIA_CAPTION_TOO_LONG|The caption is too long| |400|MEDIA_EMPTY|The provided media object is invalid| |400|MEDIA_INVALID|Media invalid| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PEER_ID_INVALID|The provided peer id is invalid| |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|| +|400|PHOTO_SAVE_FILE_INVALID|Internal issues, try again later| |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| diff --git a/old_docs/API_docs_v97/methods/messages_setTyping.md b/old_docs/API_docs_v97/methods/messages_setTyping.md index 315908f9..bf109a89 100644 --- a/old_docs/API_docs_v97/methods/messages_setTyping.md +++ b/old_docs/API_docs_v97/methods/messages_setTyping.md @@ -55,6 +55,7 @@ Bool = messages.setTyping({peer=InputPeer, action=SendMessageAction, }) |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| +|406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHAT_WRITE_FORBIDDEN|You can't write in this chat| diff --git a/old_docs/API_docs_v97/methods/updates_getChannelDifference.md b/old_docs/API_docs_v97/methods/updates_getChannelDifference.md index 6c934ca9..5675cd33 100644 --- a/old_docs/API_docs_v97/methods/updates_getChannelDifference.md +++ b/old_docs/API_docs_v97/methods/updates_getChannelDifference.md @@ -53,9 +53,10 @@ updates_ChannelDifference = updates.getChannelDifference({force=Bool, channel=In |400|CHANNEL_INVALID|The provided channel is invalid| |400|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |400|FROM_MESSAGE_BOT_DISABLED|Bots can't use fromMessage min constructors| +|400|MSG_ID_INVALID|Invalid message ID provided| |400|PERSISTENT_TIMESTAMP_EMPTY|Persistent timestamp empty| |400|PERSISTENT_TIMESTAMP_INVALID|Persistent timestamp invalid| -|400|PINNED_DIALOGS_TOO_MUCH|| +|400|PINNED_DIALOGS_TOO_MUCH|Too many pinned dialogs| |400|RANGES_INVALID|Invalid range provided| |406|AUTH_KEY_DUPLICATED|An auth key with the same ID was already generated| |403|CHANNEL_PUBLIC_GROUP_NA|channel/supergroup not available| diff --git a/old_docs/API_docs_v97/methods/users_getUsers.md b/old_docs/API_docs_v97/methods/users_getUsers.md index 7ae0ec69..7858d896 100644 --- a/old_docs/API_docs_v97/methods/users_getUsers.md +++ b/old_docs/API_docs_v97/methods/users_getUsers.md @@ -46,6 +46,7 @@ Vector_of_User = users.getUsers({id={InputUser}, }) | Code | Type | Description | |------|----------|---------------| +|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.| |401|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login|