From 40059c9b3fb11c9a9a4bf04178db359f18ef4210 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 1 Sep 2017 10:27:38 +0000 Subject: [PATCH] Better docs --- docs/API_docs/methods/account_changePhone.md | 1 + docs/API_docs/methods/account_checkUsername.md | 1 + docs/API_docs/methods/account_confirmPhone.md | 1 + .../methods/account_getNotifySettings.md | 1 + docs/API_docs/methods/account_getPrivacy.md | 1 + docs/API_docs/methods/account_getTmpPassword.md | 1 + docs/API_docs/methods/account_registerDevice.md | 1 + docs/API_docs/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_sendConfirmPhoneCode.md | 1 + docs/API_docs/methods/account_setAccountTTL.md | 1 + docs/API_docs/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + docs/API_docs/methods/account_updateProfile.md | 4 +++- docs/API_docs/methods/account_updateUsername.md | 5 ++++- docs/API_docs/methods/auth_bindTempAuthKey.md | 4 +++- docs/API_docs/methods/auth_cancelCode.md | 1 + docs/API_docs/methods/auth_checkPassword.md | 1 + docs/API_docs/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- docs/API_docs/methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + docs/API_docs/methods/auth_resendCode.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + docs/API_docs/methods/auth_sendInvites.md | 1 + .../methods/bots_answerWebhookJSONQuery.md | 4 +++- docs/API_docs/methods/bots_sendCustomRequest.md | 1 + docs/API_docs/methods/channels_checkUsername.md | 4 +++- docs/API_docs/methods/channels_createChannel.md | 1 + docs/API_docs/methods/channels_deleteChannel.md | 4 +++- .../API_docs/methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- docs/API_docs/methods/channels_editAbout.md | 1 + docs/API_docs/methods/channels_editAdmin.md | 6 +++++- docs/API_docs/methods/channels_editBanned.md | 5 ++++- docs/API_docs/methods/channels_editPhoto.md | 1 + docs/API_docs/methods/channels_editTitle.md | 1 + docs/API_docs/methods/channels_exportInvite.md | 4 +++- .../methods/channels_exportMessageLink.md | 1 + docs/API_docs/methods/channels_getAdminLog.md | 4 +++- docs/API_docs/methods/channels_getChannels.md | 1 + docs/API_docs/methods/channels_getMessages.md | 1 + .../API_docs/methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- docs/API_docs/methods/channels_joinChannel.md | 4 +++- docs/API_docs/methods/channels_leaveChannel.md | 6 +++++- docs/API_docs/methods/channels_readHistory.md | 1 + .../methods/channels_readMessageContents.md | 1 + docs/API_docs/methods/channels_reportSpam.md | 1 + docs/API_docs/methods/channels_setStickers.md | 1 + docs/API_docs/methods/channels_toggleInvites.md | 1 + .../methods/channels_toggleSignatures.md | 1 + .../methods/channels_updatePinnedMessage.md | 5 ++++- .../API_docs/methods/channels_updateUsername.md | 6 +++++- docs/API_docs/methods/contacts_block.md | 1 + docs/API_docs/methods/contacts_deleteContact.md | 1 + .../API_docs/methods/contacts_deleteContacts.md | 1 + docs/API_docs/methods/contacts_getTopPeers.md | 1 + docs/API_docs/methods/contacts_importCard.md | 1 + .../methods/contacts_resetTopPeerRating.md | 1 + docs/API_docs/methods/contacts_search.md | 4 +++- docs/API_docs/methods/contacts_unblock.md | 1 + docs/API_docs/methods/initConnection.md | 1 + docs/API_docs/methods/invokeWithLayer.md | 2 ++ docs/API_docs/methods/langpack_getDifference.md | 1 + docs/API_docs/methods/langpack_getLangPack.md | 1 + docs/API_docs/methods/langpack_getLanguages.md | 1 + docs/API_docs/methods/langpack_getStrings.md | 1 + docs/API_docs/methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ docs/API_docs/methods/messages_createChat.md | 4 +++- .../API_docs/methods/messages_deleteChatUser.md | 5 ++++- docs/API_docs/methods/messages_deleteHistory.md | 1 + docs/API_docs/methods/messages_editChatAdmin.md | 1 + docs/API_docs/methods/messages_editChatPhoto.md | 4 +++- docs/API_docs/methods/messages_editChatTitle.md | 1 + .../methods/messages_editInlineBotMessage.md | 4 +++- docs/API_docs/methods/messages_editMessage.md | 5 ++++- .../methods/messages_exportChatInvite.md | 1 + docs/API_docs/methods/messages_faveSticker.md | 1 + .../API_docs/methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../methods/messages_getBotCallbackAnswer.md | 5 ++++- docs/API_docs/methods/messages_getChats.md | 4 +++- .../API_docs/methods/messages_getCommonChats.md | 1 + docs/API_docs/methods/messages_getDhConfig.md | 1 + docs/API_docs/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../methods/messages_getGameHighScores.md | 4 +++- docs/API_docs/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getInlineGameHighScores.md | 4 +++- .../methods/messages_getMessageEditData.md | 4 +++- .../methods/messages_getMessagesViews.md | 1 + .../API_docs/methods/messages_getPeerDialogs.md | 2 ++ .../methods/messages_getPeerSettings.md | 1 + docs/API_docs/methods/messages_getStickerSet.md | 1 + .../methods/messages_getUnreadMentions.md | 15 ++------------- .../API_docs/methods/messages_hideReportSpam.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + docs/API_docs/methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + docs/API_docs/methods/messages_readHistory.md | 1 + docs/API_docs/methods/messages_receivedQueue.md | 1 + .../methods/messages_reorderPinnedDialogs.md | 1 + .../methods/messages_reportEncryptedSpam.md | 1 + docs/API_docs/methods/messages_reportSpam.md | 1 + docs/API_docs/methods/messages_saveDraft.md | 1 + docs/API_docs/methods/messages_saveGif.md | 1 + .../methods/messages_saveRecentSticker.md | 1 + docs/API_docs/methods/messages_search.md | 4 +++- docs/API_docs/methods/messages_searchGifs.md | 1 + docs/API_docs/methods/messages_searchGlobal.md | 1 + docs/API_docs/methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- docs/API_docs/methods/messages_sendMedia.md | 10 +++++++++- docs/API_docs/methods/messages_sendMessage.md | 17 ++++++++++++++++- .../messages_sendScreenshotNotification.md | 1 + .../methods/messages_setBotCallbackAnswer.md | 1 + .../messages_setBotPrecheckoutResults.md | 1 + .../methods/messages_setBotShippingResults.md | 1 + .../methods/messages_setEncryptedTyping.md | 1 + docs/API_docs/methods/messages_setGameScore.md | 4 +++- .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../methods/messages_setInlineGameScore.md | 4 +++- docs/API_docs/methods/messages_setTyping.md | 7 ++++++- docs/API_docs/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_toggleDialogPin.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + docs/API_docs/methods/messages_uploadMedia.md | 4 +++- .../API_docs/methods/payments_getPaymentForm.md | 1 + .../methods/payments_getPaymentReceipt.md | 1 + .../methods/payments_sendPaymentForm.md | 1 + .../methods/payments_validateRequestedInfo.md | 1 + docs/API_docs/methods/phone_receivedCall.md | 1 + docs/API_docs/methods/phone_saveCallDebug.md | 4 +++- docs/API_docs/methods/phone_setCallRating.md | 1 + docs/API_docs/methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ .../methods/stickers_addStickerToSet.md | 4 +++- .../methods/stickers_changeStickerPosition.md | 4 +++- .../methods/stickers_createStickerSet.md | 4 +++- .../methods/stickers_removeStickerFromSet.md | 4 +++- docs/API_docs/methods/upload_getWebFile.md | 1 + docs/API_docs/methods/users_getUsers.md | 2 ++ docs/index.md | 17 ++++++++++++++++- .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../methods/account_registerDevice.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v18/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v18/methods/auth_sendInvites.md | 1 + old_docs/API_docs_v18/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v18/methods/contacts_importCard.md | 1 + .../API_docs_v18/methods/contacts_search.md | 4 +++- .../API_docs_v18/methods/contacts_unblock.md | 1 + old_docs/API_docs_v18/methods/initConnection.md | 1 + .../methods/messages_addChatUser.md | 8 +++++++- .../API_docs_v18/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v18/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v18/methods/messages_getDialogs.md | 2 ++ .../API_docs_v18/methods/messages_getHistory.md | 6 +++++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v18/methods/messages_reportSpam.md | 1 + .../API_docs_v18/methods/messages_search.md | 4 +++- .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../API_docs_v18/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../API_docs_v18/methods/messages_setTyping.md | 7 ++++++- .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v18/methods/users_getUsers.md | 2 ++ .../API_docs_v23/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v23/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v23/methods/account_reportPeer.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v23/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v23/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v23/methods/auth_sendInvites.md | 1 + old_docs/API_docs_v23/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v23/methods/contacts_importCard.md | 1 + .../API_docs_v23/methods/contacts_search.md | 4 +++- .../API_docs_v23/methods/contacts_unblock.md | 1 + old_docs/API_docs_v23/methods/initConnection.md | 1 + .../API_docs_v23/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../API_docs_v23/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v23/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v23/methods/messages_getDialogs.md | 2 ++ .../API_docs_v23/methods/messages_getHistory.md | 6 +++++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v23/methods/messages_reportSpam.md | 1 + .../API_docs_v23/methods/messages_search.md | 4 +++- .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../API_docs_v23/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../API_docs_v23/methods/messages_setTyping.md | 7 ++++++- .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v23/methods/users_getUsers.md | 2 ++ .../API_docs_v25/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v25/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v25/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v25/methods/auth_checkPassword.md | 1 + .../API_docs_v25/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v25/methods/auth_sendInvites.md | 1 + old_docs/API_docs_v25/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v25/methods/contacts_importCard.md | 1 + .../API_docs_v25/methods/contacts_search.md | 4 +++- .../API_docs_v25/methods/contacts_unblock.md | 1 + old_docs/API_docs_v25/methods/initConnection.md | 1 + .../API_docs_v25/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../API_docs_v25/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v25/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v25/methods/messages_getDialogs.md | 2 ++ .../API_docs_v25/methods/messages_getHistory.md | 6 +++++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v25/methods/messages_search.md | 4 +++- .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../API_docs_v25/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../API_docs_v25/methods/messages_setTyping.md | 7 ++++++- .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v25/methods/users_getUsers.md | 2 ++ .../API_docs_v27/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v27/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v27/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v27/methods/auth_checkPassword.md | 1 + .../API_docs_v27/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v27/methods/auth_sendInvites.md | 1 + old_docs/API_docs_v27/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v27/methods/contacts_importCard.md | 1 + .../API_docs_v27/methods/contacts_search.md | 4 +++- .../API_docs_v27/methods/contacts_unblock.md | 1 + old_docs/API_docs_v27/methods/initConnection.md | 1 + .../API_docs_v27/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../API_docs_v27/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v27/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v27/methods/messages_getDialogs.md | 2 ++ .../API_docs_v27/methods/messages_getHistory.md | 6 +++++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v27/methods/messages_search.md | 4 +++- .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../API_docs_v27/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../API_docs_v27/methods/messages_setTyping.md | 7 ++++++- .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v27/methods/users_getUsers.md | 2 ++ .../API_docs_v33/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v33/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v33/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v33/methods/auth_checkPassword.md | 1 + .../API_docs_v33/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v33/methods/auth_sendInvites.md | 1 + old_docs/API_docs_v33/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v33/methods/contacts_importCard.md | 1 + .../API_docs_v33/methods/contacts_search.md | 4 +++- .../API_docs_v33/methods/contacts_unblock.md | 1 + old_docs/API_docs_v33/methods/initConnection.md | 1 + .../API_docs_v33/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v33/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v33/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v33/methods/messages_getDialogs.md | 2 ++ .../API_docs_v33/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getStickerSet.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v33/methods/messages_search.md | 4 +++- .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../API_docs_v33/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../API_docs_v33/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v33/methods/messages_startBot.md | 5 ++++- .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v33/methods/users_getUsers.md | 2 ++ .../API_docs_v38/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v38/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v38/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v38/methods/auth_checkPassword.md | 1 + .../API_docs_v38/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v38/methods/auth_sendInvites.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v38/methods/channels_editAbout.md | 1 + .../API_docs_v38/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v38/methods/channels_editPhoto.md | 1 + .../API_docs_v38/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v38/methods/channels_reportSpam.md | 1 + .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v38/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v38/methods/contacts_importCard.md | 1 + .../API_docs_v38/methods/contacts_search.md | 4 +++- .../API_docs_v38/methods/contacts_unblock.md | 1 + old_docs/API_docs_v38/methods/initConnection.md | 1 + .../API_docs_v38/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v38/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v38/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v38/methods/messages_getDialogs.md | 2 ++ .../API_docs_v38/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v38/methods/messages_reportSpam.md | 1 + .../API_docs_v38/methods/messages_search.md | 4 +++- .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../API_docs_v38/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../API_docs_v38/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v38/methods/messages_startBot.md | 5 ++++- .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v38/methods/users_getUsers.md | 2 ++ .../API_docs_v40/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v40/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v40/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v40/methods/auth_checkPassword.md | 1 + .../API_docs_v40/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v40/methods/auth_sendInvites.md | 1 + old_docs/API_docs_v40/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v40/methods/contacts_importCard.md | 1 + .../API_docs_v40/methods/contacts_search.md | 4 +++- .../API_docs_v40/methods/contacts_unblock.md | 1 + old_docs/API_docs_v40/methods/initConnection.md | 1 + .../API_docs_v40/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v40/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v40/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v40/methods/messages_getDialogs.md | 2 ++ .../API_docs_v40/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getStickerSet.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v40/methods/messages_search.md | 4 +++- .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../API_docs_v40/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../API_docs_v40/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v40/methods/messages_startBot.md | 5 ++++- .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v40/methods/users_getUsers.md | 2 ++ .../API_docs_v41/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v41/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v41/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v41/methods/auth_checkPassword.md | 1 + .../API_docs_v41/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v41/methods/auth_sendInvites.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v41/methods/channels_editAbout.md | 1 + .../API_docs_v41/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v41/methods/channels_editPhoto.md | 1 + .../API_docs_v41/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v41/methods/channels_reportSpam.md | 1 + .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v41/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v41/methods/contacts_importCard.md | 1 + .../API_docs_v41/methods/contacts_search.md | 4 +++- .../API_docs_v41/methods/contacts_unblock.md | 1 + old_docs/API_docs_v41/methods/initConnection.md | 1 + .../API_docs_v41/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v41/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v41/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v41/methods/messages_getDialogs.md | 2 ++ .../API_docs_v41/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v41/methods/messages_reportSpam.md | 1 + .../API_docs_v41/methods/messages_search.md | 4 +++- .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../API_docs_v41/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../API_docs_v41/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v41/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v41/methods/users_getUsers.md | 2 ++ .../API_docs_v42/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v42/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v42/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v42/methods/auth_checkPassword.md | 1 + .../API_docs_v42/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v42/methods/auth_sendInvites.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v42/methods/channels_editAbout.md | 1 + .../API_docs_v42/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v42/methods/channels_editPhoto.md | 1 + .../API_docs_v42/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v42/methods/channels_reportSpam.md | 1 + .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v42/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v42/methods/contacts_importCard.md | 1 + .../API_docs_v42/methods/contacts_search.md | 4 +++- .../API_docs_v42/methods/contacts_unblock.md | 1 + old_docs/API_docs_v42/methods/initConnection.md | 1 + .../API_docs_v42/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v42/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v42/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v42/methods/messages_getDialogs.md | 2 ++ .../API_docs_v42/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v42/methods/messages_reportSpam.md | 1 + .../API_docs_v42/methods/messages_search.md | 4 +++- .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../API_docs_v42/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../API_docs_v42/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v42/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v42/methods/users_getUsers.md | 2 ++ .../API_docs_v44/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v44/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v44/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v44/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v44/methods/auth_checkPassword.md | 1 + .../API_docs_v44/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v44/methods/auth_sendInvites.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v44/methods/channels_editAbout.md | 1 + .../API_docs_v44/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v44/methods/channels_editPhoto.md | 1 + .../API_docs_v44/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v44/methods/channels_reportSpam.md | 1 + .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v44/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v44/methods/contacts_importCard.md | 1 + .../API_docs_v44/methods/contacts_search.md | 4 +++- .../API_docs_v44/methods/contacts_unblock.md | 1 + old_docs/API_docs_v44/methods/initConnection.md | 1 + .../API_docs_v44/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v44/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v44/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v44/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../API_docs_v44/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v44/methods/messages_reportSpam.md | 1 + .../API_docs_v44/methods/messages_search.md | 4 +++- .../API_docs_v44/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../API_docs_v44/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../API_docs_v44/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v44/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v44/methods/users_getUsers.md | 2 ++ .../API_docs_v45/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v45/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v45/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v45/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v45/methods/auth_checkPassword.md | 1 + .../API_docs_v45/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v45/methods/auth_sendInvites.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v45/methods/channels_editAbout.md | 1 + .../API_docs_v45/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v45/methods/channels_editPhoto.md | 1 + .../API_docs_v45/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v45/methods/channels_reportSpam.md | 1 + .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v45/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v45/methods/contacts_importCard.md | 1 + .../API_docs_v45/methods/contacts_search.md | 4 +++- .../API_docs_v45/methods/contacts_unblock.md | 1 + old_docs/API_docs_v45/methods/initConnection.md | 1 + .../API_docs_v45/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v45/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v45/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v45/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../API_docs_v45/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v45/methods/messages_reportSpam.md | 1 + .../API_docs_v45/methods/messages_saveGif.md | 1 + .../API_docs_v45/methods/messages_search.md | 4 +++- .../API_docs_v45/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- .../API_docs_v45/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../API_docs_v45/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v45/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v45/methods/users_getUsers.md | 2 ++ .../API_docs_v46/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v46/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v46/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v46/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v46/methods/auth_checkPassword.md | 1 + .../API_docs_v46/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v46/methods/auth_sendInvites.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v46/methods/channels_editAbout.md | 1 + .../API_docs_v46/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v46/methods/channels_editPhoto.md | 1 + .../API_docs_v46/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v46/methods/channels_reportSpam.md | 1 + .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v46/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v46/methods/contacts_importCard.md | 1 + .../API_docs_v46/methods/contacts_search.md | 4 +++- .../API_docs_v46/methods/contacts_unblock.md | 1 + old_docs/API_docs_v46/methods/initConnection.md | 1 + .../API_docs_v46/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v46/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../API_docs_v46/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v46/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../API_docs_v46/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v46/methods/messages_reportSpam.md | 1 + .../API_docs_v46/methods/messages_saveGif.md | 1 + .../API_docs_v46/methods/messages_search.md | 4 +++- .../API_docs_v46/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- .../API_docs_v46/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setEncryptedTyping.md | 1 + .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../API_docs_v46/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v46/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v46/methods/users_getUsers.md | 2 ++ .../API_docs_v51/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v51/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v51/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v51/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v51/methods/auth_cancelCode.md | 1 + .../API_docs_v51/methods/auth_checkPassword.md | 1 + .../API_docs_v51/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../API_docs_v51/methods/auth_resendCode.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v51/methods/auth_sendInvites.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v51/methods/channels_editAbout.md | 1 + .../API_docs_v51/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v51/methods/channels_editPhoto.md | 1 + .../API_docs_v51/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_exportMessageLink.md | 1 + .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v51/methods/channels_reportSpam.md | 1 + .../methods/channels_toggleInvites.md | 1 + .../methods/channels_toggleSignatures.md | 1 + .../methods/channels_updatePinnedMessage.md | 5 ++++- .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v51/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../API_docs_v51/methods/contacts_importCard.md | 1 + .../API_docs_v51/methods/contacts_search.md | 4 +++- .../API_docs_v51/methods/contacts_unblock.md | 1 + old_docs/API_docs_v51/methods/initConnection.md | 1 + .../API_docs_v51/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v51/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_editInlineBotMessage.md | 4 +++- .../methods/messages_editMessage.md | 5 ++++- .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../methods/messages_getBotCallbackAnswer.md | 5 ++++- .../API_docs_v51/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v51/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../API_docs_v51/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getMessageEditData.md | 4 +++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getPeerSettings.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_hideReportSpam.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v51/methods/messages_reportSpam.md | 1 + .../API_docs_v51/methods/messages_saveGif.md | 1 + .../API_docs_v51/methods/messages_search.md | 4 +++- .../API_docs_v51/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- .../API_docs_v51/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setBotCallbackAnswer.md | 1 + .../methods/messages_setEncryptedTyping.md | 1 + .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../API_docs_v51/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v51/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v51/methods/users_getUsers.md | 2 ++ .../API_docs_v53/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v53/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v53/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v53/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v53/methods/auth_cancelCode.md | 1 + .../API_docs_v53/methods/auth_checkPassword.md | 1 + .../API_docs_v53/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../API_docs_v53/methods/auth_resendCode.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v53/methods/auth_sendInvites.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v53/methods/channels_editAbout.md | 1 + .../API_docs_v53/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v53/methods/channels_editPhoto.md | 1 + .../API_docs_v53/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_exportMessageLink.md | 1 + .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v53/methods/channels_reportSpam.md | 1 + .../methods/channels_toggleInvites.md | 1 + .../methods/channels_toggleSignatures.md | 1 + .../methods/channels_updatePinnedMessage.md | 5 ++++- .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v53/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../methods/contacts_getTopPeers.md | 1 + .../API_docs_v53/methods/contacts_importCard.md | 1 + .../methods/contacts_resetTopPeerRating.md | 1 + .../API_docs_v53/methods/contacts_search.md | 4 +++- .../API_docs_v53/methods/contacts_unblock.md | 1 + old_docs/API_docs_v53/methods/initConnection.md | 1 + .../API_docs_v53/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v53/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_editInlineBotMessage.md | 4 +++- .../methods/messages_editMessage.md | 5 ++++- .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../methods/messages_getBotCallbackAnswer.md | 5 ++++- .../API_docs_v53/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v53/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../API_docs_v53/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getMessageEditData.md | 4 +++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getPeerDialogs.md | 2 ++ .../methods/messages_getPeerSettings.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_hideReportSpam.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v53/methods/messages_reportSpam.md | 1 + .../API_docs_v53/methods/messages_saveDraft.md | 1 + .../API_docs_v53/methods/messages_saveGif.md | 1 + .../API_docs_v53/methods/messages_search.md | 4 +++- .../API_docs_v53/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- .../API_docs_v53/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setBotCallbackAnswer.md | 1 + .../methods/messages_setEncryptedTyping.md | 1 + .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../API_docs_v53/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v53/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v53/methods/users_getUsers.md | 2 ++ .../API_docs_v55/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_confirmPhone.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v55/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v55/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_sendConfirmPhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v55/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v55/methods/auth_cancelCode.md | 1 + .../API_docs_v55/methods/auth_checkPassword.md | 1 + .../API_docs_v55/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../API_docs_v55/methods/auth_resendCode.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v55/methods/auth_sendInvites.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v55/methods/channels_editAbout.md | 1 + .../API_docs_v55/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v55/methods/channels_editPhoto.md | 1 + .../API_docs_v55/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_exportMessageLink.md | 1 + .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v55/methods/channels_reportSpam.md | 1 + .../methods/channels_toggleInvites.md | 1 + .../methods/channels_toggleSignatures.md | 1 + .../methods/channels_updatePinnedMessage.md | 5 ++++- .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v55/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../methods/contacts_getTopPeers.md | 1 + .../API_docs_v55/methods/contacts_importCard.md | 1 + .../methods/contacts_resetTopPeerRating.md | 1 + .../API_docs_v55/methods/contacts_search.md | 4 +++- .../API_docs_v55/methods/contacts_unblock.md | 1 + old_docs/API_docs_v55/methods/initConnection.md | 1 + .../API_docs_v55/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v55/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_editInlineBotMessage.md | 4 +++- .../methods/messages_editMessage.md | 5 ++++- .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../methods/messages_getBotCallbackAnswer.md | 5 ++++- .../API_docs_v55/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v55/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../API_docs_v55/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getMessageEditData.md | 4 +++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getPeerDialogs.md | 2 ++ .../methods/messages_getPeerSettings.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_hideReportSpam.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v55/methods/messages_reportSpam.md | 1 + .../API_docs_v55/methods/messages_saveDraft.md | 1 + .../API_docs_v55/methods/messages_saveGif.md | 1 + .../methods/messages_saveRecentSticker.md | 1 + .../API_docs_v55/methods/messages_search.md | 4 +++- .../API_docs_v55/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- .../API_docs_v55/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setBotCallbackAnswer.md | 1 + .../methods/messages_setEncryptedTyping.md | 1 + .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../API_docs_v55/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v55/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v55/methods/users_getUsers.md | 2 ++ .../API_docs_v57/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_confirmPhone.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v57/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v57/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_sendConfirmPhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v57/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v57/methods/auth_cancelCode.md | 1 + .../API_docs_v57/methods/auth_checkPassword.md | 1 + .../API_docs_v57/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../API_docs_v57/methods/auth_resendCode.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v57/methods/auth_sendInvites.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v57/methods/channels_editAbout.md | 1 + .../API_docs_v57/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v57/methods/channels_editPhoto.md | 1 + .../API_docs_v57/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_exportMessageLink.md | 1 + .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v57/methods/channels_reportSpam.md | 1 + .../methods/channels_toggleInvites.md | 1 + .../methods/channels_toggleSignatures.md | 1 + .../methods/channels_updatePinnedMessage.md | 5 ++++- .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v57/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../methods/contacts_getTopPeers.md | 1 + .../API_docs_v57/methods/contacts_importCard.md | 1 + .../methods/contacts_resetTopPeerRating.md | 1 + .../API_docs_v57/methods/contacts_search.md | 4 +++- .../API_docs_v57/methods/contacts_unblock.md | 1 + old_docs/API_docs_v57/methods/initConnection.md | 1 + .../API_docs_v57/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v57/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_editInlineBotMessage.md | 4 +++- .../methods/messages_editMessage.md | 5 ++++- .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../methods/messages_getBotCallbackAnswer.md | 5 ++++- .../API_docs_v57/methods/messages_getChats.md | 4 +++- .../methods/messages_getDhConfig.md | 1 + .../API_docs_v57/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../methods/messages_getGameHighScores.md | 4 +++- .../API_docs_v57/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getInlineGameHighScores.md | 4 +++- .../methods/messages_getMessageEditData.md | 4 +++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getPeerDialogs.md | 2 ++ .../methods/messages_getPeerSettings.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_hideReportSpam.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../API_docs_v57/methods/messages_reportSpam.md | 1 + .../API_docs_v57/methods/messages_saveDraft.md | 1 + .../API_docs_v57/methods/messages_saveGif.md | 1 + .../methods/messages_saveRecentSticker.md | 1 + .../API_docs_v57/methods/messages_search.md | 4 +++- .../API_docs_v57/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- .../API_docs_v57/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setBotCallbackAnswer.md | 1 + .../methods/messages_setEncryptedTyping.md | 1 + .../methods/messages_setGameScore.md | 4 +++- .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../methods/messages_setInlineGameScore.md | 4 +++- .../API_docs_v57/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v57/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v57/methods/users_getUsers.md | 2 ++ .../API_docs_v62/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_confirmPhone.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v62/methods/account_getPrivacy.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v62/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_sendConfirmPhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v62/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v62/methods/auth_cancelCode.md | 1 + .../API_docs_v62/methods/auth_checkPassword.md | 1 + .../API_docs_v62/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../API_docs_v62/methods/auth_resendCode.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v62/methods/auth_sendInvites.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v62/methods/channels_editAbout.md | 1 + .../API_docs_v62/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v62/methods/channels_editPhoto.md | 1 + .../API_docs_v62/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_exportMessageLink.md | 1 + .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v62/methods/channels_reportSpam.md | 1 + .../methods/channels_toggleInvites.md | 1 + .../methods/channels_toggleSignatures.md | 1 + .../methods/channels_updatePinnedMessage.md | 5 ++++- .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v62/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../methods/contacts_getTopPeers.md | 1 + .../API_docs_v62/methods/contacts_importCard.md | 1 + .../methods/contacts_resetTopPeerRating.md | 1 + .../API_docs_v62/methods/contacts_search.md | 4 +++- .../API_docs_v62/methods/contacts_unblock.md | 1 + old_docs/API_docs_v62/methods/initConnection.md | 1 + .../API_docs_v62/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v62/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_editInlineBotMessage.md | 4 +++- .../methods/messages_editMessage.md | 5 ++++- .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../methods/messages_getBotCallbackAnswer.md | 5 ++++- .../API_docs_v62/methods/messages_getChats.md | 4 +++- .../methods/messages_getCommonChats.md | 1 + .../methods/messages_getDhConfig.md | 1 + .../API_docs_v62/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../methods/messages_getGameHighScores.md | 4 +++- .../API_docs_v62/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getInlineGameHighScores.md | 4 +++- .../methods/messages_getMessageEditData.md | 4 +++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getPeerDialogs.md | 2 ++ .../methods/messages_getPeerSettings.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_hideReportSpam.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../methods/messages_reorderPinnedDialogs.md | 1 + .../methods/messages_reportEncryptedSpam.md | 1 + .../API_docs_v62/methods/messages_reportSpam.md | 1 + .../API_docs_v62/methods/messages_saveDraft.md | 1 + .../API_docs_v62/methods/messages_saveGif.md | 1 + .../methods/messages_saveRecentSticker.md | 1 + .../API_docs_v62/methods/messages_search.md | 4 +++- .../API_docs_v62/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- .../API_docs_v62/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setBotCallbackAnswer.md | 1 + .../methods/messages_setEncryptedTyping.md | 1 + .../methods/messages_setGameScore.md | 4 +++- .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../methods/messages_setInlineGameScore.md | 4 +++- .../API_docs_v62/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v62/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_toggleDialogPin.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../API_docs_v62/methods/phone_receivedCall.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ old_docs/API_docs_v62/methods/users_getUsers.md | 2 ++ .../API_docs_v65/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_confirmPhone.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v65/methods/account_getPrivacy.md | 1 + .../methods/account_getTmpPassword.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v65/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_sendConfirmPhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v65/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v65/methods/auth_cancelCode.md | 1 + .../API_docs_v65/methods/auth_checkPassword.md | 1 + .../API_docs_v65/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../API_docs_v65/methods/auth_resendCode.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v65/methods/auth_sendInvites.md | 1 + .../methods/bots_answerWebhookJSONQuery.md | 4 +++- .../methods/bots_sendCustomRequest.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v65/methods/channels_editAbout.md | 1 + .../API_docs_v65/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v65/methods/channels_editPhoto.md | 1 + .../API_docs_v65/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_exportMessageLink.md | 1 + .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v65/methods/channels_reportSpam.md | 1 + .../methods/channels_toggleInvites.md | 1 + .../methods/channels_toggleSignatures.md | 1 + .../methods/channels_updatePinnedMessage.md | 5 ++++- .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v65/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../methods/contacts_getTopPeers.md | 1 + .../API_docs_v65/methods/contacts_importCard.md | 1 + .../methods/contacts_resetTopPeerRating.md | 1 + .../API_docs_v65/methods/contacts_search.md | 4 +++- .../API_docs_v65/methods/contacts_unblock.md | 1 + old_docs/API_docs_v65/methods/initConnection.md | 1 + .../API_docs_v65/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v65/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_editInlineBotMessage.md | 4 +++- .../methods/messages_editMessage.md | 5 ++++- .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../methods/messages_getBotCallbackAnswer.md | 5 ++++- .../API_docs_v65/methods/messages_getChats.md | 4 +++- .../methods/messages_getCommonChats.md | 1 + .../methods/messages_getDhConfig.md | 1 + .../API_docs_v65/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../methods/messages_getGameHighScores.md | 4 +++- .../API_docs_v65/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getInlineGameHighScores.md | 4 +++- .../methods/messages_getMessageEditData.md | 4 +++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getPeerDialogs.md | 2 ++ .../methods/messages_getPeerSettings.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_hideReportSpam.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../methods/messages_reorderPinnedDialogs.md | 1 + .../methods/messages_reportEncryptedSpam.md | 1 + .../API_docs_v65/methods/messages_reportSpam.md | 1 + .../API_docs_v65/methods/messages_saveDraft.md | 1 + .../API_docs_v65/methods/messages_saveGif.md | 1 + .../methods/messages_saveRecentSticker.md | 1 + .../API_docs_v65/methods/messages_search.md | 4 +++- .../API_docs_v65/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- .../API_docs_v65/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setBotCallbackAnswer.md | 1 + .../messages_setBotPrecheckoutResults.md | 1 + .../methods/messages_setBotShippingResults.md | 1 + .../methods/messages_setEncryptedTyping.md | 1 + .../methods/messages_setGameScore.md | 4 +++- .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../methods/messages_setInlineGameScore.md | 4 +++- .../API_docs_v65/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v65/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_toggleDialogPin.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/payments_getPaymentForm.md | 1 + .../methods/payments_getPaymentReceipt.md | 1 + .../methods/payments_sendPaymentForm.md | 1 + .../methods/payments_validateRequestedInfo.md | 1 + .../API_docs_v65/methods/phone_receivedCall.md | 1 + .../API_docs_v65/methods/phone_saveCallDebug.md | 4 +++- .../API_docs_v65/methods/phone_setCallRating.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ .../API_docs_v65/methods/upload_getWebFile.md | 1 + old_docs/API_docs_v65/methods/users_getUsers.md | 2 ++ .../API_docs_v66/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_confirmPhone.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v66/methods/account_getPrivacy.md | 1 + .../methods/account_getTmpPassword.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v66/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_sendConfirmPhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v66/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v66/methods/auth_cancelCode.md | 1 + .../API_docs_v66/methods/auth_checkPassword.md | 1 + .../API_docs_v66/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../API_docs_v66/methods/auth_resendCode.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v66/methods/auth_sendInvites.md | 1 + .../methods/bots_answerWebhookJSONQuery.md | 4 +++- .../methods/bots_sendCustomRequest.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v66/methods/channels_editAbout.md | 1 + .../API_docs_v66/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v66/methods/channels_editPhoto.md | 1 + .../API_docs_v66/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_exportMessageLink.md | 1 + .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v66/methods/channels_reportSpam.md | 1 + .../methods/channels_toggleInvites.md | 1 + .../methods/channels_toggleSignatures.md | 1 + .../methods/channels_updatePinnedMessage.md | 5 ++++- .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v66/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../methods/contacts_getTopPeers.md | 1 + .../API_docs_v66/methods/contacts_importCard.md | 1 + .../methods/contacts_resetTopPeerRating.md | 1 + .../API_docs_v66/methods/contacts_search.md | 4 +++- .../API_docs_v66/methods/contacts_unblock.md | 1 + old_docs/API_docs_v66/methods/initConnection.md | 1 + .../API_docs_v66/methods/invokeWithLayer.md | 2 ++ .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v66/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_editInlineBotMessage.md | 4 +++- .../methods/messages_editMessage.md | 5 ++++- .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../methods/messages_getBotCallbackAnswer.md | 5 ++++- .../API_docs_v66/methods/messages_getChats.md | 4 +++- .../methods/messages_getCommonChats.md | 1 + .../methods/messages_getDhConfig.md | 1 + .../API_docs_v66/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../methods/messages_getGameHighScores.md | 4 +++- .../API_docs_v66/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getInlineGameHighScores.md | 4 +++- .../methods/messages_getMessageEditData.md | 4 +++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getPeerDialogs.md | 2 ++ .../methods/messages_getPeerSettings.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_hideReportSpam.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../methods/messages_reorderPinnedDialogs.md | 1 + .../methods/messages_reportEncryptedSpam.md | 1 + .../API_docs_v66/methods/messages_reportSpam.md | 1 + .../API_docs_v66/methods/messages_saveDraft.md | 1 + .../API_docs_v66/methods/messages_saveGif.md | 1 + .../methods/messages_saveRecentSticker.md | 1 + .../API_docs_v66/methods/messages_search.md | 4 +++- .../API_docs_v66/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- .../API_docs_v66/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setBotCallbackAnswer.md | 1 + .../messages_setBotPrecheckoutResults.md | 1 + .../methods/messages_setBotShippingResults.md | 1 + .../methods/messages_setEncryptedTyping.md | 1 + .../methods/messages_setGameScore.md | 4 +++- .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../methods/messages_setInlineGameScore.md | 4 +++- .../API_docs_v66/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v66/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_toggleDialogPin.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/payments_getPaymentForm.md | 1 + .../methods/payments_getPaymentReceipt.md | 1 + .../methods/payments_sendPaymentForm.md | 1 + .../methods/payments_validateRequestedInfo.md | 1 + .../API_docs_v66/methods/phone_receivedCall.md | 1 + .../API_docs_v66/methods/phone_saveCallDebug.md | 4 +++- .../API_docs_v66/methods/phone_setCallRating.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ .../API_docs_v66/methods/upload_getWebFile.md | 1 + old_docs/API_docs_v66/methods/users_getUsers.md | 2 ++ .../API_docs_v68/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_confirmPhone.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v68/methods/account_getPrivacy.md | 1 + .../methods/account_getTmpPassword.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v68/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_sendConfirmPhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v68/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v68/methods/auth_cancelCode.md | 1 + .../API_docs_v68/methods/auth_checkPassword.md | 1 + .../API_docs_v68/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../API_docs_v68/methods/auth_resendCode.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v68/methods/auth_sendInvites.md | 1 + .../methods/bots_answerWebhookJSONQuery.md | 4 +++- .../methods/bots_sendCustomRequest.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v68/methods/channels_editAbout.md | 1 + .../API_docs_v68/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v68/methods/channels_editBanned.md | 5 ++++- .../API_docs_v68/methods/channels_editPhoto.md | 1 + .../API_docs_v68/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_exportMessageLink.md | 1 + .../methods/channels_getAdminLog.md | 4 +++- .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v68/methods/channels_reportSpam.md | 1 + .../methods/channels_toggleInvites.md | 1 + .../methods/channels_toggleSignatures.md | 1 + .../methods/channels_updatePinnedMessage.md | 5 ++++- .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v68/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../methods/contacts_getTopPeers.md | 1 + .../API_docs_v68/methods/contacts_importCard.md | 1 + .../methods/contacts_resetTopPeerRating.md | 1 + .../API_docs_v68/methods/contacts_search.md | 4 +++- .../API_docs_v68/methods/contacts_unblock.md | 1 + old_docs/API_docs_v68/methods/initConnection.md | 1 + .../API_docs_v68/methods/invokeWithLayer.md | 2 ++ .../methods/langpack_getDifference.md | 1 + .../methods/langpack_getLangPack.md | 1 + .../methods/langpack_getLanguages.md | 1 + .../API_docs_v68/methods/langpack_getStrings.md | 1 + .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v68/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_editInlineBotMessage.md | 4 +++- .../methods/messages_editMessage.md | 5 ++++- .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../methods/messages_getBotCallbackAnswer.md | 5 ++++- .../API_docs_v68/methods/messages_getChats.md | 4 +++- .../methods/messages_getCommonChats.md | 1 + .../methods/messages_getDhConfig.md | 1 + .../API_docs_v68/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../methods/messages_getGameHighScores.md | 4 +++- .../API_docs_v68/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getInlineGameHighScores.md | 4 +++- .../methods/messages_getMessageEditData.md | 4 +++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getPeerDialogs.md | 2 ++ .../methods/messages_getPeerSettings.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_hideReportSpam.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../methods/messages_reorderPinnedDialogs.md | 1 + .../methods/messages_reportEncryptedSpam.md | 1 + .../API_docs_v68/methods/messages_reportSpam.md | 1 + .../API_docs_v68/methods/messages_saveDraft.md | 1 + .../API_docs_v68/methods/messages_saveGif.md | 1 + .../methods/messages_saveRecentSticker.md | 1 + .../API_docs_v68/methods/messages_search.md | 4 +++- .../API_docs_v68/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- .../API_docs_v68/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../methods/messages_setBotCallbackAnswer.md | 1 + .../messages_setBotPrecheckoutResults.md | 1 + .../methods/messages_setBotShippingResults.md | 1 + .../methods/messages_setEncryptedTyping.md | 1 + .../methods/messages_setGameScore.md | 4 +++- .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../methods/messages_setInlineGameScore.md | 4 +++- .../API_docs_v68/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v68/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_toggleDialogPin.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/messages_uploadMedia.md | 4 +++- .../methods/payments_getPaymentForm.md | 1 + .../methods/payments_getPaymentReceipt.md | 1 + .../methods/payments_sendPaymentForm.md | 1 + .../methods/payments_validateRequestedInfo.md | 1 + .../API_docs_v68/methods/phone_receivedCall.md | 1 + .../API_docs_v68/methods/phone_saveCallDebug.md | 4 +++- .../API_docs_v68/methods/phone_setCallRating.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ .../methods/stickers_addStickerToSet.md | 4 +++- .../methods/stickers_changeStickerPosition.md | 4 +++- .../methods/stickers_createStickerSet.md | 4 +++- .../methods/stickers_removeStickerFromSet.md | 4 +++- .../API_docs_v68/methods/upload_getWebFile.md | 1 + old_docs/API_docs_v68/methods/users_getUsers.md | 2 ++ .../API_docs_v70/methods/account_changePhone.md | 1 + .../methods/account_checkUsername.md | 1 + .../methods/account_confirmPhone.md | 1 + .../methods/account_getNotifySettings.md | 1 + .../API_docs_v70/methods/account_getPrivacy.md | 1 + .../methods/account_getTmpPassword.md | 1 + .../methods/account_registerDevice.md | 1 + .../API_docs_v70/methods/account_reportPeer.md | 1 + .../methods/account_resetAuthorization.md | 1 + .../methods/account_sendChangePhoneCode.md | 1 + .../methods/account_sendConfirmPhoneCode.md | 1 + .../methods/account_setAccountTTL.md | 1 + .../API_docs_v70/methods/account_setPrivacy.md | 1 + .../methods/account_unregisterDevice.md | 1 + .../methods/account_updateNotifySettings.md | 1 + .../methods/account_updatePasswordSettings.md | 1 + .../methods/account_updateProfile.md | 4 +++- .../methods/account_updateUsername.md | 5 ++++- .../methods/auth_bindTempAuthKey.md | 4 +++- .../API_docs_v70/methods/auth_cancelCode.md | 1 + .../API_docs_v70/methods/auth_checkPassword.md | 1 + .../API_docs_v70/methods/auth_checkPhone.md | 6 +++++- .../methods/auth_exportAuthorization.md | 1 + .../methods/auth_importAuthorization.md | 4 +++- .../methods/auth_recoverPassword.md | 1 + .../methods/auth_requestPasswordRecovery.md | 1 + .../API_docs_v70/methods/auth_resendCode.md | 1 + .../methods/auth_resetAuthorizations.md | 1 + .../API_docs_v70/methods/auth_sendInvites.md | 1 + .../methods/bots_answerWebhookJSONQuery.md | 4 +++- .../methods/bots_sendCustomRequest.md | 1 + .../methods/channels_checkUsername.md | 4 +++- .../methods/channels_createChannel.md | 1 + .../methods/channels_deleteChannel.md | 4 +++- .../methods/channels_deleteMessages.md | 4 +++- .../methods/channels_deleteUserHistory.md | 4 +++- .../API_docs_v70/methods/channels_editAbout.md | 1 + .../API_docs_v70/methods/channels_editAdmin.md | 6 +++++- .../API_docs_v70/methods/channels_editBanned.md | 5 ++++- .../API_docs_v70/methods/channels_editPhoto.md | 1 + .../API_docs_v70/methods/channels_editTitle.md | 1 + .../methods/channels_exportInvite.md | 4 +++- .../methods/channels_exportMessageLink.md | 1 + .../methods/channels_getAdminLog.md | 4 +++- .../methods/channels_getChannels.md | 1 + .../methods/channels_getMessages.md | 1 + .../methods/channels_getParticipant.md | 4 +++- .../methods/channels_inviteToChannel.md | 15 ++++++++++++++- .../methods/channels_joinChannel.md | 4 +++- .../methods/channels_leaveChannel.md | 6 +++++- .../methods/channels_readHistory.md | 1 + .../API_docs_v70/methods/channels_reportSpam.md | 1 + .../methods/channels_toggleInvites.md | 1 + .../methods/channels_toggleSignatures.md | 1 + .../methods/channels_updatePinnedMessage.md | 5 ++++- .../methods/channels_updateUsername.md | 6 +++++- old_docs/API_docs_v70/methods/contacts_block.md | 1 + .../methods/contacts_deleteContact.md | 1 + .../methods/contacts_deleteContacts.md | 1 + .../methods/contacts_getTopPeers.md | 1 + .../API_docs_v70/methods/contacts_importCard.md | 1 + .../methods/contacts_resetTopPeerRating.md | 1 + .../API_docs_v70/methods/contacts_search.md | 4 +++- .../API_docs_v70/methods/contacts_unblock.md | 1 + old_docs/API_docs_v70/methods/initConnection.md | 1 + .../API_docs_v70/methods/invokeWithLayer.md | 2 ++ .../methods/langpack_getDifference.md | 1 + .../methods/langpack_getLangPack.md | 1 + .../methods/langpack_getLanguages.md | 1 + .../API_docs_v70/methods/langpack_getStrings.md | 1 + .../methods/messages_addChatUser.md | 8 +++++++- .../methods/messages_checkChatInvite.md | 3 +++ .../API_docs_v70/methods/messages_createChat.md | 4 +++- .../methods/messages_deleteChatUser.md | 5 ++++- .../methods/messages_deleteHistory.md | 1 + .../methods/messages_editChatAdmin.md | 1 + .../methods/messages_editChatPhoto.md | 4 +++- .../methods/messages_editChatTitle.md | 1 + .../methods/messages_editInlineBotMessage.md | 4 +++- .../methods/messages_editMessage.md | 5 ++++- .../methods/messages_exportChatInvite.md | 1 + .../methods/messages_forwardMessage.md | 4 +++- .../methods/messages_forwardMessages.md | 9 ++++++++- .../methods/messages_getBotCallbackAnswer.md | 5 ++++- .../API_docs_v70/methods/messages_getChats.md | 4 +++- .../methods/messages_getCommonChats.md | 1 + .../methods/messages_getDhConfig.md | 1 + .../API_docs_v70/methods/messages_getDialogs.md | 2 ++ .../methods/messages_getDocumentByHash.md | 1 + .../methods/messages_getGameHighScores.md | 4 +++- .../API_docs_v70/methods/messages_getHistory.md | 6 +++++- .../methods/messages_getInlineBotResults.md | 5 ++++- .../methods/messages_getInlineGameHighScores.md | 4 +++- .../methods/messages_getMessageEditData.md | 4 +++- .../methods/messages_getMessagesViews.md | 1 + .../methods/messages_getPeerDialogs.md | 2 ++ .../methods/messages_getPeerSettings.md | 1 + .../methods/messages_getStickerSet.md | 1 + .../methods/messages_hideReportSpam.md | 1 + .../methods/messages_importChatInvite.md | 7 ++++++- .../methods/messages_installStickerSet.md | 1 + .../methods/messages_migrateChat.md | 4 +++- .../methods/messages_readEncryptedHistory.md | 1 + .../methods/messages_readHistory.md | 1 + .../methods/messages_receivedQueue.md | 1 + .../methods/messages_reorderPinnedDialogs.md | 1 + .../methods/messages_reportEncryptedSpam.md | 1 + .../API_docs_v70/methods/messages_reportSpam.md | 1 + .../API_docs_v70/methods/messages_saveDraft.md | 1 + .../API_docs_v70/methods/messages_saveGif.md | 1 + .../methods/messages_saveRecentSticker.md | 1 + .../API_docs_v70/methods/messages_search.md | 4 +++- .../API_docs_v70/methods/messages_searchGifs.md | 1 + .../methods/messages_searchGlobal.md | 1 + .../methods/messages_sendEncrypted.md | 4 +++- .../methods/messages_sendEncryptedFile.md | 1 + .../methods/messages_sendEncryptedService.md | 1 + .../methods/messages_sendInlineBotResult.md | 4 +++- .../API_docs_v70/methods/messages_sendMedia.md | 10 +++++++++- .../methods/messages_sendMessage.md | 17 ++++++++++++++++- .../messages_sendScreenshotNotification.md | 1 + .../methods/messages_setBotCallbackAnswer.md | 1 + .../messages_setBotPrecheckoutResults.md | 1 + .../methods/messages_setBotShippingResults.md | 1 + .../methods/messages_setEncryptedTyping.md | 1 + .../methods/messages_setGameScore.md | 4 +++- .../methods/messages_setInlineBotResults.md | 13 ++++++++++++- .../methods/messages_setInlineGameScore.md | 4 +++- .../API_docs_v70/methods/messages_setTyping.md | 7 ++++++- .../API_docs_v70/methods/messages_startBot.md | 5 ++++- .../methods/messages_toggleChatAdmins.md | 1 + .../methods/messages_toggleDialogPin.md | 1 + .../methods/messages_uninstallStickerSet.md | 1 + .../methods/messages_uploadMedia.md | 4 +++- .../methods/payments_getPaymentForm.md | 1 + .../methods/payments_getPaymentReceipt.md | 1 + .../methods/payments_sendPaymentForm.md | 1 + .../methods/payments_validateRequestedInfo.md | 1 + .../API_docs_v70/methods/phone_receivedCall.md | 1 + .../API_docs_v70/methods/phone_saveCallDebug.md | 4 +++- .../API_docs_v70/methods/phone_setCallRating.md | 1 + .../methods/photos_getUserPhotos.md | 4 +++- .../methods/photos_uploadProfilePhoto.md | 2 ++ .../methods/stickers_addStickerToSet.md | 4 +++- .../methods/stickers_changeStickerPosition.md | 4 +++- .../methods/stickers_createStickerSet.md | 4 +++- .../methods/stickers_removeStickerFromSet.md | 4 +++- .../API_docs_v70/methods/upload_getWebFile.md | 1 + old_docs/API_docs_v70/methods/users_getUsers.md | 2 ++ src/danog/MadelineProto/DocsBuilder/Methods.php | 2 +- src/danog/MadelineProto/MTProto.php | 2 +- 2196 files changed, 5279 insertions(+), 828 deletions(-) diff --git a/docs/API_docs/methods/account_changePhone.md b/docs/API_docs/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/docs/API_docs/methods/account_changePhone.md +++ b/docs/API_docs/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_checkUsername.md b/docs/API_docs/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/docs/API_docs/methods/account_checkUsername.md +++ b/docs/API_docs/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/docs/API_docs/methods/account_confirmPhone.md b/docs/API_docs/methods/account_confirmPhone.md index 9cb5151b..84bd87e7 100644 --- a/docs/API_docs/methods/account_confirmPhone.md +++ b/docs/API_docs/methods/account_confirmPhone.md @@ -25,6 +25,7 @@ description: account.confirmPhone parameters, return type and example |----------|---------------| |PHONE_CODE_EMPTY|phone_code is missing| + ### Example: diff --git a/docs/API_docs/methods/account_getNotifySettings.md b/docs/API_docs/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/docs/API_docs/methods/account_getNotifySettings.md +++ b/docs/API_docs/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_getPrivacy.md b/docs/API_docs/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/docs/API_docs/methods/account_getPrivacy.md +++ b/docs/API_docs/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_getTmpPassword.md b/docs/API_docs/methods/account_getTmpPassword.md index 9084b304..a6fed592 100644 --- a/docs/API_docs/methods/account_getTmpPassword.md +++ b/docs/API_docs/methods/account_getTmpPassword.md @@ -25,6 +25,7 @@ description: account.getTmpPassword parameters, return type and example |----------|---------------| |TMP_PASSWORD_DISABLED|The temporary password is disabled| + ### Example: diff --git a/docs/API_docs/methods/account_registerDevice.md b/docs/API_docs/methods/account_registerDevice.md index e5686879..3cc7f98d 100644 --- a/docs/API_docs/methods/account_registerDevice.md +++ b/docs/API_docs/methods/account_registerDevice.md @@ -25,6 +25,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_reportPeer.md b/docs/API_docs/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/docs/API_docs/methods/account_reportPeer.md +++ b/docs/API_docs/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_resetAuthorization.md b/docs/API_docs/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/docs/API_docs/methods/account_resetAuthorization.md +++ b/docs/API_docs/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_sendChangePhoneCode.md b/docs/API_docs/methods/account_sendChangePhoneCode.md index d606b195..4be218f2 100644 --- a/docs/API_docs/methods/account_sendChangePhoneCode.md +++ b/docs/API_docs/methods/account_sendChangePhoneCode.md @@ -26,6 +26,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_sendConfirmPhoneCode.md b/docs/API_docs/methods/account_sendConfirmPhoneCode.md index 3ca66b20..009fcb09 100644 --- a/docs/API_docs/methods/account_sendConfirmPhoneCode.md +++ b/docs/API_docs/methods/account_sendConfirmPhoneCode.md @@ -26,6 +26,7 @@ description: account.sendConfirmPhoneCode parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_setAccountTTL.md b/docs/API_docs/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/docs/API_docs/methods/account_setAccountTTL.md +++ b/docs/API_docs/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_setPrivacy.md b/docs/API_docs/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/docs/API_docs/methods/account_setPrivacy.md +++ b/docs/API_docs/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_unregisterDevice.md b/docs/API_docs/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/docs/API_docs/methods/account_unregisterDevice.md +++ b/docs/API_docs/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_updateNotifySettings.md b/docs/API_docs/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/docs/API_docs/methods/account_updateNotifySettings.md +++ b/docs/API_docs/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_updatePasswordSettings.md b/docs/API_docs/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/docs/API_docs/methods/account_updatePasswordSettings.md +++ b/docs/API_docs/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/docs/API_docs/methods/account_updateProfile.md b/docs/API_docs/methods/account_updateProfile.md index 0acbfaa7..a50eaea5 100644 --- a/docs/API_docs/methods/account_updateProfile.md +++ b/docs/API_docs/methods/account_updateProfile.md @@ -24,7 +24,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/docs/API_docs/methods/account_updateUsername.md b/docs/API_docs/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/docs/API_docs/methods/account_updateUsername.md +++ b/docs/API_docs/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/docs/API_docs/methods/auth_bindTempAuthKey.md b/docs/API_docs/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/docs/API_docs/methods/auth_bindTempAuthKey.md +++ b/docs/API_docs/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/docs/API_docs/methods/auth_cancelCode.md b/docs/API_docs/methods/auth_cancelCode.md index dd8b528e..dc390329 100644 --- a/docs/API_docs/methods/auth_cancelCode.md +++ b/docs/API_docs/methods/auth_cancelCode.md @@ -25,6 +25,7 @@ description: auth.cancelCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/docs/API_docs/methods/auth_checkPassword.md b/docs/API_docs/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/docs/API_docs/methods/auth_checkPassword.md +++ b/docs/API_docs/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/docs/API_docs/methods/auth_checkPhone.md b/docs/API_docs/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/docs/API_docs/methods/auth_checkPhone.md +++ b/docs/API_docs/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/docs/API_docs/methods/auth_exportAuthorization.md b/docs/API_docs/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/docs/API_docs/methods/auth_exportAuthorization.md +++ b/docs/API_docs/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/auth_importAuthorization.md b/docs/API_docs/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/docs/API_docs/methods/auth_importAuthorization.md +++ b/docs/API_docs/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/auth_recoverPassword.md b/docs/API_docs/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/docs/API_docs/methods/auth_recoverPassword.md +++ b/docs/API_docs/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/docs/API_docs/methods/auth_requestPasswordRecovery.md b/docs/API_docs/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/docs/API_docs/methods/auth_requestPasswordRecovery.md +++ b/docs/API_docs/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/docs/API_docs/methods/auth_resendCode.md b/docs/API_docs/methods/auth_resendCode.md index 1ff8dfff..14d08ddd 100644 --- a/docs/API_docs/methods/auth_resendCode.md +++ b/docs/API_docs/methods/auth_resendCode.md @@ -25,6 +25,7 @@ description: auth.resendCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/docs/API_docs/methods/auth_resetAuthorizations.md b/docs/API_docs/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/docs/API_docs/methods/auth_resetAuthorizations.md +++ b/docs/API_docs/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/docs/API_docs/methods/auth_sendInvites.md b/docs/API_docs/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/docs/API_docs/methods/auth_sendInvites.md +++ b/docs/API_docs/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/docs/API_docs/methods/bots_answerWebhookJSONQuery.md b/docs/API_docs/methods/bots_answerWebhookJSONQuery.md index 0fcc85c6..ae1efce3 100644 --- a/docs/API_docs/methods/bots_answerWebhookJSONQuery.md +++ b/docs/API_docs/methods/bots_answerWebhookJSONQuery.md @@ -23,7 +23,9 @@ description: bots.answerWebhookJSONQuery parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid||USER_BOT_INVALID|This method can only be called by a bot| +|QUERY_ID_INVALID|The query ID is invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/docs/API_docs/methods/bots_sendCustomRequest.md b/docs/API_docs/methods/bots_sendCustomRequest.md index 35350236..927f18c5 100644 --- a/docs/API_docs/methods/bots_sendCustomRequest.md +++ b/docs/API_docs/methods/bots_sendCustomRequest.md @@ -25,6 +25,7 @@ description: bots.sendCustomRequest parameters, return type and example |----------|---------------| |USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/docs/API_docs/methods/channels_checkUsername.md b/docs/API_docs/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/docs/API_docs/methods/channels_checkUsername.md +++ b/docs/API_docs/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_createChannel.md b/docs/API_docs/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/docs/API_docs/methods/channels_createChannel.md +++ b/docs/API_docs/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/docs/API_docs/methods/channels_deleteChannel.md b/docs/API_docs/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/docs/API_docs/methods/channels_deleteChannel.md +++ b/docs/API_docs/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/docs/API_docs/methods/channels_deleteMessages.md b/docs/API_docs/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/docs/API_docs/methods/channels_deleteMessages.md +++ b/docs/API_docs/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/docs/API_docs/methods/channels_deleteUserHistory.md b/docs/API_docs/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/docs/API_docs/methods/channels_deleteUserHistory.md +++ b/docs/API_docs/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/docs/API_docs/methods/channels_editAbout.md b/docs/API_docs/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/docs/API_docs/methods/channels_editAbout.md +++ b/docs/API_docs/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_editAdmin.md b/docs/API_docs/methods/channels_editAdmin.md index ad2c86d8..cada97f7 100644 --- a/docs/API_docs/methods/channels_editAdmin.md +++ b/docs/API_docs/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/docs/API_docs/methods/channels_editBanned.md b/docs/API_docs/methods/channels_editBanned.md index 69184472..62f2f006 100644 --- a/docs/API_docs/methods/channels_editBanned.md +++ b/docs/API_docs/methods/channels_editBanned.md @@ -24,7 +24,10 @@ description: channels.editBanned parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_ADMIN_INVALID|You're not an admin| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_ADMIN_INVALID|You're not an admin| + ### Example: diff --git a/docs/API_docs/methods/channels_editPhoto.md b/docs/API_docs/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/docs/API_docs/methods/channels_editPhoto.md +++ b/docs/API_docs/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_editTitle.md b/docs/API_docs/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/docs/API_docs/methods/channels_editTitle.md +++ b/docs/API_docs/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_exportInvite.md b/docs/API_docs/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/docs/API_docs/methods/channels_exportInvite.md +++ b/docs/API_docs/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/docs/API_docs/methods/channels_exportMessageLink.md b/docs/API_docs/methods/channels_exportMessageLink.md index 18091a3c..9831c9c0 100644 --- a/docs/API_docs/methods/channels_exportMessageLink.md +++ b/docs/API_docs/methods/channels_exportMessageLink.md @@ -25,6 +25,7 @@ description: channels.exportMessageLink parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_getAdminLog.md b/docs/API_docs/methods/channels_getAdminLog.md index f5bfb7ea..f4a70e98 100644 --- a/docs/API_docs/methods/channels_getAdminLog.md +++ b/docs/API_docs/methods/channels_getAdminLog.md @@ -28,7 +28,9 @@ description: channels.getAdminLog parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/docs/API_docs/methods/channels_getChannels.md b/docs/API_docs/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/docs/API_docs/methods/channels_getChannels.md +++ b/docs/API_docs/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_getMessages.md b/docs/API_docs/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/docs/API_docs/methods/channels_getMessages.md +++ b/docs/API_docs/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_getParticipant.md b/docs/API_docs/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/docs/API_docs/methods/channels_getParticipant.md +++ b/docs/API_docs/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/docs/API_docs/methods/channels_inviteToChannel.md b/docs/API_docs/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/docs/API_docs/methods/channels_inviteToChannel.md +++ b/docs/API_docs/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/docs/API_docs/methods/channels_joinChannel.md b/docs/API_docs/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/docs/API_docs/methods/channels_joinChannel.md +++ b/docs/API_docs/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/docs/API_docs/methods/channels_leaveChannel.md b/docs/API_docs/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/docs/API_docs/methods/channels_leaveChannel.md +++ b/docs/API_docs/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/docs/API_docs/methods/channels_readHistory.md b/docs/API_docs/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/docs/API_docs/methods/channels_readHistory.md +++ b/docs/API_docs/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_readMessageContents.md b/docs/API_docs/methods/channels_readMessageContents.md index 6b5d17ea..1c14553a 100644 --- a/docs/API_docs/methods/channels_readMessageContents.md +++ b/docs/API_docs/methods/channels_readMessageContents.md @@ -25,6 +25,7 @@ description: channels.readMessageContents parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_reportSpam.md b/docs/API_docs/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/docs/API_docs/methods/channels_reportSpam.md +++ b/docs/API_docs/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_setStickers.md b/docs/API_docs/methods/channels_setStickers.md index 75f7bec6..c0755222 100644 --- a/docs/API_docs/methods/channels_setStickers.md +++ b/docs/API_docs/methods/channels_setStickers.md @@ -25,6 +25,7 @@ description: channels.setStickers parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_toggleInvites.md b/docs/API_docs/methods/channels_toggleInvites.md index b6f8b2a8..5419df50 100644 --- a/docs/API_docs/methods/channels_toggleInvites.md +++ b/docs/API_docs/methods/channels_toggleInvites.md @@ -25,6 +25,7 @@ description: channels.toggleInvites parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_toggleSignatures.md b/docs/API_docs/methods/channels_toggleSignatures.md index e77879b0..a214b849 100644 --- a/docs/API_docs/methods/channels_toggleSignatures.md +++ b/docs/API_docs/methods/channels_toggleSignatures.md @@ -25,6 +25,7 @@ description: channels.toggleSignatures parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/docs/API_docs/methods/channels_updatePinnedMessage.md b/docs/API_docs/methods/channels_updatePinnedMessage.md index 4cff44d2..7376df10 100644 --- a/docs/API_docs/methods/channels_updatePinnedMessage.md +++ b/docs/API_docs/methods/channels_updatePinnedMessage.md @@ -24,7 +24,10 @@ description: channels.updatePinnedMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_NOT_MODIFIED|The pinned message wasn't modified| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| + ### Example: diff --git a/docs/API_docs/methods/channels_updateUsername.md b/docs/API_docs/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/docs/API_docs/methods/channels_updateUsername.md +++ b/docs/API_docs/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/docs/API_docs/methods/contacts_block.md b/docs/API_docs/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/docs/API_docs/methods/contacts_block.md +++ b/docs/API_docs/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/contacts_deleteContact.md b/docs/API_docs/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/docs/API_docs/methods/contacts_deleteContact.md +++ b/docs/API_docs/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/contacts_deleteContacts.md b/docs/API_docs/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/docs/API_docs/methods/contacts_deleteContacts.md +++ b/docs/API_docs/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/docs/API_docs/methods/contacts_getTopPeers.md b/docs/API_docs/methods/contacts_getTopPeers.md index 2f83ea7f..cbd64cc0 100644 --- a/docs/API_docs/methods/contacts_getTopPeers.md +++ b/docs/API_docs/methods/contacts_getTopPeers.md @@ -32,6 +32,7 @@ description: contacts.getTopPeers parameters, return type and example |----------|---------------| |TYPES_EMPTY|The types field is empty| + ### Example: diff --git a/docs/API_docs/methods/contacts_importCard.md b/docs/API_docs/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/docs/API_docs/methods/contacts_importCard.md +++ b/docs/API_docs/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/docs/API_docs/methods/contacts_resetTopPeerRating.md b/docs/API_docs/methods/contacts_resetTopPeerRating.md index 70a9e958..738494b2 100644 --- a/docs/API_docs/methods/contacts_resetTopPeerRating.md +++ b/docs/API_docs/methods/contacts_resetTopPeerRating.md @@ -25,6 +25,7 @@ description: contacts.resetTopPeerRating parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/contacts_search.md b/docs/API_docs/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/docs/API_docs/methods/contacts_search.md +++ b/docs/API_docs/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/docs/API_docs/methods/contacts_unblock.md b/docs/API_docs/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/docs/API_docs/methods/contacts_unblock.md +++ b/docs/API_docs/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/initConnection.md b/docs/API_docs/methods/initConnection.md index 6de9ef77..c09d0684 100644 --- a/docs/API_docs/methods/initConnection.md +++ b/docs/API_docs/methods/initConnection.md @@ -31,6 +31,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/docs/API_docs/methods/invokeWithLayer.md b/docs/API_docs/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/docs/API_docs/methods/invokeWithLayer.md +++ b/docs/API_docs/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/docs/API_docs/methods/langpack_getDifference.md b/docs/API_docs/methods/langpack_getDifference.md index e1da920b..2e77cc3b 100644 --- a/docs/API_docs/methods/langpack_getDifference.md +++ b/docs/API_docs/methods/langpack_getDifference.md @@ -24,6 +24,7 @@ description: langpack.getDifference parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/docs/API_docs/methods/langpack_getLangPack.md b/docs/API_docs/methods/langpack_getLangPack.md index 89c47e22..5d4d0b81 100644 --- a/docs/API_docs/methods/langpack_getLangPack.md +++ b/docs/API_docs/methods/langpack_getLangPack.md @@ -24,6 +24,7 @@ description: langpack.getLangPack parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/docs/API_docs/methods/langpack_getLanguages.md b/docs/API_docs/methods/langpack_getLanguages.md index 8f9c376a..abaa0de3 100644 --- a/docs/API_docs/methods/langpack_getLanguages.md +++ b/docs/API_docs/methods/langpack_getLanguages.md @@ -19,6 +19,7 @@ description: langpack.getLanguages parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/docs/API_docs/methods/langpack_getStrings.md b/docs/API_docs/methods/langpack_getStrings.md index c3e18ecd..9bb740dc 100644 --- a/docs/API_docs/methods/langpack_getStrings.md +++ b/docs/API_docs/methods/langpack_getStrings.md @@ -25,6 +25,7 @@ description: langpack.getStrings parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_addChatUser.md b/docs/API_docs/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/docs/API_docs/methods/messages_addChatUser.md +++ b/docs/API_docs/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/docs/API_docs/methods/messages_checkChatInvite.md b/docs/API_docs/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/docs/API_docs/methods/messages_checkChatInvite.md +++ b/docs/API_docs/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_createChat.md b/docs/API_docs/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/docs/API_docs/methods/messages_createChat.md +++ b/docs/API_docs/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/docs/API_docs/methods/messages_deleteChatUser.md b/docs/API_docs/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/docs/API_docs/methods/messages_deleteChatUser.md +++ b/docs/API_docs/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/docs/API_docs/methods/messages_deleteHistory.md b/docs/API_docs/methods/messages_deleteHistory.md index 009e39c0..ce6ba6e7 100644 --- a/docs/API_docs/methods/messages_deleteHistory.md +++ b/docs/API_docs/methods/messages_deleteHistory.md @@ -26,6 +26,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_editChatAdmin.md b/docs/API_docs/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/docs/API_docs/methods/messages_editChatAdmin.md +++ b/docs/API_docs/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_editChatPhoto.md b/docs/API_docs/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/docs/API_docs/methods/messages_editChatPhoto.md +++ b/docs/API_docs/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_editChatTitle.md b/docs/API_docs/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/docs/API_docs/methods/messages_editChatTitle.md +++ b/docs/API_docs/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_editInlineBotMessage.md b/docs/API_docs/methods/messages_editInlineBotMessage.md index a3fdbc64..621c81a3 100644 --- a/docs/API_docs/methods/messages_editInlineBotMessage.md +++ b/docs/API_docs/methods/messages_editInlineBotMessage.md @@ -27,7 +27,9 @@ description: messages.editInlineBotMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_NOT_MODIFIED|The message text has not changed| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| + ### Example: diff --git a/docs/API_docs/methods/messages_editMessage.md b/docs/API_docs/methods/messages_editMessage.md index adc88b5a..1c3a8525 100644 --- a/docs/API_docs/methods/messages_editMessage.md +++ b/docs/API_docs/methods/messages_editMessage.md @@ -28,7 +28,10 @@ description: messages.editMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_exportChatInvite.md b/docs/API_docs/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/docs/API_docs/methods/messages_exportChatInvite.md +++ b/docs/API_docs/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_faveSticker.md b/docs/API_docs/methods/messages_faveSticker.md index 0b37fc72..4ac9d019 100644 --- a/docs/API_docs/methods/messages_faveSticker.md +++ b/docs/API_docs/methods/messages_faveSticker.md @@ -25,6 +25,7 @@ description: messages.faveSticker parameters, return type and example |----------|---------------| |STICKER_ID_INVALID|The provided sticker ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_forwardMessage.md b/docs/API_docs/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/docs/API_docs/methods/messages_forwardMessage.md +++ b/docs/API_docs/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_forwardMessages.md b/docs/API_docs/methods/messages_forwardMessages.md index bdb38317..d5ad680d 100644 --- a/docs/API_docs/methods/messages_forwardMessages.md +++ b/docs/API_docs/methods/messages_forwardMessages.md @@ -27,7 +27,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/docs/API_docs/methods/messages_getBotCallbackAnswer.md b/docs/API_docs/methods/messages_getBotCallbackAnswer.md index 53764b17..a8525987 100644 --- a/docs/API_docs/methods/messages_getBotCallbackAnswer.md +++ b/docs/API_docs/methods/messages_getBotCallbackAnswer.md @@ -25,7 +25,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid||Timeout|A timeout occurred while fetching data from the bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/docs/API_docs/methods/messages_getChats.md b/docs/API_docs/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/docs/API_docs/methods/messages_getChats.md +++ b/docs/API_docs/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_getCommonChats.md b/docs/API_docs/methods/messages_getCommonChats.md index efd905ff..0c601ca9 100644 --- a/docs/API_docs/methods/messages_getCommonChats.md +++ b/docs/API_docs/methods/messages_getCommonChats.md @@ -26,6 +26,7 @@ description: messages.getCommonChats parameters, return type and example |----------|---------------| |USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_getDhConfig.md b/docs/API_docs/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/docs/API_docs/methods/messages_getDhConfig.md +++ b/docs/API_docs/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_getDialogs.md b/docs/API_docs/methods/messages_getDialogs.md index a0ffc327..b79d9428 100644 --- a/docs/API_docs/methods/messages_getDialogs.md +++ b/docs/API_docs/methods/messages_getDialogs.md @@ -26,8 +26,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/docs/API_docs/methods/messages_getDocumentByHash.md b/docs/API_docs/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/docs/API_docs/methods/messages_getDocumentByHash.md +++ b/docs/API_docs/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_getGameHighScores.md b/docs/API_docs/methods/messages_getGameHighScores.md index 602bf5e8..935bb95a 100644 --- a/docs/API_docs/methods/messages_getGameHighScores.md +++ b/docs/API_docs/methods/messages_getGameHighScores.md @@ -24,7 +24,9 @@ description: messages.getGameHighScores parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/docs/API_docs/methods/messages_getHistory.md b/docs/API_docs/methods/messages_getHistory.md index f8232d25..00972412 100644 --- a/docs/API_docs/methods/messages_getHistory.md +++ b/docs/API_docs/methods/messages_getHistory.md @@ -28,7 +28,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_getInlineBotResults.md b/docs/API_docs/methods/messages_getInlineBotResults.md index 259408a8..ad41660e 100644 --- a/docs/API_docs/methods/messages_getInlineBotResults.md +++ b/docs/API_docs/methods/messages_getInlineBotResults.md @@ -26,7 +26,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/docs/API_docs/methods/messages_getInlineGameHighScores.md b/docs/API_docs/methods/messages_getInlineGameHighScores.md index 9f66fb76..7cc04d0d 100644 --- a/docs/API_docs/methods/messages_getInlineGameHighScores.md +++ b/docs/API_docs/methods/messages_getInlineGameHighScores.md @@ -23,7 +23,9 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/docs/API_docs/methods/messages_getMessageEditData.md b/docs/API_docs/methods/messages_getMessageEditData.md index 62e130c8..4e20a108 100644 --- a/docs/API_docs/methods/messages_getMessageEditData.md +++ b/docs/API_docs/methods/messages_getMessageEditData.md @@ -23,7 +23,9 @@ description: messages.getMessageEditData parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_AUTHOR_REQUIRED|Message author required| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_getMessagesViews.md b/docs/API_docs/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/docs/API_docs/methods/messages_getMessagesViews.md +++ b/docs/API_docs/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_getPeerDialogs.md b/docs/API_docs/methods/messages_getPeerDialogs.md index 6eaf48ff..3da60038 100644 --- a/docs/API_docs/methods/messages_getPeerDialogs.md +++ b/docs/API_docs/methods/messages_getPeerDialogs.md @@ -22,8 +22,10 @@ description: messages.getPeerDialogs parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_getPeerSettings.md b/docs/API_docs/methods/messages_getPeerSettings.md index b62bfd2c..6147fae7 100644 --- a/docs/API_docs/methods/messages_getPeerSettings.md +++ b/docs/API_docs/methods/messages_getPeerSettings.md @@ -24,6 +24,7 @@ description: messages.getPeerSettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_getStickerSet.md b/docs/API_docs/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/docs/API_docs/methods/messages_getStickerSet.md +++ b/docs/API_docs/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_getUnreadMentions.md b/docs/API_docs/methods/messages_getUnreadMentions.md index 9db984df..54e8cabf 100644 --- a/docs/API_docs/methods/messages_getUnreadMentions.md +++ b/docs/API_docs/methods/messages_getUnreadMentions.md @@ -20,7 +20,7 @@ description: messages.getUnreadMentions parameters, return type and example ### Return type: [messages\_Messages](../types/messages_Messages.md) -### Can bots use this method: **YES** +### Can bots use this method: **NO** ### Errors this method can return: @@ -29,14 +29,12 @@ description: messages.getUnreadMentions parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: ``` $MadelineProto = new \danog\MadelineProto\API(); -if (isset($token)) { // Login as a bot - $MadelineProto->bot_login($token); -} if (isset($number)) { // Login as a user $sentCode = $MadelineProto->phone_login($number); echo 'Enter the code you received: '; @@ -52,15 +50,6 @@ $messages_Messages = $MadelineProto->messages->getUnreadMentions(['peer' => Inpu Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz): -### As a bot: - -POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline` - -Parameters: - -* method - messages.getUnreadMentions -* params - `{"peer": InputPeer, "offset_id": int, "add_offset": int, "limit": int, "max_id": int, "min_id": int, }` - ### As a user: diff --git a/docs/API_docs/methods/messages_hideReportSpam.md b/docs/API_docs/methods/messages_hideReportSpam.md index 4bfe8ab1..2dfe4dd7 100644 --- a/docs/API_docs/methods/messages_hideReportSpam.md +++ b/docs/API_docs/methods/messages_hideReportSpam.md @@ -24,6 +24,7 @@ description: messages.hideReportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_importChatInvite.md b/docs/API_docs/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/docs/API_docs/methods/messages_importChatInvite.md +++ b/docs/API_docs/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/docs/API_docs/methods/messages_installStickerSet.md b/docs/API_docs/methods/messages_installStickerSet.md index c0cfa607..3dde52a7 100644 --- a/docs/API_docs/methods/messages_installStickerSet.md +++ b/docs/API_docs/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_migrateChat.md b/docs/API_docs/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/docs/API_docs/methods/messages_migrateChat.md +++ b/docs/API_docs/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_readEncryptedHistory.md b/docs/API_docs/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/docs/API_docs/methods/messages_readEncryptedHistory.md +++ b/docs/API_docs/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/docs/API_docs/methods/messages_readHistory.md b/docs/API_docs/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/docs/API_docs/methods/messages_readHistory.md +++ b/docs/API_docs/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_receivedQueue.md b/docs/API_docs/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/docs/API_docs/methods/messages_receivedQueue.md +++ b/docs/API_docs/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/docs/API_docs/methods/messages_reorderPinnedDialogs.md b/docs/API_docs/methods/messages_reorderPinnedDialogs.md index 72a278f5..30102fd7 100644 --- a/docs/API_docs/methods/messages_reorderPinnedDialogs.md +++ b/docs/API_docs/methods/messages_reorderPinnedDialogs.md @@ -25,6 +25,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_reportEncryptedSpam.md b/docs/API_docs/methods/messages_reportEncryptedSpam.md index 8fbc8649..30ef3473 100644 --- a/docs/API_docs/methods/messages_reportEncryptedSpam.md +++ b/docs/API_docs/methods/messages_reportEncryptedSpam.md @@ -24,6 +24,7 @@ description: messages.reportEncryptedSpam parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_reportSpam.md b/docs/API_docs/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/docs/API_docs/methods/messages_reportSpam.md +++ b/docs/API_docs/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_saveDraft.md b/docs/API_docs/methods/messages_saveDraft.md index 5c9d4b8f..42308b46 100644 --- a/docs/API_docs/methods/messages_saveDraft.md +++ b/docs/API_docs/methods/messages_saveDraft.md @@ -29,6 +29,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_saveGif.md b/docs/API_docs/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/docs/API_docs/methods/messages_saveGif.md +++ b/docs/API_docs/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_saveRecentSticker.md b/docs/API_docs/methods/messages_saveRecentSticker.md index 45caff91..8d45be5e 100644 --- a/docs/API_docs/methods/messages_saveRecentSticker.md +++ b/docs/API_docs/methods/messages_saveRecentSticker.md @@ -26,6 +26,7 @@ description: messages.saveRecentSticker parameters, return type and example |----------|---------------| |STICKER_ID_INVALID|The provided sticker ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_search.md b/docs/API_docs/methods/messages_search.md index 874cf6ac..2321d4f2 100644 --- a/docs/API_docs/methods/messages_search.md +++ b/docs/API_docs/methods/messages_search.md @@ -32,7 +32,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_searchGifs.md b/docs/API_docs/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/docs/API_docs/methods/messages_searchGifs.md +++ b/docs/API_docs/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/docs/API_docs/methods/messages_searchGlobal.md b/docs/API_docs/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/docs/API_docs/methods/messages_searchGlobal.md +++ b/docs/API_docs/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/docs/API_docs/methods/messages_sendEncrypted.md b/docs/API_docs/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/docs/API_docs/methods/messages_sendEncrypted.md +++ b/docs/API_docs/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/docs/API_docs/methods/messages_sendEncryptedFile.md b/docs/API_docs/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/docs/API_docs/methods/messages_sendEncryptedFile.md +++ b/docs/API_docs/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/docs/API_docs/methods/messages_sendEncryptedService.md b/docs/API_docs/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/docs/API_docs/methods/messages_sendEncryptedService.md +++ b/docs/API_docs/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/docs/API_docs/methods/messages_sendInlineBotResult.md b/docs/API_docs/methods/messages_sendInlineBotResult.md index 74925e93..bdb08f80 100644 --- a/docs/API_docs/methods/messages_sendInlineBotResult.md +++ b/docs/API_docs/methods/messages_sendInlineBotResult.md @@ -28,7 +28,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/docs/API_docs/methods/messages_sendMedia.md b/docs/API_docs/methods/messages_sendMedia.md index 0f9a9fd2..1888a271 100644 --- a/docs/API_docs/methods/messages_sendMedia.md +++ b/docs/API_docs/methods/messages_sendMedia.md @@ -28,7 +28,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/docs/API_docs/methods/messages_sendMessage.md b/docs/API_docs/methods/messages_sendMessage.md index 83ab594e..7e2a71fa 100644 --- a/docs/API_docs/methods/messages_sendMessage.md +++ b/docs/API_docs/methods/messages_sendMessage.md @@ -31,7 +31,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/docs/API_docs/methods/messages_sendScreenshotNotification.md b/docs/API_docs/methods/messages_sendScreenshotNotification.md index ea0390d3..a725a12b 100644 --- a/docs/API_docs/methods/messages_sendScreenshotNotification.md +++ b/docs/API_docs/methods/messages_sendScreenshotNotification.md @@ -25,6 +25,7 @@ description: messages.sendScreenshotNotification parameters, return type and exa |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_setBotCallbackAnswer.md b/docs/API_docs/methods/messages_setBotCallbackAnswer.md index a0610ec0..2c51854f 100644 --- a/docs/API_docs/methods/messages_setBotCallbackAnswer.md +++ b/docs/API_docs/methods/messages_setBotCallbackAnswer.md @@ -28,6 +28,7 @@ description: messages.setBotCallbackAnswer parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_setBotPrecheckoutResults.md b/docs/API_docs/methods/messages_setBotPrecheckoutResults.md index c8dff6f6..25ed5ed5 100644 --- a/docs/API_docs/methods/messages_setBotPrecheckoutResults.md +++ b/docs/API_docs/methods/messages_setBotPrecheckoutResults.md @@ -26,6 +26,7 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp |----------|---------------| |ERROR_TEXT_EMPTY|The provided error message is empty| + ### Example: diff --git a/docs/API_docs/methods/messages_setBotShippingResults.md b/docs/API_docs/methods/messages_setBotShippingResults.md index bc6aaebd..49ac2896 100644 --- a/docs/API_docs/methods/messages_setBotShippingResults.md +++ b/docs/API_docs/methods/messages_setBotShippingResults.md @@ -26,6 +26,7 @@ description: messages.setBotShippingResults parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_setEncryptedTyping.md b/docs/API_docs/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/docs/API_docs/methods/messages_setEncryptedTyping.md +++ b/docs/API_docs/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_setGameScore.md b/docs/API_docs/methods/messages_setGameScore.md index 587e0a60..3137f7c9 100644 --- a/docs/API_docs/methods/messages_setGameScore.md +++ b/docs/API_docs/methods/messages_setGameScore.md @@ -27,7 +27,9 @@ description: messages.setGameScore parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/docs/API_docs/methods/messages_setInlineBotResults.md b/docs/API_docs/methods/messages_setInlineBotResults.md index 423d8b69..8b5625f3 100644 --- a/docs/API_docs/methods/messages_setInlineBotResults.md +++ b/docs/API_docs/methods/messages_setInlineBotResults.md @@ -28,7 +28,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/docs/API_docs/methods/messages_setInlineGameScore.md b/docs/API_docs/methods/messages_setInlineGameScore.md index ddb7ba31..36752f35 100644 --- a/docs/API_docs/methods/messages_setInlineGameScore.md +++ b/docs/API_docs/methods/messages_setInlineGameScore.md @@ -26,7 +26,9 @@ description: messages.setInlineGameScore parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/docs/API_docs/methods/messages_setTyping.md b/docs/API_docs/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/docs/API_docs/methods/messages_setTyping.md +++ b/docs/API_docs/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_startBot.md b/docs/API_docs/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/docs/API_docs/methods/messages_startBot.md +++ b/docs/API_docs/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_toggleChatAdmins.md b/docs/API_docs/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/docs/API_docs/methods/messages_toggleChatAdmins.md +++ b/docs/API_docs/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_toggleDialogPin.md b/docs/API_docs/methods/messages_toggleDialogPin.md index 82326978..f35f2f40 100644 --- a/docs/API_docs/methods/messages_toggleDialogPin.md +++ b/docs/API_docs/methods/messages_toggleDialogPin.md @@ -25,6 +25,7 @@ description: messages.toggleDialogPin parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_uninstallStickerSet.md b/docs/API_docs/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/docs/API_docs/methods/messages_uninstallStickerSet.md +++ b/docs/API_docs/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/docs/API_docs/methods/messages_uploadMedia.md b/docs/API_docs/methods/messages_uploadMedia.md index 24f004c8..9f3f91ff 100644 --- a/docs/API_docs/methods/messages_uploadMedia.md +++ b/docs/API_docs/methods/messages_uploadMedia.md @@ -23,7 +23,9 @@ description: messages.uploadMedia parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||PEER_ID_INVALID|The provided peer id is invalid| +|BOT_MISSING|This method can only be run by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/docs/API_docs/methods/payments_getPaymentForm.md b/docs/API_docs/methods/payments_getPaymentForm.md index e8be5464..15f6e26b 100644 --- a/docs/API_docs/methods/payments_getPaymentForm.md +++ b/docs/API_docs/methods/payments_getPaymentForm.md @@ -24,6 +24,7 @@ description: payments.getPaymentForm parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/docs/API_docs/methods/payments_getPaymentReceipt.md b/docs/API_docs/methods/payments_getPaymentReceipt.md index 7331d5eb..51433563 100644 --- a/docs/API_docs/methods/payments_getPaymentReceipt.md +++ b/docs/API_docs/methods/payments_getPaymentReceipt.md @@ -24,6 +24,7 @@ description: payments.getPaymentReceipt parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/docs/API_docs/methods/payments_sendPaymentForm.md b/docs/API_docs/methods/payments_sendPaymentForm.md index 66788ffd..a63a3980 100644 --- a/docs/API_docs/methods/payments_sendPaymentForm.md +++ b/docs/API_docs/methods/payments_sendPaymentForm.md @@ -27,6 +27,7 @@ description: payments.sendPaymentForm parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/docs/API_docs/methods/payments_validateRequestedInfo.md b/docs/API_docs/methods/payments_validateRequestedInfo.md index 05285a37..d839a2df 100644 --- a/docs/API_docs/methods/payments_validateRequestedInfo.md +++ b/docs/API_docs/methods/payments_validateRequestedInfo.md @@ -26,6 +26,7 @@ description: payments.validateRequestedInfo parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/docs/API_docs/methods/phone_receivedCall.md b/docs/API_docs/methods/phone_receivedCall.md index 71a1f0f9..765be909 100644 --- a/docs/API_docs/methods/phone_receivedCall.md +++ b/docs/API_docs/methods/phone_receivedCall.md @@ -24,6 +24,7 @@ description: phone.receivedCall parameters, return type and example |----------|---------------| |CALL_PEER_INVALID|The provided call peer object is invalid| + ### Example: diff --git a/docs/API_docs/methods/phone_saveCallDebug.md b/docs/API_docs/methods/phone_saveCallDebug.md index 7b62c78c..4dee5c97 100644 --- a/docs/API_docs/methods/phone_saveCallDebug.md +++ b/docs/API_docs/methods/phone_saveCallDebug.md @@ -23,7 +23,9 @@ description: phone.saveCallDebug parameters, return type and example | Error | Description | |----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid||DATA_JSON_INVALID|The provided JSON data is invalid| +|CALL_PEER_INVALID|The provided call peer object is invalid| +|DATA_JSON_INVALID|The provided JSON data is invalid| + ### Example: diff --git a/docs/API_docs/methods/phone_setCallRating.md b/docs/API_docs/methods/phone_setCallRating.md index d2fa4acc..fea236d1 100644 --- a/docs/API_docs/methods/phone_setCallRating.md +++ b/docs/API_docs/methods/phone_setCallRating.md @@ -26,6 +26,7 @@ description: phone.setCallRating parameters, return type and example |----------|---------------| |CALL_PEER_INVALID|The provided call peer object is invalid| + ### Example: diff --git a/docs/API_docs/methods/photos_getUserPhotos.md b/docs/API_docs/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/docs/API_docs/methods/photos_getUserPhotos.md +++ b/docs/API_docs/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/photos_uploadProfilePhoto.md b/docs/API_docs/methods/photos_uploadProfilePhoto.md index b8c6ad66..0bb06b1d 100644 --- a/docs/API_docs/methods/photos_uploadProfilePhoto.md +++ b/docs/API_docs/methods/photos_uploadProfilePhoto.md @@ -23,6 +23,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/docs/API_docs/methods/stickers_addStickerToSet.md b/docs/API_docs/methods/stickers_addStickerToSet.md index e02d05f9..bf62fa09 100644 --- a/docs/API_docs/methods/stickers_addStickerToSet.md +++ b/docs/API_docs/methods/stickers_addStickerToSet.md @@ -23,7 +23,9 @@ description: stickers.addStickerToSet parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||STICKERSET_INVALID|The provided sticker set is invalid| +|BOT_MISSING|This method can only be run by a bot| +|STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/docs/API_docs/methods/stickers_changeStickerPosition.md b/docs/API_docs/methods/stickers_changeStickerPosition.md index 8a920ec8..942d3a33 100644 --- a/docs/API_docs/methods/stickers_changeStickerPosition.md +++ b/docs/API_docs/methods/stickers_changeStickerPosition.md @@ -23,7 +23,9 @@ description: stickers.changeStickerPosition parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||STICKER_INVALID|The provided sticker is invalid| +|BOT_MISSING|This method can only be run by a bot| +|STICKER_INVALID|The provided sticker is invalid| + ### Example: diff --git a/docs/API_docs/methods/stickers_createStickerSet.md b/docs/API_docs/methods/stickers_createStickerSet.md index e396f531..4ca8cff7 100644 --- a/docs/API_docs/methods/stickers_createStickerSet.md +++ b/docs/API_docs/methods/stickers_createStickerSet.md @@ -26,7 +26,9 @@ description: stickers.createStickerSet parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||USER_ID_INVALID|The provided user ID is invalid| +|BOT_MISSING|This method can only be run by a bot| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/docs/API_docs/methods/stickers_removeStickerFromSet.md b/docs/API_docs/methods/stickers_removeStickerFromSet.md index 796d0817..51e52f95 100644 --- a/docs/API_docs/methods/stickers_removeStickerFromSet.md +++ b/docs/API_docs/methods/stickers_removeStickerFromSet.md @@ -22,7 +22,9 @@ description: stickers.removeStickerFromSet parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||STICKER_INVALID|The provided sticker is invalid| +|BOT_MISSING|This method can only be run by a bot| +|STICKER_INVALID|The provided sticker is invalid| + ### Example: diff --git a/docs/API_docs/methods/upload_getWebFile.md b/docs/API_docs/methods/upload_getWebFile.md index a4eff18d..ec7c05b4 100644 --- a/docs/API_docs/methods/upload_getWebFile.md +++ b/docs/API_docs/methods/upload_getWebFile.md @@ -26,6 +26,7 @@ description: upload.getWebFile parameters, return type and example |----------|---------------| |LOCATION_INVALID|The provided location is invalid| + ### Example: diff --git a/docs/API_docs/methods/users_getUsers.md b/docs/API_docs/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/docs/API_docs/methods/users_getUsers.md +++ b/docs/API_docs/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/docs/index.md b/docs/index.md index f3384e9d..28a84f85 100644 --- a/docs/index.md +++ b/docs/index.md @@ -627,9 +627,23 @@ An istance of MadelineProto can be safely serialized or unserialized. To seriali $MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); // Do stuff \danog\MadelineProto\Serialization::serialize('session.madeline', $MadelineProto); +// or +$MadelineProto->serialize('session.madeline'); ``` -THe deserialize method accepts a second optional parameter, `$no_updates`, that can be set to true to avoid fetching updates on deserialization, and postpone parsing of updates received through the socket until the next deserialization. +Or + +``` +$MadelineProto = \danog\MadelineProto\Serialization::deserialize('session.madeline'); +$MadelineProto->session = 'session.madeline'; +``` + +This way, if the scripts shutsdown normally (without ctrl+c or fatal errors/exceptions), the session will be serialized automatically. + +It is still recommended to serialize the session at every update. + + +The deserialize method accepts a second optional parameter, `$no_updates`, that can be set to true to avoid fetching updates on deserialization, and postpone parsing of updates received through the socket until the next deserialization. That class serializes using [MagicalSerializer](https://github.com/danog/MagicalSerializer). The same should be done when serializing to another destination manually, to avoid conflicts with other PHP scripts that are trying to serialize another instance of the class. @@ -715,4 +729,5 @@ src/danog/MadelineProto/ ``` Check out the [Contribution guide](https://github.com/danog/MadelineProto/blob/master/CONTRIBUTING.md) before contributing. +Kiao by grizzly diff --git a/old_docs/API_docs_v18/methods/account_checkUsername.md b/old_docs/API_docs_v18/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v18/methods/account_checkUsername.md +++ b/old_docs/API_docs_v18/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/account_getNotifySettings.md b/old_docs/API_docs_v18/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v18/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/account_registerDevice.md b/old_docs/API_docs_v18/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v18/methods/account_registerDevice.md +++ b/old_docs/API_docs_v18/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/account_unregisterDevice.md b/old_docs/API_docs_v18/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v18/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v18/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/account_updateNotifySettings.md b/old_docs/API_docs_v18/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v18/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v18/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/account_updateProfile.md b/old_docs/API_docs_v18/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v18/methods/account_updateProfile.md +++ b/old_docs/API_docs_v18/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/account_updateUsername.md b/old_docs/API_docs_v18/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v18/methods/account_updateUsername.md +++ b/old_docs/API_docs_v18/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v18/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_checkPhone.md b/old_docs/API_docs_v18/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v18/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v18/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_exportAuthorization.md b/old_docs/API_docs_v18/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v18/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v18/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_importAuthorization.md b/old_docs/API_docs_v18/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v18/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v18/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v18/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v18/methods/auth_sendInvites.md b/old_docs/API_docs_v18/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v18/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v18/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_block.md b/old_docs/API_docs_v18/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v18/methods/contacts_block.md +++ b/old_docs/API_docs_v18/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_deleteContact.md b/old_docs/API_docs_v18/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v18/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v18/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_deleteContacts.md b/old_docs/API_docs_v18/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v18/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v18/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_importCard.md b/old_docs/API_docs_v18/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v18/methods/contacts_importCard.md +++ b/old_docs/API_docs_v18/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_search.md b/old_docs/API_docs_v18/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v18/methods/contacts_search.md +++ b/old_docs/API_docs_v18/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v18/methods/contacts_unblock.md b/old_docs/API_docs_v18/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v18/methods/contacts_unblock.md +++ b/old_docs/API_docs_v18/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/initConnection.md b/old_docs/API_docs_v18/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v18/methods/initConnection.md +++ b/old_docs/API_docs_v18/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_addChatUser.md b/old_docs/API_docs_v18/methods/messages_addChatUser.md index 787603f7..90e183aa 100644 --- a/old_docs/API_docs_v18/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v18/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_createChat.md b/old_docs/API_docs_v18/methods/messages_createChat.md index db2d0561..b673e29f 100644 --- a/old_docs/API_docs_v18/methods/messages_createChat.md +++ b/old_docs/API_docs_v18/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md index 409a5f23..83eae12f 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v18/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_deleteHistory.md b/old_docs/API_docs_v18/methods/messages_deleteHistory.md index 09e3c790..b7a9417d 100644 --- a/old_docs/API_docs_v18/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v18/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_editChatPhoto.md b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md index d0abbbfe..dad01c69 100644 --- a/old_docs/API_docs_v18/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v18/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_editChatTitle.md b/old_docs/API_docs_v18/methods/messages_editChatTitle.md index a7cd5863..adf61faa 100644 --- a/old_docs/API_docs_v18/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v18/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessage.md b/old_docs/API_docs_v18/methods/messages_forwardMessage.md index ce259472..e90586ee 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_forwardMessages.md b/old_docs/API_docs_v18/methods/messages_forwardMessages.md index 992390d8..216ea86b 100644 --- a/old_docs/API_docs_v18/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v18/methods/messages_forwardMessages.md @@ -23,7 +23,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_getChats.md b/old_docs/API_docs_v18/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v18/methods/messages_getChats.md +++ b/old_docs/API_docs_v18/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_getDhConfig.md b/old_docs/API_docs_v18/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v18/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v18/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_getDialogs.md b/old_docs/API_docs_v18/methods/messages_getDialogs.md index afc08a46..6fb3f60e 100644 --- a/old_docs/API_docs_v18/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v18/methods/messages_getDialogs.md @@ -24,8 +24,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_getHistory.md b/old_docs/API_docs_v18/methods/messages_getHistory.md index f3fc1aab..15de77b5 100644 --- a/old_docs/API_docs_v18/methods/messages_getHistory.md +++ b/old_docs/API_docs_v18/methods/messages_getHistory.md @@ -25,7 +25,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v18/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_readHistory.md b/old_docs/API_docs_v18/methods/messages_readHistory.md index daf87c0d..c5dca72d 100644 --- a/old_docs/API_docs_v18/methods/messages_readHistory.md +++ b/old_docs/API_docs_v18/methods/messages_readHistory.md @@ -27,6 +27,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_receivedQueue.md b/old_docs/API_docs_v18/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v18/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v18/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_reportSpam.md b/old_docs/API_docs_v18/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v18/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v18/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_search.md b/old_docs/API_docs_v18/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v18/methods/messages_search.md +++ b/old_docs/API_docs_v18/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v18/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_sendMedia.md b/old_docs/API_docs_v18/methods/messages_sendMedia.md index 3af33d3e..b564d460 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v18/methods/messages_sendMedia.md @@ -23,7 +23,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_sendMessage.md b/old_docs/API_docs_v18/methods/messages_sendMessage.md index c013bcc0..cfc31036 100644 --- a/old_docs/API_docs_v18/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v18/methods/messages_sendMessage.md @@ -23,7 +23,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v18/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/messages_setTyping.md b/old_docs/API_docs_v18/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v18/methods/messages_setTyping.md +++ b/old_docs/API_docs_v18/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/photos_getUserPhotos.md b/old_docs/API_docs_v18/methods/photos_getUserPhotos.md index fdaced72..56c76d8b 100644 --- a/old_docs/API_docs_v18/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v18/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v18/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v18/methods/users_getUsers.md b/old_docs/API_docs_v18/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v18/methods/users_getUsers.md +++ b/old_docs/API_docs_v18/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_changePhone.md b/old_docs/API_docs_v23/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v23/methods/account_changePhone.md +++ b/old_docs/API_docs_v23/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_checkUsername.md b/old_docs/API_docs_v23/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v23/methods/account_checkUsername.md +++ b/old_docs/API_docs_v23/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_getNotifySettings.md b/old_docs/API_docs_v23/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v23/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_getPrivacy.md b/old_docs/API_docs_v23/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v23/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v23/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_registerDevice.md b/old_docs/API_docs_v23/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v23/methods/account_registerDevice.md +++ b/old_docs/API_docs_v23/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_reportPeer.md b/old_docs/API_docs_v23/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v23/methods/account_reportPeer.md +++ b/old_docs/API_docs_v23/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md index 2670f68d..650dba72 100644 --- a/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v23/methods/account_sendChangePhoneCode.md @@ -24,6 +24,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_setAccountTTL.md b/old_docs/API_docs_v23/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v23/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v23/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_setPrivacy.md b/old_docs/API_docs_v23/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v23/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v23/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_unregisterDevice.md b/old_docs/API_docs_v23/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v23/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v23/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_updateNotifySettings.md b/old_docs/API_docs_v23/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v23/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v23/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_updateProfile.md b/old_docs/API_docs_v23/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v23/methods/account_updateProfile.md +++ b/old_docs/API_docs_v23/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/account_updateUsername.md b/old_docs/API_docs_v23/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v23/methods/account_updateUsername.md +++ b/old_docs/API_docs_v23/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v23/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_checkPhone.md b/old_docs/API_docs_v23/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v23/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v23/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_exportAuthorization.md b/old_docs/API_docs_v23/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v23/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v23/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_importAuthorization.md b/old_docs/API_docs_v23/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v23/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v23/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v23/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v23/methods/auth_sendInvites.md b/old_docs/API_docs_v23/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v23/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v23/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_block.md b/old_docs/API_docs_v23/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v23/methods/contacts_block.md +++ b/old_docs/API_docs_v23/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_deleteContact.md b/old_docs/API_docs_v23/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v23/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v23/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_deleteContacts.md b/old_docs/API_docs_v23/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v23/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v23/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_importCard.md b/old_docs/API_docs_v23/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v23/methods/contacts_importCard.md +++ b/old_docs/API_docs_v23/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_search.md b/old_docs/API_docs_v23/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v23/methods/contacts_search.md +++ b/old_docs/API_docs_v23/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v23/methods/contacts_unblock.md b/old_docs/API_docs_v23/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v23/methods/contacts_unblock.md +++ b/old_docs/API_docs_v23/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/initConnection.md b/old_docs/API_docs_v23/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v23/methods/initConnection.md +++ b/old_docs/API_docs_v23/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v23/methods/invokeWithLayer.md b/old_docs/API_docs_v23/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v23/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v23/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_addChatUser.md b/old_docs/API_docs_v23/methods/messages_addChatUser.md index 787603f7..90e183aa 100644 --- a/old_docs/API_docs_v23/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v23/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_createChat.md b/old_docs/API_docs_v23/methods/messages_createChat.md index db2d0561..b673e29f 100644 --- a/old_docs/API_docs_v23/methods/messages_createChat.md +++ b/old_docs/API_docs_v23/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md index 409a5f23..83eae12f 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v23/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_deleteHistory.md b/old_docs/API_docs_v23/methods/messages_deleteHistory.md index 09e3c790..b7a9417d 100644 --- a/old_docs/API_docs_v23/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v23/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_editChatPhoto.md b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md index d0abbbfe..dad01c69 100644 --- a/old_docs/API_docs_v23/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v23/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_editChatTitle.md b/old_docs/API_docs_v23/methods/messages_editChatTitle.md index a7cd5863..adf61faa 100644 --- a/old_docs/API_docs_v23/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v23/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessage.md b/old_docs/API_docs_v23/methods/messages_forwardMessage.md index ce259472..e90586ee 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_forwardMessages.md b/old_docs/API_docs_v23/methods/messages_forwardMessages.md index 992390d8..216ea86b 100644 --- a/old_docs/API_docs_v23/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v23/methods/messages_forwardMessages.md @@ -23,7 +23,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_getChats.md b/old_docs/API_docs_v23/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v23/methods/messages_getChats.md +++ b/old_docs/API_docs_v23/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_getDhConfig.md b/old_docs/API_docs_v23/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v23/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v23/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_getDialogs.md b/old_docs/API_docs_v23/methods/messages_getDialogs.md index afc08a46..6fb3f60e 100644 --- a/old_docs/API_docs_v23/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v23/methods/messages_getDialogs.md @@ -24,8 +24,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_getHistory.md b/old_docs/API_docs_v23/methods/messages_getHistory.md index f3fc1aab..15de77b5 100644 --- a/old_docs/API_docs_v23/methods/messages_getHistory.md +++ b/old_docs/API_docs_v23/methods/messages_getHistory.md @@ -25,7 +25,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v23/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_readHistory.md b/old_docs/API_docs_v23/methods/messages_readHistory.md index daf87c0d..c5dca72d 100644 --- a/old_docs/API_docs_v23/methods/messages_readHistory.md +++ b/old_docs/API_docs_v23/methods/messages_readHistory.md @@ -27,6 +27,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_receivedQueue.md b/old_docs/API_docs_v23/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v23/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v23/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_reportSpam.md b/old_docs/API_docs_v23/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v23/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v23/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_search.md b/old_docs/API_docs_v23/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v23/methods/messages_search.md +++ b/old_docs/API_docs_v23/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v23/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_sendMedia.md b/old_docs/API_docs_v23/methods/messages_sendMedia.md index 3af33d3e..b564d460 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v23/methods/messages_sendMedia.md @@ -23,7 +23,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_sendMessage.md b/old_docs/API_docs_v23/methods/messages_sendMessage.md index c013bcc0..cfc31036 100644 --- a/old_docs/API_docs_v23/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v23/methods/messages_sendMessage.md @@ -23,7 +23,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v23/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/messages_setTyping.md b/old_docs/API_docs_v23/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v23/methods/messages_setTyping.md +++ b/old_docs/API_docs_v23/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/photos_getUserPhotos.md b/old_docs/API_docs_v23/methods/photos_getUserPhotos.md index fdaced72..56c76d8b 100644 --- a/old_docs/API_docs_v23/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v23/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v23/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v23/methods/users_getUsers.md b/old_docs/API_docs_v23/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v23/methods/users_getUsers.md +++ b/old_docs/API_docs_v23/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_changePhone.md b/old_docs/API_docs_v25/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v25/methods/account_changePhone.md +++ b/old_docs/API_docs_v25/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_checkUsername.md b/old_docs/API_docs_v25/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v25/methods/account_checkUsername.md +++ b/old_docs/API_docs_v25/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_getNotifySettings.md b/old_docs/API_docs_v25/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v25/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_getPrivacy.md b/old_docs/API_docs_v25/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v25/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v25/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_registerDevice.md b/old_docs/API_docs_v25/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v25/methods/account_registerDevice.md +++ b/old_docs/API_docs_v25/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md index 2670f68d..650dba72 100644 --- a/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v25/methods/account_sendChangePhoneCode.md @@ -24,6 +24,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_setAccountTTL.md b/old_docs/API_docs_v25/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v25/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v25/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_setPrivacy.md b/old_docs/API_docs_v25/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v25/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v25/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_unregisterDevice.md b/old_docs/API_docs_v25/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v25/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v25/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_updateNotifySettings.md b/old_docs/API_docs_v25/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v25/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v25/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_updateProfile.md b/old_docs/API_docs_v25/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v25/methods/account_updateProfile.md +++ b/old_docs/API_docs_v25/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/account_updateUsername.md b/old_docs/API_docs_v25/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v25/methods/account_updateUsername.md +++ b/old_docs/API_docs_v25/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v25/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_checkPassword.md b/old_docs/API_docs_v25/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v25/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v25/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_checkPhone.md b/old_docs/API_docs_v25/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v25/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v25/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_exportAuthorization.md b/old_docs/API_docs_v25/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v25/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v25/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_importAuthorization.md b/old_docs/API_docs_v25/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v25/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v25/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v25/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v25/methods/auth_sendInvites.md b/old_docs/API_docs_v25/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v25/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v25/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_block.md b/old_docs/API_docs_v25/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v25/methods/contacts_block.md +++ b/old_docs/API_docs_v25/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_deleteContact.md b/old_docs/API_docs_v25/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v25/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v25/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_deleteContacts.md b/old_docs/API_docs_v25/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v25/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v25/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_importCard.md b/old_docs/API_docs_v25/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v25/methods/contacts_importCard.md +++ b/old_docs/API_docs_v25/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_search.md b/old_docs/API_docs_v25/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v25/methods/contacts_search.md +++ b/old_docs/API_docs_v25/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v25/methods/contacts_unblock.md b/old_docs/API_docs_v25/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v25/methods/contacts_unblock.md +++ b/old_docs/API_docs_v25/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/initConnection.md b/old_docs/API_docs_v25/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v25/methods/initConnection.md +++ b/old_docs/API_docs_v25/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v25/methods/invokeWithLayer.md b/old_docs/API_docs_v25/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v25/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v25/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_addChatUser.md b/old_docs/API_docs_v25/methods/messages_addChatUser.md index 787603f7..90e183aa 100644 --- a/old_docs/API_docs_v25/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v25/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_createChat.md b/old_docs/API_docs_v25/methods/messages_createChat.md index db2d0561..b673e29f 100644 --- a/old_docs/API_docs_v25/methods/messages_createChat.md +++ b/old_docs/API_docs_v25/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md index 409a5f23..83eae12f 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v25/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_deleteHistory.md b/old_docs/API_docs_v25/methods/messages_deleteHistory.md index 09e3c790..b7a9417d 100644 --- a/old_docs/API_docs_v25/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v25/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_editChatPhoto.md b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md index d0abbbfe..dad01c69 100644 --- a/old_docs/API_docs_v25/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v25/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_editChatTitle.md b/old_docs/API_docs_v25/methods/messages_editChatTitle.md index a7cd5863..adf61faa 100644 --- a/old_docs/API_docs_v25/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v25/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessage.md b/old_docs/API_docs_v25/methods/messages_forwardMessage.md index ce259472..e90586ee 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_forwardMessages.md b/old_docs/API_docs_v25/methods/messages_forwardMessages.md index 992390d8..216ea86b 100644 --- a/old_docs/API_docs_v25/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v25/methods/messages_forwardMessages.md @@ -23,7 +23,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_getChats.md b/old_docs/API_docs_v25/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v25/methods/messages_getChats.md +++ b/old_docs/API_docs_v25/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_getDhConfig.md b/old_docs/API_docs_v25/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v25/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v25/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_getDialogs.md b/old_docs/API_docs_v25/methods/messages_getDialogs.md index afc08a46..6fb3f60e 100644 --- a/old_docs/API_docs_v25/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v25/methods/messages_getDialogs.md @@ -24,8 +24,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_getHistory.md b/old_docs/API_docs_v25/methods/messages_getHistory.md index f3fc1aab..15de77b5 100644 --- a/old_docs/API_docs_v25/methods/messages_getHistory.md +++ b/old_docs/API_docs_v25/methods/messages_getHistory.md @@ -25,7 +25,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v25/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_readHistory.md b/old_docs/API_docs_v25/methods/messages_readHistory.md index cf143b14..d392dbce 100644 --- a/old_docs/API_docs_v25/methods/messages_readHistory.md +++ b/old_docs/API_docs_v25/methods/messages_readHistory.md @@ -26,6 +26,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_receivedQueue.md b/old_docs/API_docs_v25/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v25/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v25/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_search.md b/old_docs/API_docs_v25/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v25/methods/messages_search.md +++ b/old_docs/API_docs_v25/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v25/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_sendMedia.md b/old_docs/API_docs_v25/methods/messages_sendMedia.md index cdb98fa8..ce23c874 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v25/methods/messages_sendMedia.md @@ -24,7 +24,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_sendMessage.md b/old_docs/API_docs_v25/methods/messages_sendMessage.md index 9787c1bc..e4676bb0 100644 --- a/old_docs/API_docs_v25/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v25/methods/messages_sendMessage.md @@ -24,7 +24,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v25/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/messages_setTyping.md b/old_docs/API_docs_v25/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v25/methods/messages_setTyping.md +++ b/old_docs/API_docs_v25/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/photos_getUserPhotos.md b/old_docs/API_docs_v25/methods/photos_getUserPhotos.md index fdaced72..56c76d8b 100644 --- a/old_docs/API_docs_v25/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v25/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v25/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v25/methods/users_getUsers.md b/old_docs/API_docs_v25/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v25/methods/users_getUsers.md +++ b/old_docs/API_docs_v25/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_changePhone.md b/old_docs/API_docs_v27/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v27/methods/account_changePhone.md +++ b/old_docs/API_docs_v27/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_checkUsername.md b/old_docs/API_docs_v27/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v27/methods/account_checkUsername.md +++ b/old_docs/API_docs_v27/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_getNotifySettings.md b/old_docs/API_docs_v27/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v27/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_getPrivacy.md b/old_docs/API_docs_v27/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v27/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v27/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_registerDevice.md b/old_docs/API_docs_v27/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v27/methods/account_registerDevice.md +++ b/old_docs/API_docs_v27/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_resetAuthorization.md b/old_docs/API_docs_v27/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v27/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v27/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md index 2670f68d..650dba72 100644 --- a/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v27/methods/account_sendChangePhoneCode.md @@ -24,6 +24,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_setAccountTTL.md b/old_docs/API_docs_v27/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v27/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v27/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_setPrivacy.md b/old_docs/API_docs_v27/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v27/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v27/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_unregisterDevice.md b/old_docs/API_docs_v27/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v27/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v27/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_updateNotifySettings.md b/old_docs/API_docs_v27/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v27/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v27/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v27/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_updateProfile.md b/old_docs/API_docs_v27/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v27/methods/account_updateProfile.md +++ b/old_docs/API_docs_v27/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/account_updateUsername.md b/old_docs/API_docs_v27/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v27/methods/account_updateUsername.md +++ b/old_docs/API_docs_v27/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v27/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_checkPassword.md b/old_docs/API_docs_v27/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v27/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v27/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_checkPhone.md b/old_docs/API_docs_v27/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v27/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v27/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_exportAuthorization.md b/old_docs/API_docs_v27/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v27/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v27/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_importAuthorization.md b/old_docs/API_docs_v27/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v27/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v27/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_recoverPassword.md b/old_docs/API_docs_v27/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v27/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v27/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v27/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v27/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v27/methods/auth_sendInvites.md b/old_docs/API_docs_v27/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v27/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v27/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_block.md b/old_docs/API_docs_v27/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v27/methods/contacts_block.md +++ b/old_docs/API_docs_v27/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_deleteContact.md b/old_docs/API_docs_v27/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v27/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v27/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_deleteContacts.md b/old_docs/API_docs_v27/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v27/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v27/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_importCard.md b/old_docs/API_docs_v27/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v27/methods/contacts_importCard.md +++ b/old_docs/API_docs_v27/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_search.md b/old_docs/API_docs_v27/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v27/methods/contacts_search.md +++ b/old_docs/API_docs_v27/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v27/methods/contacts_unblock.md b/old_docs/API_docs_v27/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v27/methods/contacts_unblock.md +++ b/old_docs/API_docs_v27/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/initConnection.md b/old_docs/API_docs_v27/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v27/methods/initConnection.md +++ b/old_docs/API_docs_v27/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v27/methods/invokeWithLayer.md b/old_docs/API_docs_v27/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v27/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v27/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_addChatUser.md b/old_docs/API_docs_v27/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v27/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v27/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_createChat.md b/old_docs/API_docs_v27/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v27/methods/messages_createChat.md +++ b/old_docs/API_docs_v27/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v27/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_deleteHistory.md b/old_docs/API_docs_v27/methods/messages_deleteHistory.md index 09e3c790..b7a9417d 100644 --- a/old_docs/API_docs_v27/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v27/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_editChatPhoto.md b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v27/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v27/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_editChatTitle.md b/old_docs/API_docs_v27/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v27/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v27/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessage.md b/old_docs/API_docs_v27/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_forwardMessages.md b/old_docs/API_docs_v27/methods/messages_forwardMessages.md index 504b2a0a..93479bb5 100644 --- a/old_docs/API_docs_v27/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v27/methods/messages_forwardMessages.md @@ -23,7 +23,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_getChats.md b/old_docs/API_docs_v27/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v27/methods/messages_getChats.md +++ b/old_docs/API_docs_v27/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_getDhConfig.md b/old_docs/API_docs_v27/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v27/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v27/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_getDialogs.md b/old_docs/API_docs_v27/methods/messages_getDialogs.md index afc08a46..6fb3f60e 100644 --- a/old_docs/API_docs_v27/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v27/methods/messages_getDialogs.md @@ -24,8 +24,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_getHistory.md b/old_docs/API_docs_v27/methods/messages_getHistory.md index f3fc1aab..15de77b5 100644 --- a/old_docs/API_docs_v27/methods/messages_getHistory.md +++ b/old_docs/API_docs_v27/methods/messages_getHistory.md @@ -25,7 +25,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v27/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_readHistory.md b/old_docs/API_docs_v27/methods/messages_readHistory.md index cf143b14..d392dbce 100644 --- a/old_docs/API_docs_v27/methods/messages_readHistory.md +++ b/old_docs/API_docs_v27/methods/messages_readHistory.md @@ -26,6 +26,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_receivedQueue.md b/old_docs/API_docs_v27/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v27/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v27/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_search.md b/old_docs/API_docs_v27/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v27/methods/messages_search.md +++ b/old_docs/API_docs_v27/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v27/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_sendMedia.md b/old_docs/API_docs_v27/methods/messages_sendMedia.md index db1dddf9..963d0cfc 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v27/methods/messages_sendMedia.md @@ -24,7 +24,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_sendMessage.md b/old_docs/API_docs_v27/methods/messages_sendMessage.md index a4cd4956..028ab64f 100644 --- a/old_docs/API_docs_v27/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v27/methods/messages_sendMessage.md @@ -24,7 +24,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v27/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/messages_setTyping.md b/old_docs/API_docs_v27/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v27/methods/messages_setTyping.md +++ b/old_docs/API_docs_v27/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/photos_getUserPhotos.md b/old_docs/API_docs_v27/methods/photos_getUserPhotos.md index fdaced72..56c76d8b 100644 --- a/old_docs/API_docs_v27/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v27/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v27/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v27/methods/users_getUsers.md b/old_docs/API_docs_v27/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v27/methods/users_getUsers.md +++ b/old_docs/API_docs_v27/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_changePhone.md b/old_docs/API_docs_v33/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v33/methods/account_changePhone.md +++ b/old_docs/API_docs_v33/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_checkUsername.md b/old_docs/API_docs_v33/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v33/methods/account_checkUsername.md +++ b/old_docs/API_docs_v33/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_getNotifySettings.md b/old_docs/API_docs_v33/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v33/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_getPrivacy.md b/old_docs/API_docs_v33/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v33/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v33/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_registerDevice.md b/old_docs/API_docs_v33/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v33/methods/account_registerDevice.md +++ b/old_docs/API_docs_v33/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_resetAuthorization.md b/old_docs/API_docs_v33/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v33/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v33/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md index 2670f68d..650dba72 100644 --- a/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v33/methods/account_sendChangePhoneCode.md @@ -24,6 +24,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_setAccountTTL.md b/old_docs/API_docs_v33/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v33/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v33/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_setPrivacy.md b/old_docs/API_docs_v33/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v33/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v33/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_unregisterDevice.md b/old_docs/API_docs_v33/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v33/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v33/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_updateNotifySettings.md b/old_docs/API_docs_v33/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v33/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v33/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v33/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_updateProfile.md b/old_docs/API_docs_v33/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v33/methods/account_updateProfile.md +++ b/old_docs/API_docs_v33/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/account_updateUsername.md b/old_docs/API_docs_v33/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v33/methods/account_updateUsername.md +++ b/old_docs/API_docs_v33/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v33/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_checkPassword.md b/old_docs/API_docs_v33/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v33/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v33/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_checkPhone.md b/old_docs/API_docs_v33/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v33/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v33/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_exportAuthorization.md b/old_docs/API_docs_v33/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v33/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_importAuthorization.md b/old_docs/API_docs_v33/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v33/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v33/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_recoverPassword.md b/old_docs/API_docs_v33/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v33/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v33/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v33/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v33/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v33/methods/auth_sendInvites.md b/old_docs/API_docs_v33/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v33/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v33/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_block.md b/old_docs/API_docs_v33/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v33/methods/contacts_block.md +++ b/old_docs/API_docs_v33/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_deleteContact.md b/old_docs/API_docs_v33/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v33/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v33/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_deleteContacts.md b/old_docs/API_docs_v33/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v33/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v33/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_importCard.md b/old_docs/API_docs_v33/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v33/methods/contacts_importCard.md +++ b/old_docs/API_docs_v33/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_search.md b/old_docs/API_docs_v33/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v33/methods/contacts_search.md +++ b/old_docs/API_docs_v33/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v33/methods/contacts_unblock.md b/old_docs/API_docs_v33/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v33/methods/contacts_unblock.md +++ b/old_docs/API_docs_v33/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/initConnection.md b/old_docs/API_docs_v33/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v33/methods/initConnection.md +++ b/old_docs/API_docs_v33/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v33/methods/invokeWithLayer.md b/old_docs/API_docs_v33/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v33/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v33/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_addChatUser.md b/old_docs/API_docs_v33/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v33/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v33/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v33/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_createChat.md b/old_docs/API_docs_v33/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v33/methods/messages_createChat.md +++ b/old_docs/API_docs_v33/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v33/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_deleteHistory.md b/old_docs/API_docs_v33/methods/messages_deleteHistory.md index 09e3c790..b7a9417d 100644 --- a/old_docs/API_docs_v33/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v33/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_editChatPhoto.md b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v33/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v33/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_editChatTitle.md b/old_docs/API_docs_v33/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v33/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v33/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v33/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessage.md b/old_docs/API_docs_v33/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_forwardMessages.md b/old_docs/API_docs_v33/methods/messages_forwardMessages.md index 504b2a0a..93479bb5 100644 --- a/old_docs/API_docs_v33/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v33/methods/messages_forwardMessages.md @@ -23,7 +23,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_getChats.md b/old_docs/API_docs_v33/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v33/methods/messages_getChats.md +++ b/old_docs/API_docs_v33/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_getDhConfig.md b/old_docs/API_docs_v33/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v33/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v33/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_getDialogs.md b/old_docs/API_docs_v33/methods/messages_getDialogs.md index afc08a46..6fb3f60e 100644 --- a/old_docs/API_docs_v33/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v33/methods/messages_getDialogs.md @@ -24,8 +24,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_getHistory.md b/old_docs/API_docs_v33/methods/messages_getHistory.md index f3fc1aab..15de77b5 100644 --- a/old_docs/API_docs_v33/methods/messages_getHistory.md +++ b/old_docs/API_docs_v33/methods/messages_getHistory.md @@ -25,7 +25,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_getStickerSet.md b/old_docs/API_docs_v33/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v33/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_importChatInvite.md b/old_docs/API_docs_v33/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v33/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v33/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_installStickerSet.md b/old_docs/API_docs_v33/methods/messages_installStickerSet.md index 100277f5..1969d008 100644 --- a/old_docs/API_docs_v33/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v33/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_readHistory.md b/old_docs/API_docs_v33/methods/messages_readHistory.md index cf143b14..d392dbce 100644 --- a/old_docs/API_docs_v33/methods/messages_readHistory.md +++ b/old_docs/API_docs_v33/methods/messages_readHistory.md @@ -26,6 +26,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_receivedQueue.md b/old_docs/API_docs_v33/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v33/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v33/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_search.md b/old_docs/API_docs_v33/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v33/methods/messages_search.md +++ b/old_docs/API_docs_v33/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v33/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_sendMedia.md b/old_docs/API_docs_v33/methods/messages_sendMedia.md index 73ebcdfb..a5aa1fb9 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v33/methods/messages_sendMedia.md @@ -25,7 +25,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_sendMessage.md b/old_docs/API_docs_v33/methods/messages_sendMessage.md index 4ad3a657..02632337 100644 --- a/old_docs/API_docs_v33/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v33/methods/messages_sendMessage.md @@ -25,7 +25,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v33/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_setTyping.md b/old_docs/API_docs_v33/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v33/methods/messages_setTyping.md +++ b/old_docs/API_docs_v33/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_startBot.md b/old_docs/API_docs_v33/methods/messages_startBot.md index 61dafce4..225e997e 100644 --- a/old_docs/API_docs_v33/methods/messages_startBot.md +++ b/old_docs/API_docs_v33/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v33/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/photos_getUserPhotos.md b/old_docs/API_docs_v33/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v33/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v33/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v33/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v33/methods/users_getUsers.md b/old_docs/API_docs_v33/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v33/methods/users_getUsers.md +++ b/old_docs/API_docs_v33/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_changePhone.md b/old_docs/API_docs_v38/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v38/methods/account_changePhone.md +++ b/old_docs/API_docs_v38/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_checkUsername.md b/old_docs/API_docs_v38/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v38/methods/account_checkUsername.md +++ b/old_docs/API_docs_v38/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_getNotifySettings.md b/old_docs/API_docs_v38/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v38/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_getPrivacy.md b/old_docs/API_docs_v38/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v38/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v38/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_registerDevice.md b/old_docs/API_docs_v38/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v38/methods/account_registerDevice.md +++ b/old_docs/API_docs_v38/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_resetAuthorization.md b/old_docs/API_docs_v38/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v38/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v38/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md index 2670f68d..650dba72 100644 --- a/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v38/methods/account_sendChangePhoneCode.md @@ -24,6 +24,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_setAccountTTL.md b/old_docs/API_docs_v38/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v38/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v38/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_setPrivacy.md b/old_docs/API_docs_v38/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v38/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v38/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_unregisterDevice.md b/old_docs/API_docs_v38/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v38/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v38/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_updateNotifySettings.md b/old_docs/API_docs_v38/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v38/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v38/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v38/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_updateProfile.md b/old_docs/API_docs_v38/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v38/methods/account_updateProfile.md +++ b/old_docs/API_docs_v38/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/account_updateUsername.md b/old_docs/API_docs_v38/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v38/methods/account_updateUsername.md +++ b/old_docs/API_docs_v38/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v38/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_checkPassword.md b/old_docs/API_docs_v38/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v38/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v38/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_checkPhone.md b/old_docs/API_docs_v38/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v38/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v38/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_exportAuthorization.md b/old_docs/API_docs_v38/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v38/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_importAuthorization.md b/old_docs/API_docs_v38/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v38/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v38/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_recoverPassword.md b/old_docs/API_docs_v38/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v38/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v38/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v38/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v38/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v38/methods/auth_sendInvites.md b/old_docs/API_docs_v38/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v38/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v38/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_checkUsername.md b/old_docs/API_docs_v38/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v38/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v38/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_createChannel.md b/old_docs/API_docs_v38/methods/channels_createChannel.md index 99e0c6d1..1b391a1c 100644 --- a/old_docs/API_docs_v38/methods/channels_createChannel.md +++ b/old_docs/API_docs_v38/methods/channels_createChannel.md @@ -26,6 +26,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_deleteChannel.md b/old_docs/API_docs_v38/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v38/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_deleteMessages.md b/old_docs/API_docs_v38/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v38/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v38/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_editAbout.md b/old_docs/API_docs_v38/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v38/methods/channels_editAbout.md +++ b/old_docs/API_docs_v38/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_editAdmin.md b/old_docs/API_docs_v38/methods/channels_editAdmin.md index 4373e6e1..9c6b48a5 100644 --- a/old_docs/API_docs_v38/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v38/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_editPhoto.md b/old_docs/API_docs_v38/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v38/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v38/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_editTitle.md b/old_docs/API_docs_v38/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v38/methods/channels_editTitle.md +++ b/old_docs/API_docs_v38/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_exportInvite.md b/old_docs/API_docs_v38/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v38/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v38/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_getChannels.md b/old_docs/API_docs_v38/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v38/methods/channels_getChannels.md +++ b/old_docs/API_docs_v38/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_getMessages.md b/old_docs/API_docs_v38/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v38/methods/channels_getMessages.md +++ b/old_docs/API_docs_v38/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_getParticipant.md b/old_docs/API_docs_v38/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v38/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v38/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v38/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v38/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_joinChannel.md b/old_docs/API_docs_v38/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v38/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v38/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_leaveChannel.md b/old_docs/API_docs_v38/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v38/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v38/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_readHistory.md b/old_docs/API_docs_v38/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v38/methods/channels_readHistory.md +++ b/old_docs/API_docs_v38/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_reportSpam.md b/old_docs/API_docs_v38/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v38/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v38/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/channels_updateUsername.md b/old_docs/API_docs_v38/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v38/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v38/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_block.md b/old_docs/API_docs_v38/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v38/methods/contacts_block.md +++ b/old_docs/API_docs_v38/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_deleteContact.md b/old_docs/API_docs_v38/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v38/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v38/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_deleteContacts.md b/old_docs/API_docs_v38/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v38/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v38/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_importCard.md b/old_docs/API_docs_v38/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v38/methods/contacts_importCard.md +++ b/old_docs/API_docs_v38/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_search.md b/old_docs/API_docs_v38/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v38/methods/contacts_search.md +++ b/old_docs/API_docs_v38/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v38/methods/contacts_unblock.md b/old_docs/API_docs_v38/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v38/methods/contacts_unblock.md +++ b/old_docs/API_docs_v38/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/initConnection.md b/old_docs/API_docs_v38/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v38/methods/initConnection.md +++ b/old_docs/API_docs_v38/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v38/methods/invokeWithLayer.md b/old_docs/API_docs_v38/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v38/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v38/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_addChatUser.md b/old_docs/API_docs_v38/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v38/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v38/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v38/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_createChat.md b/old_docs/API_docs_v38/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v38/methods/messages_createChat.md +++ b/old_docs/API_docs_v38/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v38/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_deleteHistory.md b/old_docs/API_docs_v38/methods/messages_deleteHistory.md index 09e3c790..b7a9417d 100644 --- a/old_docs/API_docs_v38/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v38/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_editChatPhoto.md b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v38/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v38/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_editChatTitle.md b/old_docs/API_docs_v38/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v38/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v38/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v38/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessage.md b/old_docs/API_docs_v38/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_forwardMessages.md b/old_docs/API_docs_v38/methods/messages_forwardMessages.md index ff55d1d6..8c5d2c20 100644 --- a/old_docs/API_docs_v38/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v38/methods/messages_forwardMessages.md @@ -24,7 +24,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getChats.md b/old_docs/API_docs_v38/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v38/methods/messages_getChats.md +++ b/old_docs/API_docs_v38/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getDhConfig.md b/old_docs/API_docs_v38/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v38/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v38/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getDialogs.md b/old_docs/API_docs_v38/methods/messages_getDialogs.md index 2fe78d0d..8d457c35 100644 --- a/old_docs/API_docs_v38/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v38/methods/messages_getDialogs.md @@ -23,8 +23,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getHistory.md b/old_docs/API_docs_v38/methods/messages_getHistory.md index 67a3593e..ed037b4a 100644 --- a/old_docs/API_docs_v38/methods/messages_getHistory.md +++ b/old_docs/API_docs_v38/methods/messages_getHistory.md @@ -27,7 +27,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v38/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v38/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_getStickerSet.md b/old_docs/API_docs_v38/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v38/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_importChatInvite.md b/old_docs/API_docs_v38/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v38/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v38/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_installStickerSet.md b/old_docs/API_docs_v38/methods/messages_installStickerSet.md index 100277f5..1969d008 100644 --- a/old_docs/API_docs_v38/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v38/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_readHistory.md b/old_docs/API_docs_v38/methods/messages_readHistory.md index cf143b14..d392dbce 100644 --- a/old_docs/API_docs_v38/methods/messages_readHistory.md +++ b/old_docs/API_docs_v38/methods/messages_readHistory.md @@ -26,6 +26,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_receivedQueue.md b/old_docs/API_docs_v38/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v38/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v38/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_reportSpam.md b/old_docs/API_docs_v38/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v38/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v38/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_search.md b/old_docs/API_docs_v38/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v38/methods/messages_search.md +++ b/old_docs/API_docs_v38/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v38/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_sendMedia.md b/old_docs/API_docs_v38/methods/messages_sendMedia.md index 73ebcdfb..a5aa1fb9 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v38/methods/messages_sendMedia.md @@ -25,7 +25,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_sendMessage.md b/old_docs/API_docs_v38/methods/messages_sendMessage.md index 98dc8b7a..3e6f1688 100644 --- a/old_docs/API_docs_v38/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v38/methods/messages_sendMessage.md @@ -27,7 +27,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v38/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_setTyping.md b/old_docs/API_docs_v38/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v38/methods/messages_setTyping.md +++ b/old_docs/API_docs_v38/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_startBot.md b/old_docs/API_docs_v38/methods/messages_startBot.md index 61dafce4..225e997e 100644 --- a/old_docs/API_docs_v38/methods/messages_startBot.md +++ b/old_docs/API_docs_v38/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v38/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/photos_getUserPhotos.md b/old_docs/API_docs_v38/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v38/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v38/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v38/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v38/methods/users_getUsers.md b/old_docs/API_docs_v38/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v38/methods/users_getUsers.md +++ b/old_docs/API_docs_v38/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_changePhone.md b/old_docs/API_docs_v40/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v40/methods/account_changePhone.md +++ b/old_docs/API_docs_v40/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_checkUsername.md b/old_docs/API_docs_v40/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v40/methods/account_checkUsername.md +++ b/old_docs/API_docs_v40/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_getNotifySettings.md b/old_docs/API_docs_v40/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v40/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_getPrivacy.md b/old_docs/API_docs_v40/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v40/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v40/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_registerDevice.md b/old_docs/API_docs_v40/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v40/methods/account_registerDevice.md +++ b/old_docs/API_docs_v40/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_resetAuthorization.md b/old_docs/API_docs_v40/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v40/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v40/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md index 2670f68d..650dba72 100644 --- a/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v40/methods/account_sendChangePhoneCode.md @@ -24,6 +24,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_setAccountTTL.md b/old_docs/API_docs_v40/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v40/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v40/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_setPrivacy.md b/old_docs/API_docs_v40/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v40/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v40/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_unregisterDevice.md b/old_docs/API_docs_v40/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v40/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v40/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_updateNotifySettings.md b/old_docs/API_docs_v40/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v40/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v40/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v40/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_updateProfile.md b/old_docs/API_docs_v40/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v40/methods/account_updateProfile.md +++ b/old_docs/API_docs_v40/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/account_updateUsername.md b/old_docs/API_docs_v40/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v40/methods/account_updateUsername.md +++ b/old_docs/API_docs_v40/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v40/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_checkPassword.md b/old_docs/API_docs_v40/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v40/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v40/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_checkPhone.md b/old_docs/API_docs_v40/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v40/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v40/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_exportAuthorization.md b/old_docs/API_docs_v40/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v40/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_importAuthorization.md b/old_docs/API_docs_v40/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v40/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v40/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_recoverPassword.md b/old_docs/API_docs_v40/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v40/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v40/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v40/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v40/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v40/methods/auth_sendInvites.md b/old_docs/API_docs_v40/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v40/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v40/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_block.md b/old_docs/API_docs_v40/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v40/methods/contacts_block.md +++ b/old_docs/API_docs_v40/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_deleteContact.md b/old_docs/API_docs_v40/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v40/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v40/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_deleteContacts.md b/old_docs/API_docs_v40/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v40/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v40/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_importCard.md b/old_docs/API_docs_v40/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v40/methods/contacts_importCard.md +++ b/old_docs/API_docs_v40/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_search.md b/old_docs/API_docs_v40/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v40/methods/contacts_search.md +++ b/old_docs/API_docs_v40/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v40/methods/contacts_unblock.md b/old_docs/API_docs_v40/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v40/methods/contacts_unblock.md +++ b/old_docs/API_docs_v40/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/initConnection.md b/old_docs/API_docs_v40/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v40/methods/initConnection.md +++ b/old_docs/API_docs_v40/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v40/methods/invokeWithLayer.md b/old_docs/API_docs_v40/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v40/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v40/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_addChatUser.md b/old_docs/API_docs_v40/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v40/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v40/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v40/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_createChat.md b/old_docs/API_docs_v40/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v40/methods/messages_createChat.md +++ b/old_docs/API_docs_v40/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v40/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_deleteHistory.md b/old_docs/API_docs_v40/methods/messages_deleteHistory.md index 09e3c790..b7a9417d 100644 --- a/old_docs/API_docs_v40/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v40/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_editChatPhoto.md b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v40/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v40/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_editChatTitle.md b/old_docs/API_docs_v40/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v40/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v40/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v40/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessage.md b/old_docs/API_docs_v40/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_forwardMessages.md b/old_docs/API_docs_v40/methods/messages_forwardMessages.md index 504b2a0a..93479bb5 100644 --- a/old_docs/API_docs_v40/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v40/methods/messages_forwardMessages.md @@ -23,7 +23,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_getChats.md b/old_docs/API_docs_v40/methods/messages_getChats.md index 6ecac442..d3e82fa4 100644 --- a/old_docs/API_docs_v40/methods/messages_getChats.md +++ b/old_docs/API_docs_v40/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_getDhConfig.md b/old_docs/API_docs_v40/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v40/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v40/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_getDialogs.md b/old_docs/API_docs_v40/methods/messages_getDialogs.md index 2fe78d0d..8d457c35 100644 --- a/old_docs/API_docs_v40/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v40/methods/messages_getDialogs.md @@ -23,8 +23,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_getHistory.md b/old_docs/API_docs_v40/methods/messages_getHistory.md index d8394377..6c89314f 100644 --- a/old_docs/API_docs_v40/methods/messages_getHistory.md +++ b/old_docs/API_docs_v40/methods/messages_getHistory.md @@ -26,7 +26,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_getStickerSet.md b/old_docs/API_docs_v40/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v40/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_importChatInvite.md b/old_docs/API_docs_v40/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v40/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v40/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_installStickerSet.md b/old_docs/API_docs_v40/methods/messages_installStickerSet.md index 100277f5..1969d008 100644 --- a/old_docs/API_docs_v40/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_readHistory.md b/old_docs/API_docs_v40/methods/messages_readHistory.md index cf143b14..d392dbce 100644 --- a/old_docs/API_docs_v40/methods/messages_readHistory.md +++ b/old_docs/API_docs_v40/methods/messages_readHistory.md @@ -26,6 +26,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_receivedQueue.md b/old_docs/API_docs_v40/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v40/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v40/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_search.md b/old_docs/API_docs_v40/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v40/methods/messages_search.md +++ b/old_docs/API_docs_v40/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v40/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_sendMedia.md b/old_docs/API_docs_v40/methods/messages_sendMedia.md index 73ebcdfb..a5aa1fb9 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v40/methods/messages_sendMedia.md @@ -25,7 +25,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_sendMessage.md b/old_docs/API_docs_v40/methods/messages_sendMessage.md index 98dc8b7a..3e6f1688 100644 --- a/old_docs/API_docs_v40/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v40/methods/messages_sendMessage.md @@ -27,7 +27,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v40/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_setTyping.md b/old_docs/API_docs_v40/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v40/methods/messages_setTyping.md +++ b/old_docs/API_docs_v40/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_startBot.md b/old_docs/API_docs_v40/methods/messages_startBot.md index 61dafce4..225e997e 100644 --- a/old_docs/API_docs_v40/methods/messages_startBot.md +++ b/old_docs/API_docs_v40/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v40/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/photos_getUserPhotos.md b/old_docs/API_docs_v40/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v40/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v40/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v40/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v40/methods/users_getUsers.md b/old_docs/API_docs_v40/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v40/methods/users_getUsers.md +++ b/old_docs/API_docs_v40/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_changePhone.md b/old_docs/API_docs_v41/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v41/methods/account_changePhone.md +++ b/old_docs/API_docs_v41/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_checkUsername.md b/old_docs/API_docs_v41/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v41/methods/account_checkUsername.md +++ b/old_docs/API_docs_v41/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_getNotifySettings.md b/old_docs/API_docs_v41/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v41/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_getPrivacy.md b/old_docs/API_docs_v41/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v41/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v41/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_registerDevice.md b/old_docs/API_docs_v41/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v41/methods/account_registerDevice.md +++ b/old_docs/API_docs_v41/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_resetAuthorization.md b/old_docs/API_docs_v41/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v41/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v41/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md index 2670f68d..650dba72 100644 --- a/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v41/methods/account_sendChangePhoneCode.md @@ -24,6 +24,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_setAccountTTL.md b/old_docs/API_docs_v41/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v41/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v41/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_setPrivacy.md b/old_docs/API_docs_v41/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v41/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v41/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_unregisterDevice.md b/old_docs/API_docs_v41/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v41/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v41/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_updateNotifySettings.md b/old_docs/API_docs_v41/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v41/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v41/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v41/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_updateProfile.md b/old_docs/API_docs_v41/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v41/methods/account_updateProfile.md +++ b/old_docs/API_docs_v41/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/account_updateUsername.md b/old_docs/API_docs_v41/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v41/methods/account_updateUsername.md +++ b/old_docs/API_docs_v41/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v41/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_checkPassword.md b/old_docs/API_docs_v41/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v41/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v41/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_checkPhone.md b/old_docs/API_docs_v41/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v41/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v41/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_exportAuthorization.md b/old_docs/API_docs_v41/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v41/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_importAuthorization.md b/old_docs/API_docs_v41/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v41/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v41/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_recoverPassword.md b/old_docs/API_docs_v41/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v41/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v41/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v41/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v41/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v41/methods/auth_sendInvites.md b/old_docs/API_docs_v41/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v41/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v41/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_checkUsername.md b/old_docs/API_docs_v41/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v41/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v41/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_createChannel.md b/old_docs/API_docs_v41/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v41/methods/channels_createChannel.md +++ b/old_docs/API_docs_v41/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_deleteChannel.md b/old_docs/API_docs_v41/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v41/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_deleteMessages.md b/old_docs/API_docs_v41/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v41/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v41/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_editAbout.md b/old_docs/API_docs_v41/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v41/methods/channels_editAbout.md +++ b/old_docs/API_docs_v41/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_editAdmin.md b/old_docs/API_docs_v41/methods/channels_editAdmin.md index 4373e6e1..9c6b48a5 100644 --- a/old_docs/API_docs_v41/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v41/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_editPhoto.md b/old_docs/API_docs_v41/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v41/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v41/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_editTitle.md b/old_docs/API_docs_v41/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v41/methods/channels_editTitle.md +++ b/old_docs/API_docs_v41/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_exportInvite.md b/old_docs/API_docs_v41/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v41/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v41/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_getChannels.md b/old_docs/API_docs_v41/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v41/methods/channels_getChannels.md +++ b/old_docs/API_docs_v41/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_getMessages.md b/old_docs/API_docs_v41/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v41/methods/channels_getMessages.md +++ b/old_docs/API_docs_v41/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_getParticipant.md b/old_docs/API_docs_v41/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v41/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v41/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v41/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v41/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_joinChannel.md b/old_docs/API_docs_v41/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v41/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v41/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_leaveChannel.md b/old_docs/API_docs_v41/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v41/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v41/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_readHistory.md b/old_docs/API_docs_v41/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v41/methods/channels_readHistory.md +++ b/old_docs/API_docs_v41/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_reportSpam.md b/old_docs/API_docs_v41/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v41/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v41/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/channels_updateUsername.md b/old_docs/API_docs_v41/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v41/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v41/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_block.md b/old_docs/API_docs_v41/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v41/methods/contacts_block.md +++ b/old_docs/API_docs_v41/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_deleteContact.md b/old_docs/API_docs_v41/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v41/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v41/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_deleteContacts.md b/old_docs/API_docs_v41/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v41/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v41/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_importCard.md b/old_docs/API_docs_v41/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v41/methods/contacts_importCard.md +++ b/old_docs/API_docs_v41/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_search.md b/old_docs/API_docs_v41/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v41/methods/contacts_search.md +++ b/old_docs/API_docs_v41/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v41/methods/contacts_unblock.md b/old_docs/API_docs_v41/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v41/methods/contacts_unblock.md +++ b/old_docs/API_docs_v41/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/initConnection.md b/old_docs/API_docs_v41/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v41/methods/initConnection.md +++ b/old_docs/API_docs_v41/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v41/methods/invokeWithLayer.md b/old_docs/API_docs_v41/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v41/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v41/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_addChatUser.md b/old_docs/API_docs_v41/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v41/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v41/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v41/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_createChat.md b/old_docs/API_docs_v41/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v41/methods/messages_createChat.md +++ b/old_docs/API_docs_v41/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v41/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_deleteHistory.md b/old_docs/API_docs_v41/methods/messages_deleteHistory.md index a7456be1..c8081e79 100644 --- a/old_docs/API_docs_v41/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v41/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_editChatAdmin.md b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v41/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v41/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_editChatTitle.md b/old_docs/API_docs_v41/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v41/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v41/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v41/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessage.md b/old_docs/API_docs_v41/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_forwardMessages.md b/old_docs/API_docs_v41/methods/messages_forwardMessages.md index 110a375f..b0a11b22 100644 --- a/old_docs/API_docs_v41/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v41/methods/messages_forwardMessages.md @@ -25,7 +25,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getChats.md b/old_docs/API_docs_v41/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v41/methods/messages_getChats.md +++ b/old_docs/API_docs_v41/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getDhConfig.md b/old_docs/API_docs_v41/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v41/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v41/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getDialogs.md b/old_docs/API_docs_v41/methods/messages_getDialogs.md index 2fe78d0d..8d457c35 100644 --- a/old_docs/API_docs_v41/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v41/methods/messages_getDialogs.md @@ -23,8 +23,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getHistory.md b/old_docs/API_docs_v41/methods/messages_getHistory.md index 67a3593e..ed037b4a 100644 --- a/old_docs/API_docs_v41/methods/messages_getHistory.md +++ b/old_docs/API_docs_v41/methods/messages_getHistory.md @@ -27,7 +27,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v41/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v41/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_getStickerSet.md b/old_docs/API_docs_v41/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v41/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_importChatInvite.md b/old_docs/API_docs_v41/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v41/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v41/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_installStickerSet.md b/old_docs/API_docs_v41/methods/messages_installStickerSet.md index 100277f5..1969d008 100644 --- a/old_docs/API_docs_v41/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_migrateChat.md b/old_docs/API_docs_v41/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v41/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v41/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v41/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_readHistory.md b/old_docs/API_docs_v41/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v41/methods/messages_readHistory.md +++ b/old_docs/API_docs_v41/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_receivedQueue.md b/old_docs/API_docs_v41/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v41/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v41/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_reportSpam.md b/old_docs/API_docs_v41/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v41/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v41/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_search.md b/old_docs/API_docs_v41/methods/messages_search.md index ab9c6870..73ba4090 100644 --- a/old_docs/API_docs_v41/methods/messages_search.md +++ b/old_docs/API_docs_v41/methods/messages_search.md @@ -30,7 +30,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_searchGlobal.md b/old_docs/API_docs_v41/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v41/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v41/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v41/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_sendMedia.md b/old_docs/API_docs_v41/methods/messages_sendMedia.md index f55c7205..0e097b33 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v41/methods/messages_sendMedia.md @@ -26,7 +26,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_sendMessage.md b/old_docs/API_docs_v41/methods/messages_sendMessage.md index d393f10f..b1f581ad 100644 --- a/old_docs/API_docs_v41/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v41/methods/messages_sendMessage.md @@ -29,7 +29,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v41/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_setTyping.md b/old_docs/API_docs_v41/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v41/methods/messages_setTyping.md +++ b/old_docs/API_docs_v41/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_startBot.md b/old_docs/API_docs_v41/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v41/methods/messages_startBot.md +++ b/old_docs/API_docs_v41/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v41/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v41/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/photos_getUserPhotos.md b/old_docs/API_docs_v41/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v41/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v41/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v41/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v41/methods/users_getUsers.md b/old_docs/API_docs_v41/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v41/methods/users_getUsers.md +++ b/old_docs/API_docs_v41/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_changePhone.md b/old_docs/API_docs_v42/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v42/methods/account_changePhone.md +++ b/old_docs/API_docs_v42/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_checkUsername.md b/old_docs/API_docs_v42/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v42/methods/account_checkUsername.md +++ b/old_docs/API_docs_v42/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_getNotifySettings.md b/old_docs/API_docs_v42/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v42/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_getPrivacy.md b/old_docs/API_docs_v42/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v42/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v42/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_registerDevice.md b/old_docs/API_docs_v42/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v42/methods/account_registerDevice.md +++ b/old_docs/API_docs_v42/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_resetAuthorization.md b/old_docs/API_docs_v42/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v42/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v42/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md index 2670f68d..650dba72 100644 --- a/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v42/methods/account_sendChangePhoneCode.md @@ -24,6 +24,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_setAccountTTL.md b/old_docs/API_docs_v42/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v42/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v42/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_setPrivacy.md b/old_docs/API_docs_v42/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v42/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v42/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_unregisterDevice.md b/old_docs/API_docs_v42/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v42/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v42/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_updateNotifySettings.md b/old_docs/API_docs_v42/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v42/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v42/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v42/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_updateProfile.md b/old_docs/API_docs_v42/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v42/methods/account_updateProfile.md +++ b/old_docs/API_docs_v42/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/account_updateUsername.md b/old_docs/API_docs_v42/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v42/methods/account_updateUsername.md +++ b/old_docs/API_docs_v42/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v42/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_checkPassword.md b/old_docs/API_docs_v42/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v42/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v42/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_checkPhone.md b/old_docs/API_docs_v42/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v42/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v42/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_exportAuthorization.md b/old_docs/API_docs_v42/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v42/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_importAuthorization.md b/old_docs/API_docs_v42/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v42/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v42/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_recoverPassword.md b/old_docs/API_docs_v42/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v42/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v42/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v42/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v42/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v42/methods/auth_sendInvites.md b/old_docs/API_docs_v42/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v42/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v42/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_checkUsername.md b/old_docs/API_docs_v42/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v42/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v42/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_createChannel.md b/old_docs/API_docs_v42/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v42/methods/channels_createChannel.md +++ b/old_docs/API_docs_v42/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_deleteChannel.md b/old_docs/API_docs_v42/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v42/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_deleteMessages.md b/old_docs/API_docs_v42/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v42/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v42/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_editAbout.md b/old_docs/API_docs_v42/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v42/methods/channels_editAbout.md +++ b/old_docs/API_docs_v42/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_editAdmin.md b/old_docs/API_docs_v42/methods/channels_editAdmin.md index 871c3b93..9382c319 100644 --- a/old_docs/API_docs_v42/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v42/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_editPhoto.md b/old_docs/API_docs_v42/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v42/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v42/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_editTitle.md b/old_docs/API_docs_v42/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v42/methods/channels_editTitle.md +++ b/old_docs/API_docs_v42/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_exportInvite.md b/old_docs/API_docs_v42/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v42/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v42/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_getChannels.md b/old_docs/API_docs_v42/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v42/methods/channels_getChannels.md +++ b/old_docs/API_docs_v42/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_getMessages.md b/old_docs/API_docs_v42/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v42/methods/channels_getMessages.md +++ b/old_docs/API_docs_v42/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_getParticipant.md b/old_docs/API_docs_v42/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v42/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v42/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v42/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v42/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_joinChannel.md b/old_docs/API_docs_v42/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v42/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v42/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_leaveChannel.md b/old_docs/API_docs_v42/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v42/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v42/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_readHistory.md b/old_docs/API_docs_v42/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v42/methods/channels_readHistory.md +++ b/old_docs/API_docs_v42/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_reportSpam.md b/old_docs/API_docs_v42/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v42/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v42/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/channels_updateUsername.md b/old_docs/API_docs_v42/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v42/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v42/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_block.md b/old_docs/API_docs_v42/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v42/methods/contacts_block.md +++ b/old_docs/API_docs_v42/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_deleteContact.md b/old_docs/API_docs_v42/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v42/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v42/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_deleteContacts.md b/old_docs/API_docs_v42/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v42/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v42/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_importCard.md b/old_docs/API_docs_v42/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v42/methods/contacts_importCard.md +++ b/old_docs/API_docs_v42/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_search.md b/old_docs/API_docs_v42/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v42/methods/contacts_search.md +++ b/old_docs/API_docs_v42/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v42/methods/contacts_unblock.md b/old_docs/API_docs_v42/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v42/methods/contacts_unblock.md +++ b/old_docs/API_docs_v42/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/initConnection.md b/old_docs/API_docs_v42/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v42/methods/initConnection.md +++ b/old_docs/API_docs_v42/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v42/methods/invokeWithLayer.md b/old_docs/API_docs_v42/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v42/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v42/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_addChatUser.md b/old_docs/API_docs_v42/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v42/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v42/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v42/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_createChat.md b/old_docs/API_docs_v42/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v42/methods/messages_createChat.md +++ b/old_docs/API_docs_v42/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v42/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_deleteHistory.md b/old_docs/API_docs_v42/methods/messages_deleteHistory.md index a7456be1..c8081e79 100644 --- a/old_docs/API_docs_v42/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v42/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_editChatAdmin.md b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v42/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v42/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_editChatTitle.md b/old_docs/API_docs_v42/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v42/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v42/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v42/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessage.md b/old_docs/API_docs_v42/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_forwardMessages.md b/old_docs/API_docs_v42/methods/messages_forwardMessages.md index 110a375f..b0a11b22 100644 --- a/old_docs/API_docs_v42/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v42/methods/messages_forwardMessages.md @@ -25,7 +25,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getChats.md b/old_docs/API_docs_v42/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v42/methods/messages_getChats.md +++ b/old_docs/API_docs_v42/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getDhConfig.md b/old_docs/API_docs_v42/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v42/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v42/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getDialogs.md b/old_docs/API_docs_v42/methods/messages_getDialogs.md index c46f6442..7ad3840b 100644 --- a/old_docs/API_docs_v42/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v42/methods/messages_getDialogs.md @@ -25,8 +25,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getHistory.md b/old_docs/API_docs_v42/methods/messages_getHistory.md index 67a3593e..ed037b4a 100644 --- a/old_docs/API_docs_v42/methods/messages_getHistory.md +++ b/old_docs/API_docs_v42/methods/messages_getHistory.md @@ -27,7 +27,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v42/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v42/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_getStickerSet.md b/old_docs/API_docs_v42/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v42/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_importChatInvite.md b/old_docs/API_docs_v42/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v42/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v42/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_installStickerSet.md b/old_docs/API_docs_v42/methods/messages_installStickerSet.md index 100277f5..1969d008 100644 --- a/old_docs/API_docs_v42/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_migrateChat.md b/old_docs/API_docs_v42/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v42/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v42/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v42/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_readHistory.md b/old_docs/API_docs_v42/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v42/methods/messages_readHistory.md +++ b/old_docs/API_docs_v42/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_receivedQueue.md b/old_docs/API_docs_v42/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v42/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v42/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_reportSpam.md b/old_docs/API_docs_v42/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v42/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v42/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_search.md b/old_docs/API_docs_v42/methods/messages_search.md index ab9c6870..73ba4090 100644 --- a/old_docs/API_docs_v42/methods/messages_search.md +++ b/old_docs/API_docs_v42/methods/messages_search.md @@ -30,7 +30,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_searchGlobal.md b/old_docs/API_docs_v42/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v42/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v42/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v42/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_sendMedia.md b/old_docs/API_docs_v42/methods/messages_sendMedia.md index f55c7205..0e097b33 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v42/methods/messages_sendMedia.md @@ -26,7 +26,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_sendMessage.md b/old_docs/API_docs_v42/methods/messages_sendMessage.md index d393f10f..b1f581ad 100644 --- a/old_docs/API_docs_v42/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v42/methods/messages_sendMessage.md @@ -29,7 +29,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v42/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_setTyping.md b/old_docs/API_docs_v42/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v42/methods/messages_setTyping.md +++ b/old_docs/API_docs_v42/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_startBot.md b/old_docs/API_docs_v42/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v42/methods/messages_startBot.md +++ b/old_docs/API_docs_v42/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v42/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v42/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/photos_getUserPhotos.md b/old_docs/API_docs_v42/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v42/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v42/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v42/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v42/methods/users_getUsers.md b/old_docs/API_docs_v42/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v42/methods/users_getUsers.md +++ b/old_docs/API_docs_v42/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_changePhone.md b/old_docs/API_docs_v44/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v44/methods/account_changePhone.md +++ b/old_docs/API_docs_v44/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_checkUsername.md b/old_docs/API_docs_v44/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v44/methods/account_checkUsername.md +++ b/old_docs/API_docs_v44/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_getNotifySettings.md b/old_docs/API_docs_v44/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v44/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_getPrivacy.md b/old_docs/API_docs_v44/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v44/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v44/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_registerDevice.md b/old_docs/API_docs_v44/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v44/methods/account_registerDevice.md +++ b/old_docs/API_docs_v44/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_reportPeer.md b/old_docs/API_docs_v44/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v44/methods/account_reportPeer.md +++ b/old_docs/API_docs_v44/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_resetAuthorization.md b/old_docs/API_docs_v44/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v44/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v44/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md index 2670f68d..650dba72 100644 --- a/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v44/methods/account_sendChangePhoneCode.md @@ -24,6 +24,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_setAccountTTL.md b/old_docs/API_docs_v44/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v44/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v44/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_setPrivacy.md b/old_docs/API_docs_v44/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v44/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v44/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_unregisterDevice.md b/old_docs/API_docs_v44/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v44/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v44/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_updateNotifySettings.md b/old_docs/API_docs_v44/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v44/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v44/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v44/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_updateProfile.md b/old_docs/API_docs_v44/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v44/methods/account_updateProfile.md +++ b/old_docs/API_docs_v44/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/account_updateUsername.md b/old_docs/API_docs_v44/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v44/methods/account_updateUsername.md +++ b/old_docs/API_docs_v44/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v44/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_checkPassword.md b/old_docs/API_docs_v44/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v44/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v44/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_checkPhone.md b/old_docs/API_docs_v44/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v44/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v44/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_exportAuthorization.md b/old_docs/API_docs_v44/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v44/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_importAuthorization.md b/old_docs/API_docs_v44/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v44/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v44/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_recoverPassword.md b/old_docs/API_docs_v44/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v44/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v44/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v44/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v44/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v44/methods/auth_sendInvites.md b/old_docs/API_docs_v44/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v44/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v44/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_checkUsername.md b/old_docs/API_docs_v44/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v44/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v44/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_createChannel.md b/old_docs/API_docs_v44/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v44/methods/channels_createChannel.md +++ b/old_docs/API_docs_v44/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_deleteChannel.md b/old_docs/API_docs_v44/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v44/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_deleteMessages.md b/old_docs/API_docs_v44/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v44/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v44/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_editAbout.md b/old_docs/API_docs_v44/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v44/methods/channels_editAbout.md +++ b/old_docs/API_docs_v44/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_editAdmin.md b/old_docs/API_docs_v44/methods/channels_editAdmin.md index 871c3b93..9382c319 100644 --- a/old_docs/API_docs_v44/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v44/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_editPhoto.md b/old_docs/API_docs_v44/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v44/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v44/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_editTitle.md b/old_docs/API_docs_v44/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v44/methods/channels_editTitle.md +++ b/old_docs/API_docs_v44/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_exportInvite.md b/old_docs/API_docs_v44/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v44/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v44/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_getChannels.md b/old_docs/API_docs_v44/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v44/methods/channels_getChannels.md +++ b/old_docs/API_docs_v44/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_getMessages.md b/old_docs/API_docs_v44/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v44/methods/channels_getMessages.md +++ b/old_docs/API_docs_v44/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_getParticipant.md b/old_docs/API_docs_v44/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v44/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v44/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v44/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v44/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_joinChannel.md b/old_docs/API_docs_v44/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v44/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v44/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_leaveChannel.md b/old_docs/API_docs_v44/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v44/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v44/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_readHistory.md b/old_docs/API_docs_v44/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v44/methods/channels_readHistory.md +++ b/old_docs/API_docs_v44/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_reportSpam.md b/old_docs/API_docs_v44/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v44/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v44/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/channels_updateUsername.md b/old_docs/API_docs_v44/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v44/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v44/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_block.md b/old_docs/API_docs_v44/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v44/methods/contacts_block.md +++ b/old_docs/API_docs_v44/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_deleteContact.md b/old_docs/API_docs_v44/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v44/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v44/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_deleteContacts.md b/old_docs/API_docs_v44/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v44/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v44/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_importCard.md b/old_docs/API_docs_v44/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v44/methods/contacts_importCard.md +++ b/old_docs/API_docs_v44/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_search.md b/old_docs/API_docs_v44/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v44/methods/contacts_search.md +++ b/old_docs/API_docs_v44/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v44/methods/contacts_unblock.md b/old_docs/API_docs_v44/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v44/methods/contacts_unblock.md +++ b/old_docs/API_docs_v44/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/initConnection.md b/old_docs/API_docs_v44/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v44/methods/initConnection.md +++ b/old_docs/API_docs_v44/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v44/methods/invokeWithLayer.md b/old_docs/API_docs_v44/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v44/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v44/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_addChatUser.md b/old_docs/API_docs_v44/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v44/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v44/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v44/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_createChat.md b/old_docs/API_docs_v44/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v44/methods/messages_createChat.md +++ b/old_docs/API_docs_v44/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v44/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_deleteHistory.md b/old_docs/API_docs_v44/methods/messages_deleteHistory.md index a7456be1..c8081e79 100644 --- a/old_docs/API_docs_v44/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v44/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_editChatAdmin.md b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v44/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v44/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_editChatTitle.md b/old_docs/API_docs_v44/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v44/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v44/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v44/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessage.md b/old_docs/API_docs_v44/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_forwardMessages.md b/old_docs/API_docs_v44/methods/messages_forwardMessages.md index 110a375f..b0a11b22 100644 --- a/old_docs/API_docs_v44/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v44/methods/messages_forwardMessages.md @@ -25,7 +25,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getChats.md b/old_docs/API_docs_v44/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v44/methods/messages_getChats.md +++ b/old_docs/API_docs_v44/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getDhConfig.md b/old_docs/API_docs_v44/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v44/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v44/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getDialogs.md b/old_docs/API_docs_v44/methods/messages_getDialogs.md index c46f6442..7ad3840b 100644 --- a/old_docs/API_docs_v44/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v44/methods/messages_getDialogs.md @@ -25,8 +25,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v44/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getHistory.md b/old_docs/API_docs_v44/methods/messages_getHistory.md index 67a3593e..ed037b4a 100644 --- a/old_docs/API_docs_v44/methods/messages_getHistory.md +++ b/old_docs/API_docs_v44/methods/messages_getHistory.md @@ -27,7 +27,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v44/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v44/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_getStickerSet.md b/old_docs/API_docs_v44/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v44/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_importChatInvite.md b/old_docs/API_docs_v44/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v44/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v44/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_installStickerSet.md b/old_docs/API_docs_v44/methods/messages_installStickerSet.md index 100277f5..1969d008 100644 --- a/old_docs/API_docs_v44/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_migrateChat.md b/old_docs/API_docs_v44/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v44/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v44/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v44/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_readHistory.md b/old_docs/API_docs_v44/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v44/methods/messages_readHistory.md +++ b/old_docs/API_docs_v44/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_receivedQueue.md b/old_docs/API_docs_v44/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v44/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v44/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_reportSpam.md b/old_docs/API_docs_v44/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v44/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v44/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_search.md b/old_docs/API_docs_v44/methods/messages_search.md index ab9c6870..73ba4090 100644 --- a/old_docs/API_docs_v44/methods/messages_search.md +++ b/old_docs/API_docs_v44/methods/messages_search.md @@ -30,7 +30,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_searchGifs.md b/old_docs/API_docs_v44/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v44/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v44/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_searchGlobal.md b/old_docs/API_docs_v44/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v44/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v44/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v44/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_sendMedia.md b/old_docs/API_docs_v44/methods/messages_sendMedia.md index f55c7205..0e097b33 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v44/methods/messages_sendMedia.md @@ -26,7 +26,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_sendMessage.md b/old_docs/API_docs_v44/methods/messages_sendMessage.md index d393f10f..b1f581ad 100644 --- a/old_docs/API_docs_v44/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v44/methods/messages_sendMessage.md @@ -29,7 +29,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v44/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_setTyping.md b/old_docs/API_docs_v44/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v44/methods/messages_setTyping.md +++ b/old_docs/API_docs_v44/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_startBot.md b/old_docs/API_docs_v44/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v44/methods/messages_startBot.md +++ b/old_docs/API_docs_v44/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v44/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v44/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/photos_getUserPhotos.md b/old_docs/API_docs_v44/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v44/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v44/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v44/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v44/methods/users_getUsers.md b/old_docs/API_docs_v44/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v44/methods/users_getUsers.md +++ b/old_docs/API_docs_v44/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_changePhone.md b/old_docs/API_docs_v45/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v45/methods/account_changePhone.md +++ b/old_docs/API_docs_v45/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_checkUsername.md b/old_docs/API_docs_v45/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v45/methods/account_checkUsername.md +++ b/old_docs/API_docs_v45/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_getNotifySettings.md b/old_docs/API_docs_v45/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v45/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_getPrivacy.md b/old_docs/API_docs_v45/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v45/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v45/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_registerDevice.md b/old_docs/API_docs_v45/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v45/methods/account_registerDevice.md +++ b/old_docs/API_docs_v45/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_reportPeer.md b/old_docs/API_docs_v45/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v45/methods/account_reportPeer.md +++ b/old_docs/API_docs_v45/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_resetAuthorization.md b/old_docs/API_docs_v45/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v45/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v45/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md index 2670f68d..650dba72 100644 --- a/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v45/methods/account_sendChangePhoneCode.md @@ -24,6 +24,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_setAccountTTL.md b/old_docs/API_docs_v45/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v45/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v45/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_setPrivacy.md b/old_docs/API_docs_v45/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v45/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v45/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_unregisterDevice.md b/old_docs/API_docs_v45/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v45/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v45/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_updateNotifySettings.md b/old_docs/API_docs_v45/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v45/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v45/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v45/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_updateProfile.md b/old_docs/API_docs_v45/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v45/methods/account_updateProfile.md +++ b/old_docs/API_docs_v45/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/account_updateUsername.md b/old_docs/API_docs_v45/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v45/methods/account_updateUsername.md +++ b/old_docs/API_docs_v45/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v45/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_checkPassword.md b/old_docs/API_docs_v45/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v45/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v45/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_checkPhone.md b/old_docs/API_docs_v45/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v45/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v45/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_exportAuthorization.md b/old_docs/API_docs_v45/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v45/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_importAuthorization.md b/old_docs/API_docs_v45/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v45/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v45/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_recoverPassword.md b/old_docs/API_docs_v45/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v45/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v45/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v45/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v45/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v45/methods/auth_sendInvites.md b/old_docs/API_docs_v45/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v45/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v45/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_checkUsername.md b/old_docs/API_docs_v45/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v45/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v45/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_createChannel.md b/old_docs/API_docs_v45/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v45/methods/channels_createChannel.md +++ b/old_docs/API_docs_v45/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_deleteChannel.md b/old_docs/API_docs_v45/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v45/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_deleteMessages.md b/old_docs/API_docs_v45/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v45/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v45/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_editAbout.md b/old_docs/API_docs_v45/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v45/methods/channels_editAbout.md +++ b/old_docs/API_docs_v45/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_editAdmin.md b/old_docs/API_docs_v45/methods/channels_editAdmin.md index 871c3b93..9382c319 100644 --- a/old_docs/API_docs_v45/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v45/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_editPhoto.md b/old_docs/API_docs_v45/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v45/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v45/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_editTitle.md b/old_docs/API_docs_v45/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v45/methods/channels_editTitle.md +++ b/old_docs/API_docs_v45/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_exportInvite.md b/old_docs/API_docs_v45/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v45/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v45/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_getChannels.md b/old_docs/API_docs_v45/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v45/methods/channels_getChannels.md +++ b/old_docs/API_docs_v45/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_getMessages.md b/old_docs/API_docs_v45/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v45/methods/channels_getMessages.md +++ b/old_docs/API_docs_v45/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_getParticipant.md b/old_docs/API_docs_v45/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v45/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v45/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v45/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v45/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_joinChannel.md b/old_docs/API_docs_v45/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v45/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v45/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_leaveChannel.md b/old_docs/API_docs_v45/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v45/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v45/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_readHistory.md b/old_docs/API_docs_v45/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v45/methods/channels_readHistory.md +++ b/old_docs/API_docs_v45/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_reportSpam.md b/old_docs/API_docs_v45/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v45/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v45/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/channels_updateUsername.md b/old_docs/API_docs_v45/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v45/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v45/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_block.md b/old_docs/API_docs_v45/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v45/methods/contacts_block.md +++ b/old_docs/API_docs_v45/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_deleteContact.md b/old_docs/API_docs_v45/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v45/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v45/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_deleteContacts.md b/old_docs/API_docs_v45/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v45/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v45/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_importCard.md b/old_docs/API_docs_v45/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v45/methods/contacts_importCard.md +++ b/old_docs/API_docs_v45/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_search.md b/old_docs/API_docs_v45/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v45/methods/contacts_search.md +++ b/old_docs/API_docs_v45/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v45/methods/contacts_unblock.md b/old_docs/API_docs_v45/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v45/methods/contacts_unblock.md +++ b/old_docs/API_docs_v45/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/initConnection.md b/old_docs/API_docs_v45/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v45/methods/initConnection.md +++ b/old_docs/API_docs_v45/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v45/methods/invokeWithLayer.md b/old_docs/API_docs_v45/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v45/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v45/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_addChatUser.md b/old_docs/API_docs_v45/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v45/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v45/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v45/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_createChat.md b/old_docs/API_docs_v45/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v45/methods/messages_createChat.md +++ b/old_docs/API_docs_v45/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v45/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_deleteHistory.md b/old_docs/API_docs_v45/methods/messages_deleteHistory.md index a7456be1..c8081e79 100644 --- a/old_docs/API_docs_v45/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v45/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_editChatAdmin.md b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v45/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v45/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_editChatTitle.md b/old_docs/API_docs_v45/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v45/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v45/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v45/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessage.md b/old_docs/API_docs_v45/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_forwardMessages.md b/old_docs/API_docs_v45/methods/messages_forwardMessages.md index 110a375f..b0a11b22 100644 --- a/old_docs/API_docs_v45/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v45/methods/messages_forwardMessages.md @@ -25,7 +25,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getChats.md b/old_docs/API_docs_v45/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v45/methods/messages_getChats.md +++ b/old_docs/API_docs_v45/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getDhConfig.md b/old_docs/API_docs_v45/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v45/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v45/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getDialogs.md b/old_docs/API_docs_v45/methods/messages_getDialogs.md index c46f6442..7ad3840b 100644 --- a/old_docs/API_docs_v45/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v45/methods/messages_getDialogs.md @@ -25,8 +25,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v45/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getHistory.md b/old_docs/API_docs_v45/methods/messages_getHistory.md index 67a3593e..ed037b4a 100644 --- a/old_docs/API_docs_v45/methods/messages_getHistory.md +++ b/old_docs/API_docs_v45/methods/messages_getHistory.md @@ -27,7 +27,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md index b1fd0279..0a80318d 100644 --- a/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v45/methods/messages_getInlineBotResults.md @@ -24,7 +24,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v45/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v45/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_getStickerSet.md b/old_docs/API_docs_v45/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v45/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_importChatInvite.md b/old_docs/API_docs_v45/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v45/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v45/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_installStickerSet.md b/old_docs/API_docs_v45/methods/messages_installStickerSet.md index 100277f5..1969d008 100644 --- a/old_docs/API_docs_v45/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_migrateChat.md b/old_docs/API_docs_v45/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v45/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v45/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v45/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_readHistory.md b/old_docs/API_docs_v45/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v45/methods/messages_readHistory.md +++ b/old_docs/API_docs_v45/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_receivedQueue.md b/old_docs/API_docs_v45/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v45/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v45/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_reportSpam.md b/old_docs/API_docs_v45/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v45/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v45/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_saveGif.md b/old_docs/API_docs_v45/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/old_docs/API_docs_v45/methods/messages_saveGif.md +++ b/old_docs/API_docs_v45/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_search.md b/old_docs/API_docs_v45/methods/messages_search.md index ab9c6870..73ba4090 100644 --- a/old_docs/API_docs_v45/methods/messages_search.md +++ b/old_docs/API_docs_v45/methods/messages_search.md @@ -30,7 +30,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_searchGifs.md b/old_docs/API_docs_v45/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v45/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v45/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_searchGlobal.md b/old_docs/API_docs_v45/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v45/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v45/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v45/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md index ba30efe6..b25f00bb 100644 --- a/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v45/methods/messages_sendInlineBotResult.md @@ -26,7 +26,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendMedia.md b/old_docs/API_docs_v45/methods/messages_sendMedia.md index f55c7205..0e097b33 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v45/methods/messages_sendMedia.md @@ -26,7 +26,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_sendMessage.md b/old_docs/API_docs_v45/methods/messages_sendMessage.md index d393f10f..b1f581ad 100644 --- a/old_docs/API_docs_v45/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v45/methods/messages_sendMessage.md @@ -29,7 +29,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v45/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md index 4e99c0d1..e347494b 100644 --- a/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v45/methods/messages_setInlineBotResults.md @@ -27,7 +27,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_setTyping.md b/old_docs/API_docs_v45/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v45/methods/messages_setTyping.md +++ b/old_docs/API_docs_v45/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_startBot.md b/old_docs/API_docs_v45/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v45/methods/messages_startBot.md +++ b/old_docs/API_docs_v45/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v45/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v45/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/photos_getUserPhotos.md b/old_docs/API_docs_v45/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v45/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v45/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v45/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v45/methods/users_getUsers.md b/old_docs/API_docs_v45/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v45/methods/users_getUsers.md +++ b/old_docs/API_docs_v45/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_changePhone.md b/old_docs/API_docs_v46/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v46/methods/account_changePhone.md +++ b/old_docs/API_docs_v46/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_checkUsername.md b/old_docs/API_docs_v46/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v46/methods/account_checkUsername.md +++ b/old_docs/API_docs_v46/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_getNotifySettings.md b/old_docs/API_docs_v46/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v46/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_getPrivacy.md b/old_docs/API_docs_v46/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v46/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v46/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_registerDevice.md b/old_docs/API_docs_v46/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v46/methods/account_registerDevice.md +++ b/old_docs/API_docs_v46/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_reportPeer.md b/old_docs/API_docs_v46/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v46/methods/account_reportPeer.md +++ b/old_docs/API_docs_v46/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_resetAuthorization.md b/old_docs/API_docs_v46/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v46/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v46/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md index 2670f68d..650dba72 100644 --- a/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v46/methods/account_sendChangePhoneCode.md @@ -24,6 +24,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_setAccountTTL.md b/old_docs/API_docs_v46/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v46/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v46/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_setPrivacy.md b/old_docs/API_docs_v46/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v46/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v46/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_unregisterDevice.md b/old_docs/API_docs_v46/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v46/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v46/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_updateNotifySettings.md b/old_docs/API_docs_v46/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v46/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v46/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v46/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_updateProfile.md b/old_docs/API_docs_v46/methods/account_updateProfile.md index 38c7a0ee..c8712074 100644 --- a/old_docs/API_docs_v46/methods/account_updateProfile.md +++ b/old_docs/API_docs_v46/methods/account_updateProfile.md @@ -23,7 +23,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/account_updateUsername.md b/old_docs/API_docs_v46/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v46/methods/account_updateUsername.md +++ b/old_docs/API_docs_v46/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v46/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_checkPassword.md b/old_docs/API_docs_v46/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v46/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v46/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_checkPhone.md b/old_docs/API_docs_v46/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v46/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v46/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_exportAuthorization.md b/old_docs/API_docs_v46/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v46/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_importAuthorization.md b/old_docs/API_docs_v46/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v46/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v46/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_recoverPassword.md b/old_docs/API_docs_v46/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v46/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v46/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v46/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v46/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v46/methods/auth_sendInvites.md b/old_docs/API_docs_v46/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v46/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v46/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_checkUsername.md b/old_docs/API_docs_v46/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v46/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v46/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_createChannel.md b/old_docs/API_docs_v46/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v46/methods/channels_createChannel.md +++ b/old_docs/API_docs_v46/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_deleteChannel.md b/old_docs/API_docs_v46/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v46/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_deleteMessages.md b/old_docs/API_docs_v46/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v46/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v46/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_editAbout.md b/old_docs/API_docs_v46/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v46/methods/channels_editAbout.md +++ b/old_docs/API_docs_v46/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_editAdmin.md b/old_docs/API_docs_v46/methods/channels_editAdmin.md index 871c3b93..9382c319 100644 --- a/old_docs/API_docs_v46/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v46/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_editPhoto.md b/old_docs/API_docs_v46/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v46/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v46/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_editTitle.md b/old_docs/API_docs_v46/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v46/methods/channels_editTitle.md +++ b/old_docs/API_docs_v46/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_exportInvite.md b/old_docs/API_docs_v46/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v46/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v46/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_getChannels.md b/old_docs/API_docs_v46/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v46/methods/channels_getChannels.md +++ b/old_docs/API_docs_v46/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_getMessages.md b/old_docs/API_docs_v46/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v46/methods/channels_getMessages.md +++ b/old_docs/API_docs_v46/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_getParticipant.md b/old_docs/API_docs_v46/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v46/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v46/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v46/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v46/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_joinChannel.md b/old_docs/API_docs_v46/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v46/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v46/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_leaveChannel.md b/old_docs/API_docs_v46/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v46/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v46/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_readHistory.md b/old_docs/API_docs_v46/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v46/methods/channels_readHistory.md +++ b/old_docs/API_docs_v46/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_reportSpam.md b/old_docs/API_docs_v46/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v46/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v46/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/channels_updateUsername.md b/old_docs/API_docs_v46/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v46/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v46/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_block.md b/old_docs/API_docs_v46/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v46/methods/contacts_block.md +++ b/old_docs/API_docs_v46/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_deleteContact.md b/old_docs/API_docs_v46/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v46/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v46/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_deleteContacts.md b/old_docs/API_docs_v46/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v46/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v46/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_importCard.md b/old_docs/API_docs_v46/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v46/methods/contacts_importCard.md +++ b/old_docs/API_docs_v46/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_search.md b/old_docs/API_docs_v46/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v46/methods/contacts_search.md +++ b/old_docs/API_docs_v46/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v46/methods/contacts_unblock.md b/old_docs/API_docs_v46/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v46/methods/contacts_unblock.md +++ b/old_docs/API_docs_v46/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/initConnection.md b/old_docs/API_docs_v46/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v46/methods/initConnection.md +++ b/old_docs/API_docs_v46/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v46/methods/invokeWithLayer.md b/old_docs/API_docs_v46/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v46/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v46/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_addChatUser.md b/old_docs/API_docs_v46/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v46/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v46/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v46/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_createChat.md b/old_docs/API_docs_v46/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v46/methods/messages_createChat.md +++ b/old_docs/API_docs_v46/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v46/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_deleteHistory.md b/old_docs/API_docs_v46/methods/messages_deleteHistory.md index a7456be1..c8081e79 100644 --- a/old_docs/API_docs_v46/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v46/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_editChatAdmin.md b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v46/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v46/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_editChatTitle.md b/old_docs/API_docs_v46/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v46/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v46/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v46/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessage.md b/old_docs/API_docs_v46/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_forwardMessages.md b/old_docs/API_docs_v46/methods/messages_forwardMessages.md index 110a375f..b0a11b22 100644 --- a/old_docs/API_docs_v46/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v46/methods/messages_forwardMessages.md @@ -25,7 +25,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getChats.md b/old_docs/API_docs_v46/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v46/methods/messages_getChats.md +++ b/old_docs/API_docs_v46/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getDhConfig.md b/old_docs/API_docs_v46/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v46/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v46/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getDialogs.md b/old_docs/API_docs_v46/methods/messages_getDialogs.md index c46f6442..7ad3840b 100644 --- a/old_docs/API_docs_v46/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v46/methods/messages_getDialogs.md @@ -25,8 +25,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v46/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getHistory.md b/old_docs/API_docs_v46/methods/messages_getHistory.md index 67a3593e..ed037b4a 100644 --- a/old_docs/API_docs_v46/methods/messages_getHistory.md +++ b/old_docs/API_docs_v46/methods/messages_getHistory.md @@ -27,7 +27,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md index b1fd0279..0a80318d 100644 --- a/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v46/methods/messages_getInlineBotResults.md @@ -24,7 +24,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v46/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v46/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_getStickerSet.md b/old_docs/API_docs_v46/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v46/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_importChatInvite.md b/old_docs/API_docs_v46/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v46/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v46/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_installStickerSet.md b/old_docs/API_docs_v46/methods/messages_installStickerSet.md index 100277f5..1969d008 100644 --- a/old_docs/API_docs_v46/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_migrateChat.md b/old_docs/API_docs_v46/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v46/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v46/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v46/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_readHistory.md b/old_docs/API_docs_v46/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v46/methods/messages_readHistory.md +++ b/old_docs/API_docs_v46/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_receivedQueue.md b/old_docs/API_docs_v46/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v46/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v46/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_reportSpam.md b/old_docs/API_docs_v46/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v46/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v46/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_saveGif.md b/old_docs/API_docs_v46/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/old_docs/API_docs_v46/methods/messages_saveGif.md +++ b/old_docs/API_docs_v46/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_search.md b/old_docs/API_docs_v46/methods/messages_search.md index ab9c6870..73ba4090 100644 --- a/old_docs/API_docs_v46/methods/messages_search.md +++ b/old_docs/API_docs_v46/methods/messages_search.md @@ -30,7 +30,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_searchGifs.md b/old_docs/API_docs_v46/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v46/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v46/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_searchGlobal.md b/old_docs/API_docs_v46/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v46/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v46/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v46/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md index ba30efe6..b25f00bb 100644 --- a/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v46/methods/messages_sendInlineBotResult.md @@ -26,7 +26,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendMedia.md b/old_docs/API_docs_v46/methods/messages_sendMedia.md index f55c7205..0e097b33 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v46/methods/messages_sendMedia.md @@ -26,7 +26,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_sendMessage.md b/old_docs/API_docs_v46/methods/messages_sendMessage.md index d393f10f..b1f581ad 100644 --- a/old_docs/API_docs_v46/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v46/methods/messages_sendMessage.md @@ -29,7 +29,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v46/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md index 4e99c0d1..e347494b 100644 --- a/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v46/methods/messages_setInlineBotResults.md @@ -27,7 +27,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_setTyping.md b/old_docs/API_docs_v46/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v46/methods/messages_setTyping.md +++ b/old_docs/API_docs_v46/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_startBot.md b/old_docs/API_docs_v46/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v46/methods/messages_startBot.md +++ b/old_docs/API_docs_v46/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v46/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v46/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/photos_getUserPhotos.md b/old_docs/API_docs_v46/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v46/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v46/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v46/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v46/methods/users_getUsers.md b/old_docs/API_docs_v46/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v46/methods/users_getUsers.md +++ b/old_docs/API_docs_v46/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_changePhone.md b/old_docs/API_docs_v51/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v51/methods/account_changePhone.md +++ b/old_docs/API_docs_v51/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_checkUsername.md b/old_docs/API_docs_v51/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v51/methods/account_checkUsername.md +++ b/old_docs/API_docs_v51/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_getNotifySettings.md b/old_docs/API_docs_v51/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v51/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_getPrivacy.md b/old_docs/API_docs_v51/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v51/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v51/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_registerDevice.md b/old_docs/API_docs_v51/methods/account_registerDevice.md index 223ba494..ab7ec933 100644 --- a/old_docs/API_docs_v51/methods/account_registerDevice.md +++ b/old_docs/API_docs_v51/methods/account_registerDevice.md @@ -30,6 +30,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_reportPeer.md b/old_docs/API_docs_v51/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v51/methods/account_reportPeer.md +++ b/old_docs/API_docs_v51/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_resetAuthorization.md b/old_docs/API_docs_v51/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v51/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v51/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md index d606b195..4be218f2 100644 --- a/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v51/methods/account_sendChangePhoneCode.md @@ -26,6 +26,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_setAccountTTL.md b/old_docs/API_docs_v51/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v51/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v51/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_setPrivacy.md b/old_docs/API_docs_v51/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v51/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v51/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_unregisterDevice.md b/old_docs/API_docs_v51/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v51/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v51/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_updateNotifySettings.md b/old_docs/API_docs_v51/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v51/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v51/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v51/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_updateProfile.md b/old_docs/API_docs_v51/methods/account_updateProfile.md index 0acbfaa7..a50eaea5 100644 --- a/old_docs/API_docs_v51/methods/account_updateProfile.md +++ b/old_docs/API_docs_v51/methods/account_updateProfile.md @@ -24,7 +24,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/account_updateUsername.md b/old_docs/API_docs_v51/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v51/methods/account_updateUsername.md +++ b/old_docs/API_docs_v51/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v51/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_cancelCode.md b/old_docs/API_docs_v51/methods/auth_cancelCode.md index dd8b528e..dc390329 100644 --- a/old_docs/API_docs_v51/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v51/methods/auth_cancelCode.md @@ -25,6 +25,7 @@ description: auth.cancelCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_checkPassword.md b/old_docs/API_docs_v51/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v51/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v51/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_checkPhone.md b/old_docs/API_docs_v51/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v51/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v51/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_exportAuthorization.md b/old_docs/API_docs_v51/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v51/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_importAuthorization.md b/old_docs/API_docs_v51/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v51/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v51/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_recoverPassword.md b/old_docs/API_docs_v51/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v51/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v51/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v51/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_resendCode.md b/old_docs/API_docs_v51/methods/auth_resendCode.md index 1ff8dfff..14d08ddd 100644 --- a/old_docs/API_docs_v51/methods/auth_resendCode.md +++ b/old_docs/API_docs_v51/methods/auth_resendCode.md @@ -25,6 +25,7 @@ description: auth.resendCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v51/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v51/methods/auth_sendInvites.md b/old_docs/API_docs_v51/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v51/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v51/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_checkUsername.md b/old_docs/API_docs_v51/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v51/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v51/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_createChannel.md b/old_docs/API_docs_v51/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v51/methods/channels_createChannel.md +++ b/old_docs/API_docs_v51/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_deleteChannel.md b/old_docs/API_docs_v51/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v51/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_deleteMessages.md b/old_docs/API_docs_v51/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v51/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v51/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_editAbout.md b/old_docs/API_docs_v51/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v51/methods/channels_editAbout.md +++ b/old_docs/API_docs_v51/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_editAdmin.md b/old_docs/API_docs_v51/methods/channels_editAdmin.md index 871c3b93..9382c319 100644 --- a/old_docs/API_docs_v51/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v51/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_editPhoto.md b/old_docs/API_docs_v51/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v51/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v51/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_editTitle.md b/old_docs/API_docs_v51/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v51/methods/channels_editTitle.md +++ b/old_docs/API_docs_v51/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_exportInvite.md b/old_docs/API_docs_v51/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v51/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v51/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_exportMessageLink.md b/old_docs/API_docs_v51/methods/channels_exportMessageLink.md index 18091a3c..9831c9c0 100644 --- a/old_docs/API_docs_v51/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v51/methods/channels_exportMessageLink.md @@ -25,6 +25,7 @@ description: channels.exportMessageLink parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_getChannels.md b/old_docs/API_docs_v51/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v51/methods/channels_getChannels.md +++ b/old_docs/API_docs_v51/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_getMessages.md b/old_docs/API_docs_v51/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v51/methods/channels_getMessages.md +++ b/old_docs/API_docs_v51/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_getParticipant.md b/old_docs/API_docs_v51/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v51/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v51/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v51/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v51/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_joinChannel.md b/old_docs/API_docs_v51/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v51/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v51/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_leaveChannel.md b/old_docs/API_docs_v51/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v51/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v51/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_readHistory.md b/old_docs/API_docs_v51/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v51/methods/channels_readHistory.md +++ b/old_docs/API_docs_v51/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_reportSpam.md b/old_docs/API_docs_v51/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v51/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v51/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_toggleInvites.md b/old_docs/API_docs_v51/methods/channels_toggleInvites.md index b6f8b2a8..5419df50 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v51/methods/channels_toggleInvites.md @@ -25,6 +25,7 @@ description: channels.toggleInvites parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_toggleSignatures.md b/old_docs/API_docs_v51/methods/channels_toggleSignatures.md index e77879b0..a214b849 100644 --- a/old_docs/API_docs_v51/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v51/methods/channels_toggleSignatures.md @@ -25,6 +25,7 @@ description: channels.toggleSignatures parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md index 4cff44d2..7376df10 100644 --- a/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v51/methods/channels_updatePinnedMessage.md @@ -24,7 +24,10 @@ description: channels.updatePinnedMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_NOT_MODIFIED|The pinned message wasn't modified| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| + ### Example: diff --git a/old_docs/API_docs_v51/methods/channels_updateUsername.md b/old_docs/API_docs_v51/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v51/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v51/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_block.md b/old_docs/API_docs_v51/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v51/methods/contacts_block.md +++ b/old_docs/API_docs_v51/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_deleteContact.md b/old_docs/API_docs_v51/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v51/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v51/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_deleteContacts.md b/old_docs/API_docs_v51/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v51/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v51/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_importCard.md b/old_docs/API_docs_v51/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v51/methods/contacts_importCard.md +++ b/old_docs/API_docs_v51/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_search.md b/old_docs/API_docs_v51/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v51/methods/contacts_search.md +++ b/old_docs/API_docs_v51/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v51/methods/contacts_unblock.md b/old_docs/API_docs_v51/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v51/methods/contacts_unblock.md +++ b/old_docs/API_docs_v51/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/initConnection.md b/old_docs/API_docs_v51/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v51/methods/initConnection.md +++ b/old_docs/API_docs_v51/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v51/methods/invokeWithLayer.md b/old_docs/API_docs_v51/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v51/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v51/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_addChatUser.md b/old_docs/API_docs_v51/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v51/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v51/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v51/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_createChat.md b/old_docs/API_docs_v51/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v51/methods/messages_createChat.md +++ b/old_docs/API_docs_v51/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v51/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_deleteHistory.md b/old_docs/API_docs_v51/methods/messages_deleteHistory.md index a7456be1..c8081e79 100644 --- a/old_docs/API_docs_v51/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v51/methods/messages_deleteHistory.md @@ -25,6 +25,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_editChatAdmin.md b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v51/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v51/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_editChatTitle.md b/old_docs/API_docs_v51/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v51/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v51/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md index a3fdbc64..621c81a3 100644 --- a/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editInlineBotMessage.md @@ -27,7 +27,9 @@ description: messages.editInlineBotMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_NOT_MODIFIED|The message text has not changed| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_editMessage.md b/old_docs/API_docs_v51/methods/messages_editMessage.md index adc88b5a..1c3a8525 100644 --- a/old_docs/API_docs_v51/methods/messages_editMessage.md +++ b/old_docs/API_docs_v51/methods/messages_editMessage.md @@ -28,7 +28,10 @@ description: messages.editMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v51/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessage.md b/old_docs/API_docs_v51/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_forwardMessages.md b/old_docs/API_docs_v51/methods/messages_forwardMessages.md index 1b392ac1..3188a9e8 100644 --- a/old_docs/API_docs_v51/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v51/methods/messages_forwardMessages.md @@ -27,7 +27,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md index 5674028a..1eebf86d 100644 --- a/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v51/methods/messages_getBotCallbackAnswer.md @@ -24,7 +24,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid||Timeout|A timeout occurred while fetching data from the bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getChats.md b/old_docs/API_docs_v51/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v51/methods/messages_getChats.md +++ b/old_docs/API_docs_v51/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getDhConfig.md b/old_docs/API_docs_v51/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v51/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v51/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getDialogs.md b/old_docs/API_docs_v51/methods/messages_getDialogs.md index c46f6442..7ad3840b 100644 --- a/old_docs/API_docs_v51/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v51/methods/messages_getDialogs.md @@ -25,8 +25,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v51/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getHistory.md b/old_docs/API_docs_v51/methods/messages_getHistory.md index f8232d25..00972412 100644 --- a/old_docs/API_docs_v51/methods/messages_getHistory.md +++ b/old_docs/API_docs_v51/methods/messages_getHistory.md @@ -28,7 +28,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md index 259408a8..ad41660e 100644 --- a/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v51/methods/messages_getInlineBotResults.md @@ -26,7 +26,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getMessageEditData.md b/old_docs/API_docs_v51/methods/messages_getMessageEditData.md index 62e130c8..4e20a108 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v51/methods/messages_getMessageEditData.md @@ -23,7 +23,9 @@ description: messages.getMessageEditData parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_AUTHOR_REQUIRED|Message author required| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v51/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v51/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getPeerSettings.md b/old_docs/API_docs_v51/methods/messages_getPeerSettings.md index b62bfd2c..6147fae7 100644 --- a/old_docs/API_docs_v51/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v51/methods/messages_getPeerSettings.md @@ -24,6 +24,7 @@ description: messages.getPeerSettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_getStickerSet.md b/old_docs/API_docs_v51/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v51/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_hideReportSpam.md b/old_docs/API_docs_v51/methods/messages_hideReportSpam.md index 4bfe8ab1..2dfe4dd7 100644 --- a/old_docs/API_docs_v51/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v51/methods/messages_hideReportSpam.md @@ -24,6 +24,7 @@ description: messages.hideReportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_importChatInvite.md b/old_docs/API_docs_v51/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v51/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v51/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_installStickerSet.md b/old_docs/API_docs_v51/methods/messages_installStickerSet.md index 100277f5..1969d008 100644 --- a/old_docs/API_docs_v51/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_migrateChat.md b/old_docs/API_docs_v51/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v51/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v51/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v51/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_readHistory.md b/old_docs/API_docs_v51/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v51/methods/messages_readHistory.md +++ b/old_docs/API_docs_v51/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_receivedQueue.md b/old_docs/API_docs_v51/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v51/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v51/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_reportSpam.md b/old_docs/API_docs_v51/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v51/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v51/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_saveGif.md b/old_docs/API_docs_v51/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/old_docs/API_docs_v51/methods/messages_saveGif.md +++ b/old_docs/API_docs_v51/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_search.md b/old_docs/API_docs_v51/methods/messages_search.md index ab9c6870..73ba4090 100644 --- a/old_docs/API_docs_v51/methods/messages_search.md +++ b/old_docs/API_docs_v51/methods/messages_search.md @@ -30,7 +30,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_searchGifs.md b/old_docs/API_docs_v51/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v51/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v51/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_searchGlobal.md b/old_docs/API_docs_v51/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v51/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v51/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v51/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md index 75a43e2e..d3bc4c53 100644 --- a/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v51/methods/messages_sendInlineBotResult.md @@ -28,7 +28,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendMedia.md b/old_docs/API_docs_v51/methods/messages_sendMedia.md index 310deb18..bac92ac3 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v51/methods/messages_sendMedia.md @@ -28,7 +28,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_sendMessage.md b/old_docs/API_docs_v51/methods/messages_sendMessage.md index 8d4b0a4b..118a62bc 100644 --- a/old_docs/API_docs_v51/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v51/methods/messages_sendMessage.md @@ -31,7 +31,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md index bf4fda3d..ea7cdd79 100644 --- a/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v51/methods/messages_setBotCallbackAnswer.md @@ -26,6 +26,7 @@ description: messages.setBotCallbackAnswer parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v51/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md index 423d8b69..8b5625f3 100644 --- a/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v51/methods/messages_setInlineBotResults.md @@ -28,7 +28,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_setTyping.md b/old_docs/API_docs_v51/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v51/methods/messages_setTyping.md +++ b/old_docs/API_docs_v51/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_startBot.md b/old_docs/API_docs_v51/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v51/methods/messages_startBot.md +++ b/old_docs/API_docs_v51/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v51/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v51/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/photos_getUserPhotos.md b/old_docs/API_docs_v51/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v51/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v51/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v51/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v51/methods/users_getUsers.md b/old_docs/API_docs_v51/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v51/methods/users_getUsers.md +++ b/old_docs/API_docs_v51/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_changePhone.md b/old_docs/API_docs_v53/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v53/methods/account_changePhone.md +++ b/old_docs/API_docs_v53/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_checkUsername.md b/old_docs/API_docs_v53/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v53/methods/account_checkUsername.md +++ b/old_docs/API_docs_v53/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_getNotifySettings.md b/old_docs/API_docs_v53/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v53/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_getPrivacy.md b/old_docs/API_docs_v53/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v53/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v53/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_registerDevice.md b/old_docs/API_docs_v53/methods/account_registerDevice.md index e5686879..3cc7f98d 100644 --- a/old_docs/API_docs_v53/methods/account_registerDevice.md +++ b/old_docs/API_docs_v53/methods/account_registerDevice.md @@ -25,6 +25,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_reportPeer.md b/old_docs/API_docs_v53/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v53/methods/account_reportPeer.md +++ b/old_docs/API_docs_v53/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_resetAuthorization.md b/old_docs/API_docs_v53/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v53/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v53/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md index d606b195..4be218f2 100644 --- a/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v53/methods/account_sendChangePhoneCode.md @@ -26,6 +26,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_setAccountTTL.md b/old_docs/API_docs_v53/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v53/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v53/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_setPrivacy.md b/old_docs/API_docs_v53/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v53/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v53/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_unregisterDevice.md b/old_docs/API_docs_v53/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v53/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v53/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_updateNotifySettings.md b/old_docs/API_docs_v53/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v53/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v53/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v53/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_updateProfile.md b/old_docs/API_docs_v53/methods/account_updateProfile.md index 0acbfaa7..a50eaea5 100644 --- a/old_docs/API_docs_v53/methods/account_updateProfile.md +++ b/old_docs/API_docs_v53/methods/account_updateProfile.md @@ -24,7 +24,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/account_updateUsername.md b/old_docs/API_docs_v53/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v53/methods/account_updateUsername.md +++ b/old_docs/API_docs_v53/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v53/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_cancelCode.md b/old_docs/API_docs_v53/methods/auth_cancelCode.md index dd8b528e..dc390329 100644 --- a/old_docs/API_docs_v53/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v53/methods/auth_cancelCode.md @@ -25,6 +25,7 @@ description: auth.cancelCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_checkPassword.md b/old_docs/API_docs_v53/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v53/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v53/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_checkPhone.md b/old_docs/API_docs_v53/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v53/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v53/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_exportAuthorization.md b/old_docs/API_docs_v53/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v53/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_importAuthorization.md b/old_docs/API_docs_v53/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v53/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v53/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_recoverPassword.md b/old_docs/API_docs_v53/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v53/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v53/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v53/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_resendCode.md b/old_docs/API_docs_v53/methods/auth_resendCode.md index 1ff8dfff..14d08ddd 100644 --- a/old_docs/API_docs_v53/methods/auth_resendCode.md +++ b/old_docs/API_docs_v53/methods/auth_resendCode.md @@ -25,6 +25,7 @@ description: auth.resendCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v53/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v53/methods/auth_sendInvites.md b/old_docs/API_docs_v53/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v53/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v53/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_checkUsername.md b/old_docs/API_docs_v53/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v53/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v53/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_createChannel.md b/old_docs/API_docs_v53/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v53/methods/channels_createChannel.md +++ b/old_docs/API_docs_v53/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_deleteChannel.md b/old_docs/API_docs_v53/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v53/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_deleteMessages.md b/old_docs/API_docs_v53/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v53/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v53/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_editAbout.md b/old_docs/API_docs_v53/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v53/methods/channels_editAbout.md +++ b/old_docs/API_docs_v53/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_editAdmin.md b/old_docs/API_docs_v53/methods/channels_editAdmin.md index 871c3b93..9382c319 100644 --- a/old_docs/API_docs_v53/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v53/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_editPhoto.md b/old_docs/API_docs_v53/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v53/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v53/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_editTitle.md b/old_docs/API_docs_v53/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v53/methods/channels_editTitle.md +++ b/old_docs/API_docs_v53/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_exportInvite.md b/old_docs/API_docs_v53/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v53/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v53/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_exportMessageLink.md b/old_docs/API_docs_v53/methods/channels_exportMessageLink.md index 18091a3c..9831c9c0 100644 --- a/old_docs/API_docs_v53/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v53/methods/channels_exportMessageLink.md @@ -25,6 +25,7 @@ description: channels.exportMessageLink parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_getChannels.md b/old_docs/API_docs_v53/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v53/methods/channels_getChannels.md +++ b/old_docs/API_docs_v53/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_getMessages.md b/old_docs/API_docs_v53/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v53/methods/channels_getMessages.md +++ b/old_docs/API_docs_v53/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_getParticipant.md b/old_docs/API_docs_v53/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v53/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v53/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v53/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v53/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_joinChannel.md b/old_docs/API_docs_v53/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v53/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v53/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_leaveChannel.md b/old_docs/API_docs_v53/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v53/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v53/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_readHistory.md b/old_docs/API_docs_v53/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v53/methods/channels_readHistory.md +++ b/old_docs/API_docs_v53/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_reportSpam.md b/old_docs/API_docs_v53/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v53/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v53/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_toggleInvites.md b/old_docs/API_docs_v53/methods/channels_toggleInvites.md index b6f8b2a8..5419df50 100644 --- a/old_docs/API_docs_v53/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v53/methods/channels_toggleInvites.md @@ -25,6 +25,7 @@ description: channels.toggleInvites parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_toggleSignatures.md b/old_docs/API_docs_v53/methods/channels_toggleSignatures.md index e77879b0..a214b849 100644 --- a/old_docs/API_docs_v53/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v53/methods/channels_toggleSignatures.md @@ -25,6 +25,7 @@ description: channels.toggleSignatures parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md index 4cff44d2..7376df10 100644 --- a/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v53/methods/channels_updatePinnedMessage.md @@ -24,7 +24,10 @@ description: channels.updatePinnedMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_NOT_MODIFIED|The pinned message wasn't modified| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| + ### Example: diff --git a/old_docs/API_docs_v53/methods/channels_updateUsername.md b/old_docs/API_docs_v53/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v53/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v53/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_block.md b/old_docs/API_docs_v53/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v53/methods/contacts_block.md +++ b/old_docs/API_docs_v53/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_deleteContact.md b/old_docs/API_docs_v53/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v53/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v53/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_deleteContacts.md b/old_docs/API_docs_v53/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v53/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v53/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_getTopPeers.md b/old_docs/API_docs_v53/methods/contacts_getTopPeers.md index d7ccffd0..1caa1d77 100644 --- a/old_docs/API_docs_v53/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v53/methods/contacts_getTopPeers.md @@ -31,6 +31,7 @@ description: contacts.getTopPeers parameters, return type and example |----------|---------------| |TYPES_EMPTY|The types field is empty| + ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_importCard.md b/old_docs/API_docs_v53/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v53/methods/contacts_importCard.md +++ b/old_docs/API_docs_v53/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md index 70a9e958..738494b2 100644 --- a/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v53/methods/contacts_resetTopPeerRating.md @@ -25,6 +25,7 @@ description: contacts.resetTopPeerRating parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_search.md b/old_docs/API_docs_v53/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v53/methods/contacts_search.md +++ b/old_docs/API_docs_v53/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v53/methods/contacts_unblock.md b/old_docs/API_docs_v53/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v53/methods/contacts_unblock.md +++ b/old_docs/API_docs_v53/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/initConnection.md b/old_docs/API_docs_v53/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v53/methods/initConnection.md +++ b/old_docs/API_docs_v53/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v53/methods/invokeWithLayer.md b/old_docs/API_docs_v53/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v53/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v53/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_addChatUser.md b/old_docs/API_docs_v53/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v53/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v53/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v53/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_createChat.md b/old_docs/API_docs_v53/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v53/methods/messages_createChat.md +++ b/old_docs/API_docs_v53/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v53/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_deleteHistory.md b/old_docs/API_docs_v53/methods/messages_deleteHistory.md index 009e39c0..ce6ba6e7 100644 --- a/old_docs/API_docs_v53/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v53/methods/messages_deleteHistory.md @@ -26,6 +26,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_editChatAdmin.md b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v53/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v53/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_editChatTitle.md b/old_docs/API_docs_v53/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v53/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v53/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md index a3fdbc64..621c81a3 100644 --- a/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editInlineBotMessage.md @@ -27,7 +27,9 @@ description: messages.editInlineBotMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_NOT_MODIFIED|The message text has not changed| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_editMessage.md b/old_docs/API_docs_v53/methods/messages_editMessage.md index adc88b5a..1c3a8525 100644 --- a/old_docs/API_docs_v53/methods/messages_editMessage.md +++ b/old_docs/API_docs_v53/methods/messages_editMessage.md @@ -28,7 +28,10 @@ description: messages.editMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v53/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessage.md b/old_docs/API_docs_v53/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_forwardMessages.md b/old_docs/API_docs_v53/methods/messages_forwardMessages.md index e42f7b3e..70de6057 100644 --- a/old_docs/API_docs_v53/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v53/methods/messages_forwardMessages.md @@ -26,7 +26,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md index 5674028a..1eebf86d 100644 --- a/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v53/methods/messages_getBotCallbackAnswer.md @@ -24,7 +24,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid||Timeout|A timeout occurred while fetching data from the bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getChats.md b/old_docs/API_docs_v53/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v53/methods/messages_getChats.md +++ b/old_docs/API_docs_v53/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getDhConfig.md b/old_docs/API_docs_v53/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v53/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v53/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getDialogs.md b/old_docs/API_docs_v53/methods/messages_getDialogs.md index c46f6442..7ad3840b 100644 --- a/old_docs/API_docs_v53/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v53/methods/messages_getDialogs.md @@ -25,8 +25,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v53/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getHistory.md b/old_docs/API_docs_v53/methods/messages_getHistory.md index f8232d25..00972412 100644 --- a/old_docs/API_docs_v53/methods/messages_getHistory.md +++ b/old_docs/API_docs_v53/methods/messages_getHistory.md @@ -28,7 +28,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md index 259408a8..ad41660e 100644 --- a/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v53/methods/messages_getInlineBotResults.md @@ -26,7 +26,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getMessageEditData.md b/old_docs/API_docs_v53/methods/messages_getMessageEditData.md index 62e130c8..4e20a108 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v53/methods/messages_getMessageEditData.md @@ -23,7 +23,9 @@ description: messages.getMessageEditData parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_AUTHOR_REQUIRED|Message author required| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v53/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v53/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md index 6eaf48ff..3da60038 100644 --- a/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v53/methods/messages_getPeerDialogs.md @@ -22,8 +22,10 @@ description: messages.getPeerDialogs parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getPeerSettings.md b/old_docs/API_docs_v53/methods/messages_getPeerSettings.md index b62bfd2c..6147fae7 100644 --- a/old_docs/API_docs_v53/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v53/methods/messages_getPeerSettings.md @@ -24,6 +24,7 @@ description: messages.getPeerSettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_getStickerSet.md b/old_docs/API_docs_v53/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v53/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_hideReportSpam.md b/old_docs/API_docs_v53/methods/messages_hideReportSpam.md index 4bfe8ab1..2dfe4dd7 100644 --- a/old_docs/API_docs_v53/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v53/methods/messages_hideReportSpam.md @@ -24,6 +24,7 @@ description: messages.hideReportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_importChatInvite.md b/old_docs/API_docs_v53/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v53/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v53/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_installStickerSet.md b/old_docs/API_docs_v53/methods/messages_installStickerSet.md index 100277f5..1969d008 100644 --- a/old_docs/API_docs_v53/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_migrateChat.md b/old_docs/API_docs_v53/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v53/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v53/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v53/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_readHistory.md b/old_docs/API_docs_v53/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v53/methods/messages_readHistory.md +++ b/old_docs/API_docs_v53/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_receivedQueue.md b/old_docs/API_docs_v53/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v53/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v53/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_reportSpam.md b/old_docs/API_docs_v53/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v53/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v53/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_saveDraft.md b/old_docs/API_docs_v53/methods/messages_saveDraft.md index 5c9d4b8f..42308b46 100644 --- a/old_docs/API_docs_v53/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v53/methods/messages_saveDraft.md @@ -29,6 +29,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_saveGif.md b/old_docs/API_docs_v53/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/old_docs/API_docs_v53/methods/messages_saveGif.md +++ b/old_docs/API_docs_v53/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_search.md b/old_docs/API_docs_v53/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v53/methods/messages_search.md +++ b/old_docs/API_docs_v53/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_searchGifs.md b/old_docs/API_docs_v53/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v53/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v53/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_searchGlobal.md b/old_docs/API_docs_v53/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v53/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v53/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v53/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md index 74925e93..bdb08f80 100644 --- a/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v53/methods/messages_sendInlineBotResult.md @@ -28,7 +28,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendMedia.md b/old_docs/API_docs_v53/methods/messages_sendMedia.md index 0f9a9fd2..1888a271 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v53/methods/messages_sendMedia.md @@ -28,7 +28,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_sendMessage.md b/old_docs/API_docs_v53/methods/messages_sendMessage.md index 83ab594e..7e2a71fa 100644 --- a/old_docs/API_docs_v53/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v53/methods/messages_sendMessage.md @@ -31,7 +31,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md index bf4fda3d..ea7cdd79 100644 --- a/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v53/methods/messages_setBotCallbackAnswer.md @@ -26,6 +26,7 @@ description: messages.setBotCallbackAnswer parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v53/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md index 423d8b69..8b5625f3 100644 --- a/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v53/methods/messages_setInlineBotResults.md @@ -28,7 +28,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_setTyping.md b/old_docs/API_docs_v53/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v53/methods/messages_setTyping.md +++ b/old_docs/API_docs_v53/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_startBot.md b/old_docs/API_docs_v53/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v53/methods/messages_startBot.md +++ b/old_docs/API_docs_v53/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v53/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v53/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/photos_getUserPhotos.md b/old_docs/API_docs_v53/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v53/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v53/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v53/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v53/methods/users_getUsers.md b/old_docs/API_docs_v53/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v53/methods/users_getUsers.md +++ b/old_docs/API_docs_v53/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_changePhone.md b/old_docs/API_docs_v55/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v55/methods/account_changePhone.md +++ b/old_docs/API_docs_v55/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_checkUsername.md b/old_docs/API_docs_v55/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v55/methods/account_checkUsername.md +++ b/old_docs/API_docs_v55/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_confirmPhone.md b/old_docs/API_docs_v55/methods/account_confirmPhone.md index 9cb5151b..84bd87e7 100644 --- a/old_docs/API_docs_v55/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v55/methods/account_confirmPhone.md @@ -25,6 +25,7 @@ description: account.confirmPhone parameters, return type and example |----------|---------------| |PHONE_CODE_EMPTY|phone_code is missing| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_getNotifySettings.md b/old_docs/API_docs_v55/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v55/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_getPrivacy.md b/old_docs/API_docs_v55/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v55/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v55/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_registerDevice.md b/old_docs/API_docs_v55/methods/account_registerDevice.md index e5686879..3cc7f98d 100644 --- a/old_docs/API_docs_v55/methods/account_registerDevice.md +++ b/old_docs/API_docs_v55/methods/account_registerDevice.md @@ -25,6 +25,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_reportPeer.md b/old_docs/API_docs_v55/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v55/methods/account_reportPeer.md +++ b/old_docs/API_docs_v55/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_resetAuthorization.md b/old_docs/API_docs_v55/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v55/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v55/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md index d606b195..4be218f2 100644 --- a/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v55/methods/account_sendChangePhoneCode.md @@ -26,6 +26,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md index 3ca66b20..009fcb09 100644 --- a/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v55/methods/account_sendConfirmPhoneCode.md @@ -26,6 +26,7 @@ description: account.sendConfirmPhoneCode parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_setAccountTTL.md b/old_docs/API_docs_v55/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v55/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v55/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_setPrivacy.md b/old_docs/API_docs_v55/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v55/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v55/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_unregisterDevice.md b/old_docs/API_docs_v55/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v55/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v55/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_updateNotifySettings.md b/old_docs/API_docs_v55/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v55/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v55/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v55/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_updateProfile.md b/old_docs/API_docs_v55/methods/account_updateProfile.md index 0acbfaa7..a50eaea5 100644 --- a/old_docs/API_docs_v55/methods/account_updateProfile.md +++ b/old_docs/API_docs_v55/methods/account_updateProfile.md @@ -24,7 +24,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/account_updateUsername.md b/old_docs/API_docs_v55/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v55/methods/account_updateUsername.md +++ b/old_docs/API_docs_v55/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v55/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_cancelCode.md b/old_docs/API_docs_v55/methods/auth_cancelCode.md index dd8b528e..dc390329 100644 --- a/old_docs/API_docs_v55/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v55/methods/auth_cancelCode.md @@ -25,6 +25,7 @@ description: auth.cancelCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_checkPassword.md b/old_docs/API_docs_v55/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v55/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v55/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_checkPhone.md b/old_docs/API_docs_v55/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v55/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v55/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_exportAuthorization.md b/old_docs/API_docs_v55/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v55/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_importAuthorization.md b/old_docs/API_docs_v55/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v55/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v55/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_recoverPassword.md b/old_docs/API_docs_v55/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v55/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v55/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v55/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_resendCode.md b/old_docs/API_docs_v55/methods/auth_resendCode.md index 1ff8dfff..14d08ddd 100644 --- a/old_docs/API_docs_v55/methods/auth_resendCode.md +++ b/old_docs/API_docs_v55/methods/auth_resendCode.md @@ -25,6 +25,7 @@ description: auth.resendCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v55/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v55/methods/auth_sendInvites.md b/old_docs/API_docs_v55/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v55/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v55/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_checkUsername.md b/old_docs/API_docs_v55/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v55/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v55/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_createChannel.md b/old_docs/API_docs_v55/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v55/methods/channels_createChannel.md +++ b/old_docs/API_docs_v55/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_deleteChannel.md b/old_docs/API_docs_v55/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v55/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_deleteMessages.md b/old_docs/API_docs_v55/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v55/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v55/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_editAbout.md b/old_docs/API_docs_v55/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v55/methods/channels_editAbout.md +++ b/old_docs/API_docs_v55/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_editAdmin.md b/old_docs/API_docs_v55/methods/channels_editAdmin.md index 871c3b93..9382c319 100644 --- a/old_docs/API_docs_v55/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v55/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_editPhoto.md b/old_docs/API_docs_v55/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v55/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v55/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_editTitle.md b/old_docs/API_docs_v55/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v55/methods/channels_editTitle.md +++ b/old_docs/API_docs_v55/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_exportInvite.md b/old_docs/API_docs_v55/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v55/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v55/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_exportMessageLink.md b/old_docs/API_docs_v55/methods/channels_exportMessageLink.md index 18091a3c..9831c9c0 100644 --- a/old_docs/API_docs_v55/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v55/methods/channels_exportMessageLink.md @@ -25,6 +25,7 @@ description: channels.exportMessageLink parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_getChannels.md b/old_docs/API_docs_v55/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v55/methods/channels_getChannels.md +++ b/old_docs/API_docs_v55/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_getMessages.md b/old_docs/API_docs_v55/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v55/methods/channels_getMessages.md +++ b/old_docs/API_docs_v55/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_getParticipant.md b/old_docs/API_docs_v55/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v55/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v55/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v55/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v55/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_joinChannel.md b/old_docs/API_docs_v55/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v55/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v55/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_leaveChannel.md b/old_docs/API_docs_v55/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v55/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v55/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_readHistory.md b/old_docs/API_docs_v55/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v55/methods/channels_readHistory.md +++ b/old_docs/API_docs_v55/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_reportSpam.md b/old_docs/API_docs_v55/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v55/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v55/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_toggleInvites.md b/old_docs/API_docs_v55/methods/channels_toggleInvites.md index b6f8b2a8..5419df50 100644 --- a/old_docs/API_docs_v55/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v55/methods/channels_toggleInvites.md @@ -25,6 +25,7 @@ description: channels.toggleInvites parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_toggleSignatures.md b/old_docs/API_docs_v55/methods/channels_toggleSignatures.md index e77879b0..a214b849 100644 --- a/old_docs/API_docs_v55/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v55/methods/channels_toggleSignatures.md @@ -25,6 +25,7 @@ description: channels.toggleSignatures parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md index 4cff44d2..7376df10 100644 --- a/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v55/methods/channels_updatePinnedMessage.md @@ -24,7 +24,10 @@ description: channels.updatePinnedMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_NOT_MODIFIED|The pinned message wasn't modified| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| + ### Example: diff --git a/old_docs/API_docs_v55/methods/channels_updateUsername.md b/old_docs/API_docs_v55/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v55/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v55/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_block.md b/old_docs/API_docs_v55/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v55/methods/contacts_block.md +++ b/old_docs/API_docs_v55/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_deleteContact.md b/old_docs/API_docs_v55/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v55/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v55/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_deleteContacts.md b/old_docs/API_docs_v55/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v55/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v55/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_getTopPeers.md b/old_docs/API_docs_v55/methods/contacts_getTopPeers.md index d7ccffd0..1caa1d77 100644 --- a/old_docs/API_docs_v55/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v55/methods/contacts_getTopPeers.md @@ -31,6 +31,7 @@ description: contacts.getTopPeers parameters, return type and example |----------|---------------| |TYPES_EMPTY|The types field is empty| + ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_importCard.md b/old_docs/API_docs_v55/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v55/methods/contacts_importCard.md +++ b/old_docs/API_docs_v55/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md index 70a9e958..738494b2 100644 --- a/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v55/methods/contacts_resetTopPeerRating.md @@ -25,6 +25,7 @@ description: contacts.resetTopPeerRating parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_search.md b/old_docs/API_docs_v55/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v55/methods/contacts_search.md +++ b/old_docs/API_docs_v55/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v55/methods/contacts_unblock.md b/old_docs/API_docs_v55/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v55/methods/contacts_unblock.md +++ b/old_docs/API_docs_v55/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/initConnection.md b/old_docs/API_docs_v55/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v55/methods/initConnection.md +++ b/old_docs/API_docs_v55/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v55/methods/invokeWithLayer.md b/old_docs/API_docs_v55/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v55/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v55/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_addChatUser.md b/old_docs/API_docs_v55/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v55/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v55/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v55/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_createChat.md b/old_docs/API_docs_v55/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v55/methods/messages_createChat.md +++ b/old_docs/API_docs_v55/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v55/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_deleteHistory.md b/old_docs/API_docs_v55/methods/messages_deleteHistory.md index 009e39c0..ce6ba6e7 100644 --- a/old_docs/API_docs_v55/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v55/methods/messages_deleteHistory.md @@ -26,6 +26,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_editChatAdmin.md b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v55/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v55/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_editChatTitle.md b/old_docs/API_docs_v55/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v55/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v55/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md index a3fdbc64..621c81a3 100644 --- a/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editInlineBotMessage.md @@ -27,7 +27,9 @@ description: messages.editInlineBotMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_NOT_MODIFIED|The message text has not changed| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_editMessage.md b/old_docs/API_docs_v55/methods/messages_editMessage.md index adc88b5a..1c3a8525 100644 --- a/old_docs/API_docs_v55/methods/messages_editMessage.md +++ b/old_docs/API_docs_v55/methods/messages_editMessage.md @@ -28,7 +28,10 @@ description: messages.editMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v55/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessage.md b/old_docs/API_docs_v55/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_forwardMessages.md b/old_docs/API_docs_v55/methods/messages_forwardMessages.md index e42f7b3e..70de6057 100644 --- a/old_docs/API_docs_v55/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v55/methods/messages_forwardMessages.md @@ -26,7 +26,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md index 5674028a..1eebf86d 100644 --- a/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v55/methods/messages_getBotCallbackAnswer.md @@ -24,7 +24,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid||Timeout|A timeout occurred while fetching data from the bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getChats.md b/old_docs/API_docs_v55/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v55/methods/messages_getChats.md +++ b/old_docs/API_docs_v55/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getDhConfig.md b/old_docs/API_docs_v55/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v55/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v55/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getDialogs.md b/old_docs/API_docs_v55/methods/messages_getDialogs.md index c46f6442..7ad3840b 100644 --- a/old_docs/API_docs_v55/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v55/methods/messages_getDialogs.md @@ -25,8 +25,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v55/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getHistory.md b/old_docs/API_docs_v55/methods/messages_getHistory.md index f8232d25..00972412 100644 --- a/old_docs/API_docs_v55/methods/messages_getHistory.md +++ b/old_docs/API_docs_v55/methods/messages_getHistory.md @@ -28,7 +28,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md index 259408a8..ad41660e 100644 --- a/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v55/methods/messages_getInlineBotResults.md @@ -26,7 +26,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getMessageEditData.md b/old_docs/API_docs_v55/methods/messages_getMessageEditData.md index 62e130c8..4e20a108 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v55/methods/messages_getMessageEditData.md @@ -23,7 +23,9 @@ description: messages.getMessageEditData parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_AUTHOR_REQUIRED|Message author required| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v55/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v55/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md index 6eaf48ff..3da60038 100644 --- a/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v55/methods/messages_getPeerDialogs.md @@ -22,8 +22,10 @@ description: messages.getPeerDialogs parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getPeerSettings.md b/old_docs/API_docs_v55/methods/messages_getPeerSettings.md index b62bfd2c..6147fae7 100644 --- a/old_docs/API_docs_v55/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v55/methods/messages_getPeerSettings.md @@ -24,6 +24,7 @@ description: messages.getPeerSettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_getStickerSet.md b/old_docs/API_docs_v55/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v55/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_hideReportSpam.md b/old_docs/API_docs_v55/methods/messages_hideReportSpam.md index 4bfe8ab1..2dfe4dd7 100644 --- a/old_docs/API_docs_v55/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v55/methods/messages_hideReportSpam.md @@ -24,6 +24,7 @@ description: messages.hideReportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_importChatInvite.md b/old_docs/API_docs_v55/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v55/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v55/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_installStickerSet.md b/old_docs/API_docs_v55/methods/messages_installStickerSet.md index c0cfa607..3dde52a7 100644 --- a/old_docs/API_docs_v55/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_migrateChat.md b/old_docs/API_docs_v55/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v55/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v55/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v55/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_readHistory.md b/old_docs/API_docs_v55/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v55/methods/messages_readHistory.md +++ b/old_docs/API_docs_v55/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_receivedQueue.md b/old_docs/API_docs_v55/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v55/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v55/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_reportSpam.md b/old_docs/API_docs_v55/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v55/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v55/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_saveDraft.md b/old_docs/API_docs_v55/methods/messages_saveDraft.md index 5c9d4b8f..42308b46 100644 --- a/old_docs/API_docs_v55/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v55/methods/messages_saveDraft.md @@ -29,6 +29,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_saveGif.md b/old_docs/API_docs_v55/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/old_docs/API_docs_v55/methods/messages_saveGif.md +++ b/old_docs/API_docs_v55/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md index e873156f..5e74b88f 100644 --- a/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v55/methods/messages_saveRecentSticker.md @@ -25,6 +25,7 @@ description: messages.saveRecentSticker parameters, return type and example |----------|---------------| |STICKER_ID_INVALID|The provided sticker ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_search.md b/old_docs/API_docs_v55/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v55/methods/messages_search.md +++ b/old_docs/API_docs_v55/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_searchGifs.md b/old_docs/API_docs_v55/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v55/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v55/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_searchGlobal.md b/old_docs/API_docs_v55/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v55/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v55/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v55/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md index 74925e93..bdb08f80 100644 --- a/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v55/methods/messages_sendInlineBotResult.md @@ -28,7 +28,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendMedia.md b/old_docs/API_docs_v55/methods/messages_sendMedia.md index 0f9a9fd2..1888a271 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v55/methods/messages_sendMedia.md @@ -28,7 +28,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_sendMessage.md b/old_docs/API_docs_v55/methods/messages_sendMessage.md index 83ab594e..7e2a71fa 100644 --- a/old_docs/API_docs_v55/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v55/methods/messages_sendMessage.md @@ -31,7 +31,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md index 34b8f9f3..fb10afe1 100644 --- a/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v55/methods/messages_setBotCallbackAnswer.md @@ -27,6 +27,7 @@ description: messages.setBotCallbackAnswer parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v55/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md index 423d8b69..8b5625f3 100644 --- a/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v55/methods/messages_setInlineBotResults.md @@ -28,7 +28,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_setTyping.md b/old_docs/API_docs_v55/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v55/methods/messages_setTyping.md +++ b/old_docs/API_docs_v55/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_startBot.md b/old_docs/API_docs_v55/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v55/methods/messages_startBot.md +++ b/old_docs/API_docs_v55/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v55/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v55/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/photos_getUserPhotos.md b/old_docs/API_docs_v55/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v55/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v55/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md index c45f0b74..5585c6c0 100644 --- a/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v55/methods/photos_uploadProfilePhoto.md @@ -26,6 +26,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v55/methods/users_getUsers.md b/old_docs/API_docs_v55/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v55/methods/users_getUsers.md +++ b/old_docs/API_docs_v55/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_changePhone.md b/old_docs/API_docs_v57/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v57/methods/account_changePhone.md +++ b/old_docs/API_docs_v57/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_checkUsername.md b/old_docs/API_docs_v57/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v57/methods/account_checkUsername.md +++ b/old_docs/API_docs_v57/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_confirmPhone.md b/old_docs/API_docs_v57/methods/account_confirmPhone.md index 9cb5151b..84bd87e7 100644 --- a/old_docs/API_docs_v57/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v57/methods/account_confirmPhone.md @@ -25,6 +25,7 @@ description: account.confirmPhone parameters, return type and example |----------|---------------| |PHONE_CODE_EMPTY|phone_code is missing| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_getNotifySettings.md b/old_docs/API_docs_v57/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v57/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_getPrivacy.md b/old_docs/API_docs_v57/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v57/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v57/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_registerDevice.md b/old_docs/API_docs_v57/methods/account_registerDevice.md index e5686879..3cc7f98d 100644 --- a/old_docs/API_docs_v57/methods/account_registerDevice.md +++ b/old_docs/API_docs_v57/methods/account_registerDevice.md @@ -25,6 +25,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_reportPeer.md b/old_docs/API_docs_v57/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v57/methods/account_reportPeer.md +++ b/old_docs/API_docs_v57/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_resetAuthorization.md b/old_docs/API_docs_v57/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v57/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v57/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md index d606b195..4be218f2 100644 --- a/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v57/methods/account_sendChangePhoneCode.md @@ -26,6 +26,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md index 3ca66b20..009fcb09 100644 --- a/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v57/methods/account_sendConfirmPhoneCode.md @@ -26,6 +26,7 @@ description: account.sendConfirmPhoneCode parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_setAccountTTL.md b/old_docs/API_docs_v57/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v57/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v57/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_setPrivacy.md b/old_docs/API_docs_v57/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v57/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v57/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_unregisterDevice.md b/old_docs/API_docs_v57/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v57/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v57/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_updateNotifySettings.md b/old_docs/API_docs_v57/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v57/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v57/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v57/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_updateProfile.md b/old_docs/API_docs_v57/methods/account_updateProfile.md index 0acbfaa7..a50eaea5 100644 --- a/old_docs/API_docs_v57/methods/account_updateProfile.md +++ b/old_docs/API_docs_v57/methods/account_updateProfile.md @@ -24,7 +24,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/account_updateUsername.md b/old_docs/API_docs_v57/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v57/methods/account_updateUsername.md +++ b/old_docs/API_docs_v57/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v57/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_cancelCode.md b/old_docs/API_docs_v57/methods/auth_cancelCode.md index dd8b528e..dc390329 100644 --- a/old_docs/API_docs_v57/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v57/methods/auth_cancelCode.md @@ -25,6 +25,7 @@ description: auth.cancelCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_checkPassword.md b/old_docs/API_docs_v57/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v57/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v57/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_checkPhone.md b/old_docs/API_docs_v57/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v57/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v57/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_exportAuthorization.md b/old_docs/API_docs_v57/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v57/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_importAuthorization.md b/old_docs/API_docs_v57/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v57/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v57/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_recoverPassword.md b/old_docs/API_docs_v57/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v57/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v57/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v57/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_resendCode.md b/old_docs/API_docs_v57/methods/auth_resendCode.md index 1ff8dfff..14d08ddd 100644 --- a/old_docs/API_docs_v57/methods/auth_resendCode.md +++ b/old_docs/API_docs_v57/methods/auth_resendCode.md @@ -25,6 +25,7 @@ description: auth.resendCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v57/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v57/methods/auth_sendInvites.md b/old_docs/API_docs_v57/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v57/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v57/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_checkUsername.md b/old_docs/API_docs_v57/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v57/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v57/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_createChannel.md b/old_docs/API_docs_v57/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v57/methods/channels_createChannel.md +++ b/old_docs/API_docs_v57/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_deleteChannel.md b/old_docs/API_docs_v57/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v57/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_deleteMessages.md b/old_docs/API_docs_v57/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v57/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v57/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_editAbout.md b/old_docs/API_docs_v57/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v57/methods/channels_editAbout.md +++ b/old_docs/API_docs_v57/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_editAdmin.md b/old_docs/API_docs_v57/methods/channels_editAdmin.md index 871c3b93..9382c319 100644 --- a/old_docs/API_docs_v57/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v57/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_editPhoto.md b/old_docs/API_docs_v57/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v57/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v57/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_editTitle.md b/old_docs/API_docs_v57/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v57/methods/channels_editTitle.md +++ b/old_docs/API_docs_v57/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_exportInvite.md b/old_docs/API_docs_v57/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v57/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v57/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_exportMessageLink.md b/old_docs/API_docs_v57/methods/channels_exportMessageLink.md index 18091a3c..9831c9c0 100644 --- a/old_docs/API_docs_v57/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v57/methods/channels_exportMessageLink.md @@ -25,6 +25,7 @@ description: channels.exportMessageLink parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_getChannels.md b/old_docs/API_docs_v57/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v57/methods/channels_getChannels.md +++ b/old_docs/API_docs_v57/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_getMessages.md b/old_docs/API_docs_v57/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v57/methods/channels_getMessages.md +++ b/old_docs/API_docs_v57/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_getParticipant.md b/old_docs/API_docs_v57/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v57/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v57/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v57/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v57/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_joinChannel.md b/old_docs/API_docs_v57/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v57/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v57/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_leaveChannel.md b/old_docs/API_docs_v57/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v57/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v57/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_readHistory.md b/old_docs/API_docs_v57/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v57/methods/channels_readHistory.md +++ b/old_docs/API_docs_v57/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_reportSpam.md b/old_docs/API_docs_v57/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v57/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v57/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_toggleInvites.md b/old_docs/API_docs_v57/methods/channels_toggleInvites.md index b6f8b2a8..5419df50 100644 --- a/old_docs/API_docs_v57/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v57/methods/channels_toggleInvites.md @@ -25,6 +25,7 @@ description: channels.toggleInvites parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_toggleSignatures.md b/old_docs/API_docs_v57/methods/channels_toggleSignatures.md index e77879b0..a214b849 100644 --- a/old_docs/API_docs_v57/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v57/methods/channels_toggleSignatures.md @@ -25,6 +25,7 @@ description: channels.toggleSignatures parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md index 4cff44d2..7376df10 100644 --- a/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v57/methods/channels_updatePinnedMessage.md @@ -24,7 +24,10 @@ description: channels.updatePinnedMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_NOT_MODIFIED|The pinned message wasn't modified| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| + ### Example: diff --git a/old_docs/API_docs_v57/methods/channels_updateUsername.md b/old_docs/API_docs_v57/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v57/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v57/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_block.md b/old_docs/API_docs_v57/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v57/methods/contacts_block.md +++ b/old_docs/API_docs_v57/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_deleteContact.md b/old_docs/API_docs_v57/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v57/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v57/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_deleteContacts.md b/old_docs/API_docs_v57/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v57/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v57/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_getTopPeers.md b/old_docs/API_docs_v57/methods/contacts_getTopPeers.md index d7ccffd0..1caa1d77 100644 --- a/old_docs/API_docs_v57/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v57/methods/contacts_getTopPeers.md @@ -31,6 +31,7 @@ description: contacts.getTopPeers parameters, return type and example |----------|---------------| |TYPES_EMPTY|The types field is empty| + ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_importCard.md b/old_docs/API_docs_v57/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v57/methods/contacts_importCard.md +++ b/old_docs/API_docs_v57/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md index 70a9e958..738494b2 100644 --- a/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v57/methods/contacts_resetTopPeerRating.md @@ -25,6 +25,7 @@ description: contacts.resetTopPeerRating parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_search.md b/old_docs/API_docs_v57/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v57/methods/contacts_search.md +++ b/old_docs/API_docs_v57/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v57/methods/contacts_unblock.md b/old_docs/API_docs_v57/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v57/methods/contacts_unblock.md +++ b/old_docs/API_docs_v57/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/initConnection.md b/old_docs/API_docs_v57/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v57/methods/initConnection.md +++ b/old_docs/API_docs_v57/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v57/methods/invokeWithLayer.md b/old_docs/API_docs_v57/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v57/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v57/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_addChatUser.md b/old_docs/API_docs_v57/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v57/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v57/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v57/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_createChat.md b/old_docs/API_docs_v57/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v57/methods/messages_createChat.md +++ b/old_docs/API_docs_v57/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v57/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_deleteHistory.md b/old_docs/API_docs_v57/methods/messages_deleteHistory.md index 009e39c0..ce6ba6e7 100644 --- a/old_docs/API_docs_v57/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v57/methods/messages_deleteHistory.md @@ -26,6 +26,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_editChatAdmin.md b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v57/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v57/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_editChatTitle.md b/old_docs/API_docs_v57/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v57/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v57/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md index a3fdbc64..621c81a3 100644 --- a/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editInlineBotMessage.md @@ -27,7 +27,9 @@ description: messages.editInlineBotMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_NOT_MODIFIED|The message text has not changed| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_editMessage.md b/old_docs/API_docs_v57/methods/messages_editMessage.md index adc88b5a..1c3a8525 100644 --- a/old_docs/API_docs_v57/methods/messages_editMessage.md +++ b/old_docs/API_docs_v57/methods/messages_editMessage.md @@ -28,7 +28,10 @@ description: messages.editMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v57/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessage.md b/old_docs/API_docs_v57/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_forwardMessages.md b/old_docs/API_docs_v57/methods/messages_forwardMessages.md index bdb38317..d5ad680d 100644 --- a/old_docs/API_docs_v57/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v57/methods/messages_forwardMessages.md @@ -27,7 +27,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md index 53764b17..a8525987 100644 --- a/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v57/methods/messages_getBotCallbackAnswer.md @@ -25,7 +25,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid||Timeout|A timeout occurred while fetching data from the bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getChats.md b/old_docs/API_docs_v57/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v57/methods/messages_getChats.md +++ b/old_docs/API_docs_v57/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getDhConfig.md b/old_docs/API_docs_v57/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v57/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v57/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getDialogs.md b/old_docs/API_docs_v57/methods/messages_getDialogs.md index c46f6442..7ad3840b 100644 --- a/old_docs/API_docs_v57/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v57/methods/messages_getDialogs.md @@ -25,8 +25,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v57/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getGameHighScores.md b/old_docs/API_docs_v57/methods/messages_getGameHighScores.md index 602bf5e8..935bb95a 100644 --- a/old_docs/API_docs_v57/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v57/methods/messages_getGameHighScores.md @@ -24,7 +24,9 @@ description: messages.getGameHighScores parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getHistory.md b/old_docs/API_docs_v57/methods/messages_getHistory.md index f8232d25..00972412 100644 --- a/old_docs/API_docs_v57/methods/messages_getHistory.md +++ b/old_docs/API_docs_v57/methods/messages_getHistory.md @@ -28,7 +28,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md index 259408a8..ad41660e 100644 --- a/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v57/methods/messages_getInlineBotResults.md @@ -26,7 +26,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md index 9f66fb76..7cc04d0d 100644 --- a/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v57/methods/messages_getInlineGameHighScores.md @@ -23,7 +23,9 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getMessageEditData.md b/old_docs/API_docs_v57/methods/messages_getMessageEditData.md index 62e130c8..4e20a108 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v57/methods/messages_getMessageEditData.md @@ -23,7 +23,9 @@ description: messages.getMessageEditData parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_AUTHOR_REQUIRED|Message author required| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v57/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v57/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md index 6eaf48ff..3da60038 100644 --- a/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v57/methods/messages_getPeerDialogs.md @@ -22,8 +22,10 @@ description: messages.getPeerDialogs parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getPeerSettings.md b/old_docs/API_docs_v57/methods/messages_getPeerSettings.md index b62bfd2c..6147fae7 100644 --- a/old_docs/API_docs_v57/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v57/methods/messages_getPeerSettings.md @@ -24,6 +24,7 @@ description: messages.getPeerSettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_getStickerSet.md b/old_docs/API_docs_v57/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v57/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_hideReportSpam.md b/old_docs/API_docs_v57/methods/messages_hideReportSpam.md index 4bfe8ab1..2dfe4dd7 100644 --- a/old_docs/API_docs_v57/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v57/methods/messages_hideReportSpam.md @@ -24,6 +24,7 @@ description: messages.hideReportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_importChatInvite.md b/old_docs/API_docs_v57/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v57/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v57/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_installStickerSet.md b/old_docs/API_docs_v57/methods/messages_installStickerSet.md index c0cfa607..3dde52a7 100644 --- a/old_docs/API_docs_v57/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_migrateChat.md b/old_docs/API_docs_v57/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v57/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v57/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v57/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_readHistory.md b/old_docs/API_docs_v57/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v57/methods/messages_readHistory.md +++ b/old_docs/API_docs_v57/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_receivedQueue.md b/old_docs/API_docs_v57/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v57/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v57/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_reportSpam.md b/old_docs/API_docs_v57/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v57/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v57/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_saveDraft.md b/old_docs/API_docs_v57/methods/messages_saveDraft.md index 5c9d4b8f..42308b46 100644 --- a/old_docs/API_docs_v57/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v57/methods/messages_saveDraft.md @@ -29,6 +29,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_saveGif.md b/old_docs/API_docs_v57/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/old_docs/API_docs_v57/methods/messages_saveGif.md +++ b/old_docs/API_docs_v57/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md index 45caff91..8d45be5e 100644 --- a/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v57/methods/messages_saveRecentSticker.md @@ -26,6 +26,7 @@ description: messages.saveRecentSticker parameters, return type and example |----------|---------------| |STICKER_ID_INVALID|The provided sticker ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_search.md b/old_docs/API_docs_v57/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v57/methods/messages_search.md +++ b/old_docs/API_docs_v57/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_searchGifs.md b/old_docs/API_docs_v57/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v57/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v57/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_searchGlobal.md b/old_docs/API_docs_v57/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v57/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v57/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v57/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md index 74925e93..bdb08f80 100644 --- a/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v57/methods/messages_sendInlineBotResult.md @@ -28,7 +28,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendMedia.md b/old_docs/API_docs_v57/methods/messages_sendMedia.md index 0f9a9fd2..1888a271 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v57/methods/messages_sendMedia.md @@ -28,7 +28,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_sendMessage.md b/old_docs/API_docs_v57/methods/messages_sendMessage.md index 83ab594e..7e2a71fa 100644 --- a/old_docs/API_docs_v57/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v57/methods/messages_sendMessage.md @@ -31,7 +31,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md index 34b8f9f3..fb10afe1 100644 --- a/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v57/methods/messages_setBotCallbackAnswer.md @@ -27,6 +27,7 @@ description: messages.setBotCallbackAnswer parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v57/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setGameScore.md b/old_docs/API_docs_v57/methods/messages_setGameScore.md index da3922f9..795974e9 100644 --- a/old_docs/API_docs_v57/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v57/methods/messages_setGameScore.md @@ -26,7 +26,9 @@ description: messages.setGameScore parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md index 423d8b69..8b5625f3 100644 --- a/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v57/methods/messages_setInlineBotResults.md @@ -28,7 +28,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md index 7971e250..a91ad6a7 100644 --- a/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v57/methods/messages_setInlineGameScore.md @@ -25,7 +25,9 @@ description: messages.setInlineGameScore parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_setTyping.md b/old_docs/API_docs_v57/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v57/methods/messages_setTyping.md +++ b/old_docs/API_docs_v57/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_startBot.md b/old_docs/API_docs_v57/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v57/methods/messages_startBot.md +++ b/old_docs/API_docs_v57/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v57/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v57/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/photos_getUserPhotos.md b/old_docs/API_docs_v57/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v57/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v57/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md index b8c6ad66..0bb06b1d 100644 --- a/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v57/methods/photos_uploadProfilePhoto.md @@ -23,6 +23,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v57/methods/users_getUsers.md b/old_docs/API_docs_v57/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v57/methods/users_getUsers.md +++ b/old_docs/API_docs_v57/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_changePhone.md b/old_docs/API_docs_v62/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v62/methods/account_changePhone.md +++ b/old_docs/API_docs_v62/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_checkUsername.md b/old_docs/API_docs_v62/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v62/methods/account_checkUsername.md +++ b/old_docs/API_docs_v62/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_confirmPhone.md b/old_docs/API_docs_v62/methods/account_confirmPhone.md index 9cb5151b..84bd87e7 100644 --- a/old_docs/API_docs_v62/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v62/methods/account_confirmPhone.md @@ -25,6 +25,7 @@ description: account.confirmPhone parameters, return type and example |----------|---------------| |PHONE_CODE_EMPTY|phone_code is missing| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_getNotifySettings.md b/old_docs/API_docs_v62/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v62/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_getPrivacy.md b/old_docs/API_docs_v62/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v62/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v62/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_registerDevice.md b/old_docs/API_docs_v62/methods/account_registerDevice.md index e5686879..3cc7f98d 100644 --- a/old_docs/API_docs_v62/methods/account_registerDevice.md +++ b/old_docs/API_docs_v62/methods/account_registerDevice.md @@ -25,6 +25,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_reportPeer.md b/old_docs/API_docs_v62/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v62/methods/account_reportPeer.md +++ b/old_docs/API_docs_v62/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_resetAuthorization.md b/old_docs/API_docs_v62/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v62/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v62/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md index d606b195..4be218f2 100644 --- a/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v62/methods/account_sendChangePhoneCode.md @@ -26,6 +26,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md index 3ca66b20..009fcb09 100644 --- a/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v62/methods/account_sendConfirmPhoneCode.md @@ -26,6 +26,7 @@ description: account.sendConfirmPhoneCode parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_setAccountTTL.md b/old_docs/API_docs_v62/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v62/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v62/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_setPrivacy.md b/old_docs/API_docs_v62/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v62/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v62/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_unregisterDevice.md b/old_docs/API_docs_v62/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v62/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v62/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_updateNotifySettings.md b/old_docs/API_docs_v62/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v62/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v62/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v62/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_updateProfile.md b/old_docs/API_docs_v62/methods/account_updateProfile.md index 0acbfaa7..a50eaea5 100644 --- a/old_docs/API_docs_v62/methods/account_updateProfile.md +++ b/old_docs/API_docs_v62/methods/account_updateProfile.md @@ -24,7 +24,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/account_updateUsername.md b/old_docs/API_docs_v62/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v62/methods/account_updateUsername.md +++ b/old_docs/API_docs_v62/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v62/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_cancelCode.md b/old_docs/API_docs_v62/methods/auth_cancelCode.md index dd8b528e..dc390329 100644 --- a/old_docs/API_docs_v62/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v62/methods/auth_cancelCode.md @@ -25,6 +25,7 @@ description: auth.cancelCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_checkPassword.md b/old_docs/API_docs_v62/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v62/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v62/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_checkPhone.md b/old_docs/API_docs_v62/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v62/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v62/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_exportAuthorization.md b/old_docs/API_docs_v62/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v62/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_importAuthorization.md b/old_docs/API_docs_v62/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v62/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v62/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_recoverPassword.md b/old_docs/API_docs_v62/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v62/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v62/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v62/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_resendCode.md b/old_docs/API_docs_v62/methods/auth_resendCode.md index 1ff8dfff..14d08ddd 100644 --- a/old_docs/API_docs_v62/methods/auth_resendCode.md +++ b/old_docs/API_docs_v62/methods/auth_resendCode.md @@ -25,6 +25,7 @@ description: auth.resendCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v62/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v62/methods/auth_sendInvites.md b/old_docs/API_docs_v62/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v62/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v62/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_checkUsername.md b/old_docs/API_docs_v62/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v62/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v62/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_createChannel.md b/old_docs/API_docs_v62/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v62/methods/channels_createChannel.md +++ b/old_docs/API_docs_v62/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_deleteChannel.md b/old_docs/API_docs_v62/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v62/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_deleteMessages.md b/old_docs/API_docs_v62/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v62/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v62/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_editAbout.md b/old_docs/API_docs_v62/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v62/methods/channels_editAbout.md +++ b/old_docs/API_docs_v62/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_editAdmin.md b/old_docs/API_docs_v62/methods/channels_editAdmin.md index 871c3b93..9382c319 100644 --- a/old_docs/API_docs_v62/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v62/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_editPhoto.md b/old_docs/API_docs_v62/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v62/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v62/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_editTitle.md b/old_docs/API_docs_v62/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v62/methods/channels_editTitle.md +++ b/old_docs/API_docs_v62/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_exportInvite.md b/old_docs/API_docs_v62/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v62/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v62/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_exportMessageLink.md b/old_docs/API_docs_v62/methods/channels_exportMessageLink.md index 18091a3c..9831c9c0 100644 --- a/old_docs/API_docs_v62/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v62/methods/channels_exportMessageLink.md @@ -25,6 +25,7 @@ description: channels.exportMessageLink parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_getChannels.md b/old_docs/API_docs_v62/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v62/methods/channels_getChannels.md +++ b/old_docs/API_docs_v62/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_getMessages.md b/old_docs/API_docs_v62/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v62/methods/channels_getMessages.md +++ b/old_docs/API_docs_v62/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_getParticipant.md b/old_docs/API_docs_v62/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v62/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v62/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v62/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v62/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_joinChannel.md b/old_docs/API_docs_v62/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v62/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v62/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_leaveChannel.md b/old_docs/API_docs_v62/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v62/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v62/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_readHistory.md b/old_docs/API_docs_v62/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v62/methods/channels_readHistory.md +++ b/old_docs/API_docs_v62/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_reportSpam.md b/old_docs/API_docs_v62/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v62/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v62/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_toggleInvites.md b/old_docs/API_docs_v62/methods/channels_toggleInvites.md index b6f8b2a8..5419df50 100644 --- a/old_docs/API_docs_v62/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v62/methods/channels_toggleInvites.md @@ -25,6 +25,7 @@ description: channels.toggleInvites parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_toggleSignatures.md b/old_docs/API_docs_v62/methods/channels_toggleSignatures.md index e77879b0..a214b849 100644 --- a/old_docs/API_docs_v62/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v62/methods/channels_toggleSignatures.md @@ -25,6 +25,7 @@ description: channels.toggleSignatures parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md index 4cff44d2..7376df10 100644 --- a/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v62/methods/channels_updatePinnedMessage.md @@ -24,7 +24,10 @@ description: channels.updatePinnedMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_NOT_MODIFIED|The pinned message wasn't modified| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| + ### Example: diff --git a/old_docs/API_docs_v62/methods/channels_updateUsername.md b/old_docs/API_docs_v62/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v62/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v62/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_block.md b/old_docs/API_docs_v62/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v62/methods/contacts_block.md +++ b/old_docs/API_docs_v62/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_deleteContact.md b/old_docs/API_docs_v62/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v62/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v62/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_deleteContacts.md b/old_docs/API_docs_v62/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v62/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v62/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_getTopPeers.md b/old_docs/API_docs_v62/methods/contacts_getTopPeers.md index d7ccffd0..1caa1d77 100644 --- a/old_docs/API_docs_v62/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v62/methods/contacts_getTopPeers.md @@ -31,6 +31,7 @@ description: contacts.getTopPeers parameters, return type and example |----------|---------------| |TYPES_EMPTY|The types field is empty| + ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_importCard.md b/old_docs/API_docs_v62/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v62/methods/contacts_importCard.md +++ b/old_docs/API_docs_v62/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md index 70a9e958..738494b2 100644 --- a/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v62/methods/contacts_resetTopPeerRating.md @@ -25,6 +25,7 @@ description: contacts.resetTopPeerRating parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_search.md b/old_docs/API_docs_v62/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v62/methods/contacts_search.md +++ b/old_docs/API_docs_v62/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v62/methods/contacts_unblock.md b/old_docs/API_docs_v62/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v62/methods/contacts_unblock.md +++ b/old_docs/API_docs_v62/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/initConnection.md b/old_docs/API_docs_v62/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v62/methods/initConnection.md +++ b/old_docs/API_docs_v62/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v62/methods/invokeWithLayer.md b/old_docs/API_docs_v62/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v62/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v62/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_addChatUser.md b/old_docs/API_docs_v62/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v62/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v62/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v62/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_createChat.md b/old_docs/API_docs_v62/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v62/methods/messages_createChat.md +++ b/old_docs/API_docs_v62/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v62/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_deleteHistory.md b/old_docs/API_docs_v62/methods/messages_deleteHistory.md index 009e39c0..ce6ba6e7 100644 --- a/old_docs/API_docs_v62/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v62/methods/messages_deleteHistory.md @@ -26,6 +26,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_editChatAdmin.md b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v62/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v62/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_editChatTitle.md b/old_docs/API_docs_v62/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v62/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v62/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md index a3fdbc64..621c81a3 100644 --- a/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editInlineBotMessage.md @@ -27,7 +27,9 @@ description: messages.editInlineBotMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_NOT_MODIFIED|The message text has not changed| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_editMessage.md b/old_docs/API_docs_v62/methods/messages_editMessage.md index adc88b5a..1c3a8525 100644 --- a/old_docs/API_docs_v62/methods/messages_editMessage.md +++ b/old_docs/API_docs_v62/methods/messages_editMessage.md @@ -28,7 +28,10 @@ description: messages.editMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v62/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessage.md b/old_docs/API_docs_v62/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_forwardMessages.md b/old_docs/API_docs_v62/methods/messages_forwardMessages.md index bdb38317..d5ad680d 100644 --- a/old_docs/API_docs_v62/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v62/methods/messages_forwardMessages.md @@ -27,7 +27,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md index 53764b17..a8525987 100644 --- a/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v62/methods/messages_getBotCallbackAnswer.md @@ -25,7 +25,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid||Timeout|A timeout occurred while fetching data from the bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getChats.md b/old_docs/API_docs_v62/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v62/methods/messages_getChats.md +++ b/old_docs/API_docs_v62/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getCommonChats.md b/old_docs/API_docs_v62/methods/messages_getCommonChats.md index efd905ff..0c601ca9 100644 --- a/old_docs/API_docs_v62/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v62/methods/messages_getCommonChats.md @@ -26,6 +26,7 @@ description: messages.getCommonChats parameters, return type and example |----------|---------------| |USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getDhConfig.md b/old_docs/API_docs_v62/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v62/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v62/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getDialogs.md b/old_docs/API_docs_v62/methods/messages_getDialogs.md index a0ffc327..b79d9428 100644 --- a/old_docs/API_docs_v62/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getDialogs.md @@ -26,8 +26,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v62/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getGameHighScores.md b/old_docs/API_docs_v62/methods/messages_getGameHighScores.md index 602bf5e8..935bb95a 100644 --- a/old_docs/API_docs_v62/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v62/methods/messages_getGameHighScores.md @@ -24,7 +24,9 @@ description: messages.getGameHighScores parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getHistory.md b/old_docs/API_docs_v62/methods/messages_getHistory.md index f8232d25..00972412 100644 --- a/old_docs/API_docs_v62/methods/messages_getHistory.md +++ b/old_docs/API_docs_v62/methods/messages_getHistory.md @@ -28,7 +28,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md index 259408a8..ad41660e 100644 --- a/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v62/methods/messages_getInlineBotResults.md @@ -26,7 +26,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md index 9f66fb76..7cc04d0d 100644 --- a/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v62/methods/messages_getInlineGameHighScores.md @@ -23,7 +23,9 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getMessageEditData.md b/old_docs/API_docs_v62/methods/messages_getMessageEditData.md index 62e130c8..4e20a108 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v62/methods/messages_getMessageEditData.md @@ -23,7 +23,9 @@ description: messages.getMessageEditData parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_AUTHOR_REQUIRED|Message author required| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v62/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v62/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md index 6eaf48ff..3da60038 100644 --- a/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_getPeerDialogs.md @@ -22,8 +22,10 @@ description: messages.getPeerDialogs parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getPeerSettings.md b/old_docs/API_docs_v62/methods/messages_getPeerSettings.md index b62bfd2c..6147fae7 100644 --- a/old_docs/API_docs_v62/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v62/methods/messages_getPeerSettings.md @@ -24,6 +24,7 @@ description: messages.getPeerSettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_getStickerSet.md b/old_docs/API_docs_v62/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v62/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_hideReportSpam.md b/old_docs/API_docs_v62/methods/messages_hideReportSpam.md index 4bfe8ab1..2dfe4dd7 100644 --- a/old_docs/API_docs_v62/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v62/methods/messages_hideReportSpam.md @@ -24,6 +24,7 @@ description: messages.hideReportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_importChatInvite.md b/old_docs/API_docs_v62/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v62/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v62/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_installStickerSet.md b/old_docs/API_docs_v62/methods/messages_installStickerSet.md index c0cfa607..3dde52a7 100644 --- a/old_docs/API_docs_v62/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_migrateChat.md b/old_docs/API_docs_v62/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v62/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v62/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v62/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_readHistory.md b/old_docs/API_docs_v62/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v62/methods/messages_readHistory.md +++ b/old_docs/API_docs_v62/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_receivedQueue.md b/old_docs/API_docs_v62/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v62/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v62/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md index 72a278f5..30102fd7 100644 --- a/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v62/methods/messages_reorderPinnedDialogs.md @@ -25,6 +25,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md index 8fbc8649..30ef3473 100644 --- a/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v62/methods/messages_reportEncryptedSpam.md @@ -24,6 +24,7 @@ description: messages.reportEncryptedSpam parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_reportSpam.md b/old_docs/API_docs_v62/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v62/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v62/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_saveDraft.md b/old_docs/API_docs_v62/methods/messages_saveDraft.md index 5c9d4b8f..42308b46 100644 --- a/old_docs/API_docs_v62/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v62/methods/messages_saveDraft.md @@ -29,6 +29,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_saveGif.md b/old_docs/API_docs_v62/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/old_docs/API_docs_v62/methods/messages_saveGif.md +++ b/old_docs/API_docs_v62/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md index 45caff91..8d45be5e 100644 --- a/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v62/methods/messages_saveRecentSticker.md @@ -26,6 +26,7 @@ description: messages.saveRecentSticker parameters, return type and example |----------|---------------| |STICKER_ID_INVALID|The provided sticker ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_search.md b/old_docs/API_docs_v62/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v62/methods/messages_search.md +++ b/old_docs/API_docs_v62/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_searchGifs.md b/old_docs/API_docs_v62/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v62/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v62/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_searchGlobal.md b/old_docs/API_docs_v62/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v62/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v62/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v62/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md index 74925e93..bdb08f80 100644 --- a/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v62/methods/messages_sendInlineBotResult.md @@ -28,7 +28,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendMedia.md b/old_docs/API_docs_v62/methods/messages_sendMedia.md index 0f9a9fd2..1888a271 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v62/methods/messages_sendMedia.md @@ -28,7 +28,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_sendMessage.md b/old_docs/API_docs_v62/methods/messages_sendMessage.md index 83ab594e..7e2a71fa 100644 --- a/old_docs/API_docs_v62/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v62/methods/messages_sendMessage.md @@ -31,7 +31,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md index a0610ec0..2c51854f 100644 --- a/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v62/methods/messages_setBotCallbackAnswer.md @@ -28,6 +28,7 @@ description: messages.setBotCallbackAnswer parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v62/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setGameScore.md b/old_docs/API_docs_v62/methods/messages_setGameScore.md index 587e0a60..3137f7c9 100644 --- a/old_docs/API_docs_v62/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v62/methods/messages_setGameScore.md @@ -27,7 +27,9 @@ description: messages.setGameScore parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md index 423d8b69..8b5625f3 100644 --- a/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v62/methods/messages_setInlineBotResults.md @@ -28,7 +28,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md index ddb7ba31..36752f35 100644 --- a/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v62/methods/messages_setInlineGameScore.md @@ -26,7 +26,9 @@ description: messages.setInlineGameScore parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_setTyping.md b/old_docs/API_docs_v62/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v62/methods/messages_setTyping.md +++ b/old_docs/API_docs_v62/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_startBot.md b/old_docs/API_docs_v62/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v62/methods/messages_startBot.md +++ b/old_docs/API_docs_v62/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v62/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md index 82326978..f35f2f40 100644 --- a/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v62/methods/messages_toggleDialogPin.md @@ -25,6 +25,7 @@ description: messages.toggleDialogPin parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v62/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/phone_receivedCall.md b/old_docs/API_docs_v62/methods/phone_receivedCall.md index 71a1f0f9..765be909 100644 --- a/old_docs/API_docs_v62/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v62/methods/phone_receivedCall.md @@ -24,6 +24,7 @@ description: phone.receivedCall parameters, return type and example |----------|---------------| |CALL_PEER_INVALID|The provided call peer object is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/photos_getUserPhotos.md b/old_docs/API_docs_v62/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v62/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v62/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md index b8c6ad66..0bb06b1d 100644 --- a/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v62/methods/photos_uploadProfilePhoto.md @@ -23,6 +23,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v62/methods/users_getUsers.md b/old_docs/API_docs_v62/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v62/methods/users_getUsers.md +++ b/old_docs/API_docs_v62/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_changePhone.md b/old_docs/API_docs_v65/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v65/methods/account_changePhone.md +++ b/old_docs/API_docs_v65/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_checkUsername.md b/old_docs/API_docs_v65/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v65/methods/account_checkUsername.md +++ b/old_docs/API_docs_v65/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_confirmPhone.md b/old_docs/API_docs_v65/methods/account_confirmPhone.md index 9cb5151b..84bd87e7 100644 --- a/old_docs/API_docs_v65/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v65/methods/account_confirmPhone.md @@ -25,6 +25,7 @@ description: account.confirmPhone parameters, return type and example |----------|---------------| |PHONE_CODE_EMPTY|phone_code is missing| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_getNotifySettings.md b/old_docs/API_docs_v65/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v65/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v65/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_getPrivacy.md b/old_docs/API_docs_v65/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v65/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v65/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_getTmpPassword.md b/old_docs/API_docs_v65/methods/account_getTmpPassword.md index 9084b304..a6fed592 100644 --- a/old_docs/API_docs_v65/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v65/methods/account_getTmpPassword.md @@ -25,6 +25,7 @@ description: account.getTmpPassword parameters, return type and example |----------|---------------| |TMP_PASSWORD_DISABLED|The temporary password is disabled| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_registerDevice.md b/old_docs/API_docs_v65/methods/account_registerDevice.md index e5686879..3cc7f98d 100644 --- a/old_docs/API_docs_v65/methods/account_registerDevice.md +++ b/old_docs/API_docs_v65/methods/account_registerDevice.md @@ -25,6 +25,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_reportPeer.md b/old_docs/API_docs_v65/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v65/methods/account_reportPeer.md +++ b/old_docs/API_docs_v65/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_resetAuthorization.md b/old_docs/API_docs_v65/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v65/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v65/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md index d606b195..4be218f2 100644 --- a/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v65/methods/account_sendChangePhoneCode.md @@ -26,6 +26,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md index 3ca66b20..009fcb09 100644 --- a/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v65/methods/account_sendConfirmPhoneCode.md @@ -26,6 +26,7 @@ description: account.sendConfirmPhoneCode parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_setAccountTTL.md b/old_docs/API_docs_v65/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v65/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v65/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_setPrivacy.md b/old_docs/API_docs_v65/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v65/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v65/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_unregisterDevice.md b/old_docs/API_docs_v65/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v65/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v65/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_updateNotifySettings.md b/old_docs/API_docs_v65/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v65/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v65/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v65/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_updateProfile.md b/old_docs/API_docs_v65/methods/account_updateProfile.md index 0acbfaa7..a50eaea5 100644 --- a/old_docs/API_docs_v65/methods/account_updateProfile.md +++ b/old_docs/API_docs_v65/methods/account_updateProfile.md @@ -24,7 +24,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/account_updateUsername.md b/old_docs/API_docs_v65/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v65/methods/account_updateUsername.md +++ b/old_docs/API_docs_v65/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v65/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_cancelCode.md b/old_docs/API_docs_v65/methods/auth_cancelCode.md index dd8b528e..dc390329 100644 --- a/old_docs/API_docs_v65/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v65/methods/auth_cancelCode.md @@ -25,6 +25,7 @@ description: auth.cancelCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_checkPassword.md b/old_docs/API_docs_v65/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v65/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v65/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_checkPhone.md b/old_docs/API_docs_v65/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v65/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v65/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_exportAuthorization.md b/old_docs/API_docs_v65/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v65/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v65/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_importAuthorization.md b/old_docs/API_docs_v65/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v65/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v65/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_recoverPassword.md b/old_docs/API_docs_v65/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v65/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v65/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v65/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_resendCode.md b/old_docs/API_docs_v65/methods/auth_resendCode.md index 1ff8dfff..14d08ddd 100644 --- a/old_docs/API_docs_v65/methods/auth_resendCode.md +++ b/old_docs/API_docs_v65/methods/auth_resendCode.md @@ -25,6 +25,7 @@ description: auth.resendCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v65/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v65/methods/auth_sendInvites.md b/old_docs/API_docs_v65/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v65/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v65/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md index 0fcc85c6..ae1efce3 100644 --- a/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v65/methods/bots_answerWebhookJSONQuery.md @@ -23,7 +23,9 @@ description: bots.answerWebhookJSONQuery parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid||USER_BOT_INVALID|This method can only be called by a bot| +|QUERY_ID_INVALID|The query ID is invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md index 35350236..927f18c5 100644 --- a/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v65/methods/bots_sendCustomRequest.md @@ -25,6 +25,7 @@ description: bots.sendCustomRequest parameters, return type and example |----------|---------------| |USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_checkUsername.md b/old_docs/API_docs_v65/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v65/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v65/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_createChannel.md b/old_docs/API_docs_v65/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v65/methods/channels_createChannel.md +++ b/old_docs/API_docs_v65/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_deleteChannel.md b/old_docs/API_docs_v65/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v65/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_deleteMessages.md b/old_docs/API_docs_v65/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v65/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v65/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_editAbout.md b/old_docs/API_docs_v65/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v65/methods/channels_editAbout.md +++ b/old_docs/API_docs_v65/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_editAdmin.md b/old_docs/API_docs_v65/methods/channels_editAdmin.md index 871c3b93..9382c319 100644 --- a/old_docs/API_docs_v65/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v65/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_editPhoto.md b/old_docs/API_docs_v65/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v65/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v65/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_editTitle.md b/old_docs/API_docs_v65/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v65/methods/channels_editTitle.md +++ b/old_docs/API_docs_v65/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_exportInvite.md b/old_docs/API_docs_v65/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v65/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v65/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_exportMessageLink.md b/old_docs/API_docs_v65/methods/channels_exportMessageLink.md index 18091a3c..9831c9c0 100644 --- a/old_docs/API_docs_v65/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v65/methods/channels_exportMessageLink.md @@ -25,6 +25,7 @@ description: channels.exportMessageLink parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_getChannels.md b/old_docs/API_docs_v65/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v65/methods/channels_getChannels.md +++ b/old_docs/API_docs_v65/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_getMessages.md b/old_docs/API_docs_v65/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v65/methods/channels_getMessages.md +++ b/old_docs/API_docs_v65/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_getParticipant.md b/old_docs/API_docs_v65/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v65/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v65/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_inviteToChannel.md b/old_docs/API_docs_v65/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v65/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v65/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_joinChannel.md b/old_docs/API_docs_v65/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v65/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v65/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_leaveChannel.md b/old_docs/API_docs_v65/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v65/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v65/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_readHistory.md b/old_docs/API_docs_v65/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v65/methods/channels_readHistory.md +++ b/old_docs/API_docs_v65/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_reportSpam.md b/old_docs/API_docs_v65/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v65/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v65/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_toggleInvites.md b/old_docs/API_docs_v65/methods/channels_toggleInvites.md index b6f8b2a8..5419df50 100644 --- a/old_docs/API_docs_v65/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v65/methods/channels_toggleInvites.md @@ -25,6 +25,7 @@ description: channels.toggleInvites parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_toggleSignatures.md b/old_docs/API_docs_v65/methods/channels_toggleSignatures.md index e77879b0..a214b849 100644 --- a/old_docs/API_docs_v65/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v65/methods/channels_toggleSignatures.md @@ -25,6 +25,7 @@ description: channels.toggleSignatures parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md index 4cff44d2..7376df10 100644 --- a/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v65/methods/channels_updatePinnedMessage.md @@ -24,7 +24,10 @@ description: channels.updatePinnedMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_NOT_MODIFIED|The pinned message wasn't modified| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| + ### Example: diff --git a/old_docs/API_docs_v65/methods/channels_updateUsername.md b/old_docs/API_docs_v65/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v65/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v65/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_block.md b/old_docs/API_docs_v65/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v65/methods/contacts_block.md +++ b/old_docs/API_docs_v65/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_deleteContact.md b/old_docs/API_docs_v65/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v65/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v65/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_deleteContacts.md b/old_docs/API_docs_v65/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v65/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v65/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_getTopPeers.md b/old_docs/API_docs_v65/methods/contacts_getTopPeers.md index d7ccffd0..1caa1d77 100644 --- a/old_docs/API_docs_v65/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v65/methods/contacts_getTopPeers.md @@ -31,6 +31,7 @@ description: contacts.getTopPeers parameters, return type and example |----------|---------------| |TYPES_EMPTY|The types field is empty| + ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_importCard.md b/old_docs/API_docs_v65/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v65/methods/contacts_importCard.md +++ b/old_docs/API_docs_v65/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md index 70a9e958..738494b2 100644 --- a/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v65/methods/contacts_resetTopPeerRating.md @@ -25,6 +25,7 @@ description: contacts.resetTopPeerRating parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_search.md b/old_docs/API_docs_v65/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v65/methods/contacts_search.md +++ b/old_docs/API_docs_v65/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v65/methods/contacts_unblock.md b/old_docs/API_docs_v65/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v65/methods/contacts_unblock.md +++ b/old_docs/API_docs_v65/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/initConnection.md b/old_docs/API_docs_v65/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v65/methods/initConnection.md +++ b/old_docs/API_docs_v65/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v65/methods/invokeWithLayer.md b/old_docs/API_docs_v65/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v65/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v65/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_addChatUser.md b/old_docs/API_docs_v65/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v65/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v65/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_checkChatInvite.md b/old_docs/API_docs_v65/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v65/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_createChat.md b/old_docs/API_docs_v65/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v65/methods/messages_createChat.md +++ b/old_docs/API_docs_v65/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_deleteChatUser.md b/old_docs/API_docs_v65/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v65/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_deleteHistory.md b/old_docs/API_docs_v65/methods/messages_deleteHistory.md index 009e39c0..ce6ba6e7 100644 --- a/old_docs/API_docs_v65/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v65/methods/messages_deleteHistory.md @@ -26,6 +26,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_editChatAdmin.md b/old_docs/API_docs_v65/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v65/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_editChatPhoto.md b/old_docs/API_docs_v65/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v65/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_editChatTitle.md b/old_docs/API_docs_v65/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v65/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v65/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md index a3fdbc64..621c81a3 100644 --- a/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v65/methods/messages_editInlineBotMessage.md @@ -27,7 +27,9 @@ description: messages.editInlineBotMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_NOT_MODIFIED|The message text has not changed| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_editMessage.md b/old_docs/API_docs_v65/methods/messages_editMessage.md index adc88b5a..1c3a8525 100644 --- a/old_docs/API_docs_v65/methods/messages_editMessage.md +++ b/old_docs/API_docs_v65/methods/messages_editMessage.md @@ -28,7 +28,10 @@ description: messages.editMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_exportChatInvite.md b/old_docs/API_docs_v65/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v65/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessage.md b/old_docs/API_docs_v65/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_forwardMessages.md b/old_docs/API_docs_v65/methods/messages_forwardMessages.md index bdb38317..d5ad680d 100644 --- a/old_docs/API_docs_v65/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v65/methods/messages_forwardMessages.md @@ -27,7 +27,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md index 53764b17..a8525987 100644 --- a/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v65/methods/messages_getBotCallbackAnswer.md @@ -25,7 +25,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid||Timeout|A timeout occurred while fetching data from the bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getChats.md b/old_docs/API_docs_v65/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v65/methods/messages_getChats.md +++ b/old_docs/API_docs_v65/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getCommonChats.md b/old_docs/API_docs_v65/methods/messages_getCommonChats.md index efd905ff..0c601ca9 100644 --- a/old_docs/API_docs_v65/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v65/methods/messages_getCommonChats.md @@ -26,6 +26,7 @@ description: messages.getCommonChats parameters, return type and example |----------|---------------| |USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getDhConfig.md b/old_docs/API_docs_v65/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v65/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v65/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getDialogs.md b/old_docs/API_docs_v65/methods/messages_getDialogs.md index a0ffc327..b79d9428 100644 --- a/old_docs/API_docs_v65/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_getDialogs.md @@ -26,8 +26,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v65/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getGameHighScores.md b/old_docs/API_docs_v65/methods/messages_getGameHighScores.md index 602bf5e8..935bb95a 100644 --- a/old_docs/API_docs_v65/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v65/methods/messages_getGameHighScores.md @@ -24,7 +24,9 @@ description: messages.getGameHighScores parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getHistory.md b/old_docs/API_docs_v65/methods/messages_getHistory.md index f8232d25..00972412 100644 --- a/old_docs/API_docs_v65/methods/messages_getHistory.md +++ b/old_docs/API_docs_v65/methods/messages_getHistory.md @@ -28,7 +28,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md index 259408a8..ad41660e 100644 --- a/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v65/methods/messages_getInlineBotResults.md @@ -26,7 +26,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md index 9f66fb76..7cc04d0d 100644 --- a/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v65/methods/messages_getInlineGameHighScores.md @@ -23,7 +23,9 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getMessageEditData.md b/old_docs/API_docs_v65/methods/messages_getMessageEditData.md index 62e130c8..4e20a108 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v65/methods/messages_getMessageEditData.md @@ -23,7 +23,9 @@ description: messages.getMessageEditData parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_AUTHOR_REQUIRED|Message author required| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getMessagesViews.md b/old_docs/API_docs_v65/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v65/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v65/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md index 6eaf48ff..3da60038 100644 --- a/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_getPeerDialogs.md @@ -22,8 +22,10 @@ description: messages.getPeerDialogs parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getPeerSettings.md b/old_docs/API_docs_v65/methods/messages_getPeerSettings.md index b62bfd2c..6147fae7 100644 --- a/old_docs/API_docs_v65/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v65/methods/messages_getPeerSettings.md @@ -24,6 +24,7 @@ description: messages.getPeerSettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_getStickerSet.md b/old_docs/API_docs_v65/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v65/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_hideReportSpam.md b/old_docs/API_docs_v65/methods/messages_hideReportSpam.md index 4bfe8ab1..2dfe4dd7 100644 --- a/old_docs/API_docs_v65/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v65/methods/messages_hideReportSpam.md @@ -24,6 +24,7 @@ description: messages.hideReportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_importChatInvite.md b/old_docs/API_docs_v65/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v65/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v65/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_installStickerSet.md b/old_docs/API_docs_v65/methods/messages_installStickerSet.md index c0cfa607..3dde52a7 100644 --- a/old_docs/API_docs_v65/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_migrateChat.md b/old_docs/API_docs_v65/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v65/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v65/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v65/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_readHistory.md b/old_docs/API_docs_v65/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v65/methods/messages_readHistory.md +++ b/old_docs/API_docs_v65/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_receivedQueue.md b/old_docs/API_docs_v65/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v65/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v65/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md index 72a278f5..30102fd7 100644 --- a/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v65/methods/messages_reorderPinnedDialogs.md @@ -25,6 +25,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md index 8fbc8649..30ef3473 100644 --- a/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v65/methods/messages_reportEncryptedSpam.md @@ -24,6 +24,7 @@ description: messages.reportEncryptedSpam parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_reportSpam.md b/old_docs/API_docs_v65/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v65/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v65/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_saveDraft.md b/old_docs/API_docs_v65/methods/messages_saveDraft.md index 5c9d4b8f..42308b46 100644 --- a/old_docs/API_docs_v65/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v65/methods/messages_saveDraft.md @@ -29,6 +29,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_saveGif.md b/old_docs/API_docs_v65/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/old_docs/API_docs_v65/methods/messages_saveGif.md +++ b/old_docs/API_docs_v65/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md index 45caff91..8d45be5e 100644 --- a/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v65/methods/messages_saveRecentSticker.md @@ -26,6 +26,7 @@ description: messages.saveRecentSticker parameters, return type and example |----------|---------------| |STICKER_ID_INVALID|The provided sticker ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_search.md b/old_docs/API_docs_v65/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v65/methods/messages_search.md +++ b/old_docs/API_docs_v65/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_searchGifs.md b/old_docs/API_docs_v65/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v65/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v65/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_searchGlobal.md b/old_docs/API_docs_v65/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v65/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v65/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendEncrypted.md b/old_docs/API_docs_v65/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v65/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md index 74925e93..bdb08f80 100644 --- a/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v65/methods/messages_sendInlineBotResult.md @@ -28,7 +28,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendMedia.md b/old_docs/API_docs_v65/methods/messages_sendMedia.md index 0f9a9fd2..1888a271 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v65/methods/messages_sendMedia.md @@ -28,7 +28,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_sendMessage.md b/old_docs/API_docs_v65/methods/messages_sendMessage.md index 83ab594e..7e2a71fa 100644 --- a/old_docs/API_docs_v65/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v65/methods/messages_sendMessage.md @@ -31,7 +31,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md index a0610ec0..2c51854f 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v65/methods/messages_setBotCallbackAnswer.md @@ -28,6 +28,7 @@ description: messages.setBotCallbackAnswer parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md index c8dff6f6..25ed5ed5 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v65/methods/messages_setBotPrecheckoutResults.md @@ -26,6 +26,7 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp |----------|---------------| |ERROR_TEXT_EMPTY|The provided error message is empty| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md index bc6aaebd..49ac2896 100644 --- a/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v65/methods/messages_setBotShippingResults.md @@ -26,6 +26,7 @@ description: messages.setBotShippingResults parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v65/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setGameScore.md b/old_docs/API_docs_v65/methods/messages_setGameScore.md index 587e0a60..3137f7c9 100644 --- a/old_docs/API_docs_v65/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v65/methods/messages_setGameScore.md @@ -27,7 +27,9 @@ description: messages.setGameScore parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md index 423d8b69..8b5625f3 100644 --- a/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v65/methods/messages_setInlineBotResults.md @@ -28,7 +28,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md index ddb7ba31..36752f35 100644 --- a/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v65/methods/messages_setInlineGameScore.md @@ -26,7 +26,9 @@ description: messages.setInlineGameScore parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_setTyping.md b/old_docs/API_docs_v65/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v65/methods/messages_setTyping.md +++ b/old_docs/API_docs_v65/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_startBot.md b/old_docs/API_docs_v65/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v65/methods/messages_startBot.md +++ b/old_docs/API_docs_v65/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v65/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md index 82326978..f35f2f40 100644 --- a/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v65/methods/messages_toggleDialogPin.md @@ -25,6 +25,7 @@ description: messages.toggleDialogPin parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v65/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/payments_getPaymentForm.md b/old_docs/API_docs_v65/methods/payments_getPaymentForm.md index e8be5464..15f6e26b 100644 --- a/old_docs/API_docs_v65/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v65/methods/payments_getPaymentForm.md @@ -24,6 +24,7 @@ description: payments.getPaymentForm parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md index 7331d5eb..51433563 100644 --- a/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v65/methods/payments_getPaymentReceipt.md @@ -24,6 +24,7 @@ description: payments.getPaymentReceipt parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md index 66788ffd..a63a3980 100644 --- a/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v65/methods/payments_sendPaymentForm.md @@ -27,6 +27,7 @@ description: payments.sendPaymentForm parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md index 05285a37..d839a2df 100644 --- a/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v65/methods/payments_validateRequestedInfo.md @@ -26,6 +26,7 @@ description: payments.validateRequestedInfo parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/phone_receivedCall.md b/old_docs/API_docs_v65/methods/phone_receivedCall.md index 71a1f0f9..765be909 100644 --- a/old_docs/API_docs_v65/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v65/methods/phone_receivedCall.md @@ -24,6 +24,7 @@ description: phone.receivedCall parameters, return type and example |----------|---------------| |CALL_PEER_INVALID|The provided call peer object is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/phone_saveCallDebug.md b/old_docs/API_docs_v65/methods/phone_saveCallDebug.md index 7b62c78c..4dee5c97 100644 --- a/old_docs/API_docs_v65/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v65/methods/phone_saveCallDebug.md @@ -23,7 +23,9 @@ description: phone.saveCallDebug parameters, return type and example | Error | Description | |----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid||DATA_JSON_INVALID|The provided JSON data is invalid| +|CALL_PEER_INVALID|The provided call peer object is invalid| +|DATA_JSON_INVALID|The provided JSON data is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/phone_setCallRating.md b/old_docs/API_docs_v65/methods/phone_setCallRating.md index d2fa4acc..fea236d1 100644 --- a/old_docs/API_docs_v65/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v65/methods/phone_setCallRating.md @@ -26,6 +26,7 @@ description: phone.setCallRating parameters, return type and example |----------|---------------| |CALL_PEER_INVALID|The provided call peer object is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/photos_getUserPhotos.md b/old_docs/API_docs_v65/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v65/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v65/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md index b8c6ad66..0bb06b1d 100644 --- a/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v65/methods/photos_uploadProfilePhoto.md @@ -23,6 +23,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v65/methods/upload_getWebFile.md b/old_docs/API_docs_v65/methods/upload_getWebFile.md index a4eff18d..ec7c05b4 100644 --- a/old_docs/API_docs_v65/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v65/methods/upload_getWebFile.md @@ -26,6 +26,7 @@ description: upload.getWebFile parameters, return type and example |----------|---------------| |LOCATION_INVALID|The provided location is invalid| + ### Example: diff --git a/old_docs/API_docs_v65/methods/users_getUsers.md b/old_docs/API_docs_v65/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v65/methods/users_getUsers.md +++ b/old_docs/API_docs_v65/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_changePhone.md b/old_docs/API_docs_v66/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v66/methods/account_changePhone.md +++ b/old_docs/API_docs_v66/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_checkUsername.md b/old_docs/API_docs_v66/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v66/methods/account_checkUsername.md +++ b/old_docs/API_docs_v66/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_confirmPhone.md b/old_docs/API_docs_v66/methods/account_confirmPhone.md index 9cb5151b..84bd87e7 100644 --- a/old_docs/API_docs_v66/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v66/methods/account_confirmPhone.md @@ -25,6 +25,7 @@ description: account.confirmPhone parameters, return type and example |----------|---------------| |PHONE_CODE_EMPTY|phone_code is missing| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_getNotifySettings.md b/old_docs/API_docs_v66/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v66/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v66/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_getPrivacy.md b/old_docs/API_docs_v66/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v66/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v66/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_getTmpPassword.md b/old_docs/API_docs_v66/methods/account_getTmpPassword.md index 9084b304..a6fed592 100644 --- a/old_docs/API_docs_v66/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v66/methods/account_getTmpPassword.md @@ -25,6 +25,7 @@ description: account.getTmpPassword parameters, return type and example |----------|---------------| |TMP_PASSWORD_DISABLED|The temporary password is disabled| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_registerDevice.md b/old_docs/API_docs_v66/methods/account_registerDevice.md index e5686879..3cc7f98d 100644 --- a/old_docs/API_docs_v66/methods/account_registerDevice.md +++ b/old_docs/API_docs_v66/methods/account_registerDevice.md @@ -25,6 +25,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_reportPeer.md b/old_docs/API_docs_v66/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v66/methods/account_reportPeer.md +++ b/old_docs/API_docs_v66/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_resetAuthorization.md b/old_docs/API_docs_v66/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v66/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v66/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md index d606b195..4be218f2 100644 --- a/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v66/methods/account_sendChangePhoneCode.md @@ -26,6 +26,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md index 3ca66b20..009fcb09 100644 --- a/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v66/methods/account_sendConfirmPhoneCode.md @@ -26,6 +26,7 @@ description: account.sendConfirmPhoneCode parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_setAccountTTL.md b/old_docs/API_docs_v66/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v66/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v66/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_setPrivacy.md b/old_docs/API_docs_v66/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v66/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v66/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_unregisterDevice.md b/old_docs/API_docs_v66/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v66/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v66/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_updateNotifySettings.md b/old_docs/API_docs_v66/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v66/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v66/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v66/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_updateProfile.md b/old_docs/API_docs_v66/methods/account_updateProfile.md index 0acbfaa7..a50eaea5 100644 --- a/old_docs/API_docs_v66/methods/account_updateProfile.md +++ b/old_docs/API_docs_v66/methods/account_updateProfile.md @@ -24,7 +24,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/account_updateUsername.md b/old_docs/API_docs_v66/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v66/methods/account_updateUsername.md +++ b/old_docs/API_docs_v66/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v66/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_cancelCode.md b/old_docs/API_docs_v66/methods/auth_cancelCode.md index dd8b528e..dc390329 100644 --- a/old_docs/API_docs_v66/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v66/methods/auth_cancelCode.md @@ -25,6 +25,7 @@ description: auth.cancelCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_checkPassword.md b/old_docs/API_docs_v66/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v66/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v66/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_checkPhone.md b/old_docs/API_docs_v66/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v66/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v66/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_exportAuthorization.md b/old_docs/API_docs_v66/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v66/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v66/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_importAuthorization.md b/old_docs/API_docs_v66/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v66/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v66/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_recoverPassword.md b/old_docs/API_docs_v66/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v66/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v66/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v66/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_resendCode.md b/old_docs/API_docs_v66/methods/auth_resendCode.md index 1ff8dfff..14d08ddd 100644 --- a/old_docs/API_docs_v66/methods/auth_resendCode.md +++ b/old_docs/API_docs_v66/methods/auth_resendCode.md @@ -25,6 +25,7 @@ description: auth.resendCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v66/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v66/methods/auth_sendInvites.md b/old_docs/API_docs_v66/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v66/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v66/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md index 0fcc85c6..ae1efce3 100644 --- a/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v66/methods/bots_answerWebhookJSONQuery.md @@ -23,7 +23,9 @@ description: bots.answerWebhookJSONQuery parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid||USER_BOT_INVALID|This method can only be called by a bot| +|QUERY_ID_INVALID|The query ID is invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md index 35350236..927f18c5 100644 --- a/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v66/methods/bots_sendCustomRequest.md @@ -25,6 +25,7 @@ description: bots.sendCustomRequest parameters, return type and example |----------|---------------| |USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_checkUsername.md b/old_docs/API_docs_v66/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v66/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v66/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_createChannel.md b/old_docs/API_docs_v66/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v66/methods/channels_createChannel.md +++ b/old_docs/API_docs_v66/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_deleteChannel.md b/old_docs/API_docs_v66/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v66/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_deleteMessages.md b/old_docs/API_docs_v66/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v66/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v66/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_editAbout.md b/old_docs/API_docs_v66/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v66/methods/channels_editAbout.md +++ b/old_docs/API_docs_v66/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_editAdmin.md b/old_docs/API_docs_v66/methods/channels_editAdmin.md index 871c3b93..9382c319 100644 --- a/old_docs/API_docs_v66/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v66/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_editPhoto.md b/old_docs/API_docs_v66/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v66/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v66/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_editTitle.md b/old_docs/API_docs_v66/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v66/methods/channels_editTitle.md +++ b/old_docs/API_docs_v66/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_exportInvite.md b/old_docs/API_docs_v66/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v66/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v66/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_exportMessageLink.md b/old_docs/API_docs_v66/methods/channels_exportMessageLink.md index 18091a3c..9831c9c0 100644 --- a/old_docs/API_docs_v66/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v66/methods/channels_exportMessageLink.md @@ -25,6 +25,7 @@ description: channels.exportMessageLink parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_getChannels.md b/old_docs/API_docs_v66/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v66/methods/channels_getChannels.md +++ b/old_docs/API_docs_v66/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_getMessages.md b/old_docs/API_docs_v66/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v66/methods/channels_getMessages.md +++ b/old_docs/API_docs_v66/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_getParticipant.md b/old_docs/API_docs_v66/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v66/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v66/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_inviteToChannel.md b/old_docs/API_docs_v66/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v66/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v66/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_joinChannel.md b/old_docs/API_docs_v66/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v66/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v66/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_leaveChannel.md b/old_docs/API_docs_v66/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v66/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v66/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_readHistory.md b/old_docs/API_docs_v66/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v66/methods/channels_readHistory.md +++ b/old_docs/API_docs_v66/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_reportSpam.md b/old_docs/API_docs_v66/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v66/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v66/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_toggleInvites.md b/old_docs/API_docs_v66/methods/channels_toggleInvites.md index b6f8b2a8..5419df50 100644 --- a/old_docs/API_docs_v66/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v66/methods/channels_toggleInvites.md @@ -25,6 +25,7 @@ description: channels.toggleInvites parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_toggleSignatures.md b/old_docs/API_docs_v66/methods/channels_toggleSignatures.md index e77879b0..a214b849 100644 --- a/old_docs/API_docs_v66/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v66/methods/channels_toggleSignatures.md @@ -25,6 +25,7 @@ description: channels.toggleSignatures parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md index 4cff44d2..7376df10 100644 --- a/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v66/methods/channels_updatePinnedMessage.md @@ -24,7 +24,10 @@ description: channels.updatePinnedMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_NOT_MODIFIED|The pinned message wasn't modified| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| + ### Example: diff --git a/old_docs/API_docs_v66/methods/channels_updateUsername.md b/old_docs/API_docs_v66/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v66/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v66/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_block.md b/old_docs/API_docs_v66/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v66/methods/contacts_block.md +++ b/old_docs/API_docs_v66/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_deleteContact.md b/old_docs/API_docs_v66/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v66/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v66/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_deleteContacts.md b/old_docs/API_docs_v66/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v66/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v66/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_getTopPeers.md b/old_docs/API_docs_v66/methods/contacts_getTopPeers.md index d7ccffd0..1caa1d77 100644 --- a/old_docs/API_docs_v66/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v66/methods/contacts_getTopPeers.md @@ -31,6 +31,7 @@ description: contacts.getTopPeers parameters, return type and example |----------|---------------| |TYPES_EMPTY|The types field is empty| + ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_importCard.md b/old_docs/API_docs_v66/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v66/methods/contacts_importCard.md +++ b/old_docs/API_docs_v66/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md index 70a9e958..738494b2 100644 --- a/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v66/methods/contacts_resetTopPeerRating.md @@ -25,6 +25,7 @@ description: contacts.resetTopPeerRating parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_search.md b/old_docs/API_docs_v66/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v66/methods/contacts_search.md +++ b/old_docs/API_docs_v66/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v66/methods/contacts_unblock.md b/old_docs/API_docs_v66/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v66/methods/contacts_unblock.md +++ b/old_docs/API_docs_v66/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/initConnection.md b/old_docs/API_docs_v66/methods/initConnection.md index fa637c02..2b33ed26 100644 --- a/old_docs/API_docs_v66/methods/initConnection.md +++ b/old_docs/API_docs_v66/methods/initConnection.md @@ -29,6 +29,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v66/methods/invokeWithLayer.md b/old_docs/API_docs_v66/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v66/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v66/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_addChatUser.md b/old_docs/API_docs_v66/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v66/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v66/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_checkChatInvite.md b/old_docs/API_docs_v66/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v66/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_createChat.md b/old_docs/API_docs_v66/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v66/methods/messages_createChat.md +++ b/old_docs/API_docs_v66/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_deleteChatUser.md b/old_docs/API_docs_v66/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v66/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_deleteHistory.md b/old_docs/API_docs_v66/methods/messages_deleteHistory.md index 009e39c0..ce6ba6e7 100644 --- a/old_docs/API_docs_v66/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v66/methods/messages_deleteHistory.md @@ -26,6 +26,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_editChatAdmin.md b/old_docs/API_docs_v66/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v66/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_editChatPhoto.md b/old_docs/API_docs_v66/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v66/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_editChatTitle.md b/old_docs/API_docs_v66/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v66/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v66/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md index a3fdbc64..621c81a3 100644 --- a/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v66/methods/messages_editInlineBotMessage.md @@ -27,7 +27,9 @@ description: messages.editInlineBotMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_NOT_MODIFIED|The message text has not changed| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_editMessage.md b/old_docs/API_docs_v66/methods/messages_editMessage.md index adc88b5a..1c3a8525 100644 --- a/old_docs/API_docs_v66/methods/messages_editMessage.md +++ b/old_docs/API_docs_v66/methods/messages_editMessage.md @@ -28,7 +28,10 @@ description: messages.editMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_exportChatInvite.md b/old_docs/API_docs_v66/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v66/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessage.md b/old_docs/API_docs_v66/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_forwardMessages.md b/old_docs/API_docs_v66/methods/messages_forwardMessages.md index bdb38317..d5ad680d 100644 --- a/old_docs/API_docs_v66/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v66/methods/messages_forwardMessages.md @@ -27,7 +27,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md index 53764b17..a8525987 100644 --- a/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v66/methods/messages_getBotCallbackAnswer.md @@ -25,7 +25,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid||Timeout|A timeout occurred while fetching data from the bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getChats.md b/old_docs/API_docs_v66/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v66/methods/messages_getChats.md +++ b/old_docs/API_docs_v66/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getCommonChats.md b/old_docs/API_docs_v66/methods/messages_getCommonChats.md index efd905ff..0c601ca9 100644 --- a/old_docs/API_docs_v66/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v66/methods/messages_getCommonChats.md @@ -26,6 +26,7 @@ description: messages.getCommonChats parameters, return type and example |----------|---------------| |USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getDhConfig.md b/old_docs/API_docs_v66/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v66/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v66/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getDialogs.md b/old_docs/API_docs_v66/methods/messages_getDialogs.md index a0ffc327..b79d9428 100644 --- a/old_docs/API_docs_v66/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_getDialogs.md @@ -26,8 +26,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v66/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getGameHighScores.md b/old_docs/API_docs_v66/methods/messages_getGameHighScores.md index 602bf5e8..935bb95a 100644 --- a/old_docs/API_docs_v66/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v66/methods/messages_getGameHighScores.md @@ -24,7 +24,9 @@ description: messages.getGameHighScores parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getHistory.md b/old_docs/API_docs_v66/methods/messages_getHistory.md index f8232d25..00972412 100644 --- a/old_docs/API_docs_v66/methods/messages_getHistory.md +++ b/old_docs/API_docs_v66/methods/messages_getHistory.md @@ -28,7 +28,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md index 259408a8..ad41660e 100644 --- a/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v66/methods/messages_getInlineBotResults.md @@ -26,7 +26,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md index 9f66fb76..7cc04d0d 100644 --- a/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v66/methods/messages_getInlineGameHighScores.md @@ -23,7 +23,9 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getMessageEditData.md b/old_docs/API_docs_v66/methods/messages_getMessageEditData.md index 62e130c8..4e20a108 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v66/methods/messages_getMessageEditData.md @@ -23,7 +23,9 @@ description: messages.getMessageEditData parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_AUTHOR_REQUIRED|Message author required| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getMessagesViews.md b/old_docs/API_docs_v66/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v66/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v66/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md index 6eaf48ff..3da60038 100644 --- a/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_getPeerDialogs.md @@ -22,8 +22,10 @@ description: messages.getPeerDialogs parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getPeerSettings.md b/old_docs/API_docs_v66/methods/messages_getPeerSettings.md index b62bfd2c..6147fae7 100644 --- a/old_docs/API_docs_v66/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v66/methods/messages_getPeerSettings.md @@ -24,6 +24,7 @@ description: messages.getPeerSettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_getStickerSet.md b/old_docs/API_docs_v66/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v66/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_hideReportSpam.md b/old_docs/API_docs_v66/methods/messages_hideReportSpam.md index 4bfe8ab1..2dfe4dd7 100644 --- a/old_docs/API_docs_v66/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v66/methods/messages_hideReportSpam.md @@ -24,6 +24,7 @@ description: messages.hideReportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_importChatInvite.md b/old_docs/API_docs_v66/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v66/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v66/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_installStickerSet.md b/old_docs/API_docs_v66/methods/messages_installStickerSet.md index c0cfa607..3dde52a7 100644 --- a/old_docs/API_docs_v66/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_migrateChat.md b/old_docs/API_docs_v66/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v66/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v66/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v66/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_readHistory.md b/old_docs/API_docs_v66/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v66/methods/messages_readHistory.md +++ b/old_docs/API_docs_v66/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_receivedQueue.md b/old_docs/API_docs_v66/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v66/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v66/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md index 72a278f5..30102fd7 100644 --- a/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v66/methods/messages_reorderPinnedDialogs.md @@ -25,6 +25,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md index 8fbc8649..30ef3473 100644 --- a/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v66/methods/messages_reportEncryptedSpam.md @@ -24,6 +24,7 @@ description: messages.reportEncryptedSpam parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_reportSpam.md b/old_docs/API_docs_v66/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v66/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v66/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_saveDraft.md b/old_docs/API_docs_v66/methods/messages_saveDraft.md index 5c9d4b8f..42308b46 100644 --- a/old_docs/API_docs_v66/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v66/methods/messages_saveDraft.md @@ -29,6 +29,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_saveGif.md b/old_docs/API_docs_v66/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/old_docs/API_docs_v66/methods/messages_saveGif.md +++ b/old_docs/API_docs_v66/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md index 45caff91..8d45be5e 100644 --- a/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v66/methods/messages_saveRecentSticker.md @@ -26,6 +26,7 @@ description: messages.saveRecentSticker parameters, return type and example |----------|---------------| |STICKER_ID_INVALID|The provided sticker ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_search.md b/old_docs/API_docs_v66/methods/messages_search.md index 46cf48c1..3230b65e 100644 --- a/old_docs/API_docs_v66/methods/messages_search.md +++ b/old_docs/API_docs_v66/methods/messages_search.md @@ -29,7 +29,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_searchGifs.md b/old_docs/API_docs_v66/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v66/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v66/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_searchGlobal.md b/old_docs/API_docs_v66/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v66/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v66/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendEncrypted.md b/old_docs/API_docs_v66/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v66/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md index 74925e93..bdb08f80 100644 --- a/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v66/methods/messages_sendInlineBotResult.md @@ -28,7 +28,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendMedia.md b/old_docs/API_docs_v66/methods/messages_sendMedia.md index 0f9a9fd2..1888a271 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v66/methods/messages_sendMedia.md @@ -28,7 +28,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_sendMessage.md b/old_docs/API_docs_v66/methods/messages_sendMessage.md index 83ab594e..7e2a71fa 100644 --- a/old_docs/API_docs_v66/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v66/methods/messages_sendMessage.md @@ -31,7 +31,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md index a0610ec0..2c51854f 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v66/methods/messages_setBotCallbackAnswer.md @@ -28,6 +28,7 @@ description: messages.setBotCallbackAnswer parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md index c8dff6f6..25ed5ed5 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v66/methods/messages_setBotPrecheckoutResults.md @@ -26,6 +26,7 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp |----------|---------------| |ERROR_TEXT_EMPTY|The provided error message is empty| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md index bc6aaebd..49ac2896 100644 --- a/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v66/methods/messages_setBotShippingResults.md @@ -26,6 +26,7 @@ description: messages.setBotShippingResults parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v66/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setGameScore.md b/old_docs/API_docs_v66/methods/messages_setGameScore.md index 587e0a60..3137f7c9 100644 --- a/old_docs/API_docs_v66/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v66/methods/messages_setGameScore.md @@ -27,7 +27,9 @@ description: messages.setGameScore parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md index 423d8b69..8b5625f3 100644 --- a/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v66/methods/messages_setInlineBotResults.md @@ -28,7 +28,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md index ddb7ba31..36752f35 100644 --- a/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v66/methods/messages_setInlineGameScore.md @@ -26,7 +26,9 @@ description: messages.setInlineGameScore parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_setTyping.md b/old_docs/API_docs_v66/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v66/methods/messages_setTyping.md +++ b/old_docs/API_docs_v66/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_startBot.md b/old_docs/API_docs_v66/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v66/methods/messages_startBot.md +++ b/old_docs/API_docs_v66/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v66/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md index 82326978..f35f2f40 100644 --- a/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v66/methods/messages_toggleDialogPin.md @@ -25,6 +25,7 @@ description: messages.toggleDialogPin parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v66/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/payments_getPaymentForm.md b/old_docs/API_docs_v66/methods/payments_getPaymentForm.md index e8be5464..15f6e26b 100644 --- a/old_docs/API_docs_v66/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v66/methods/payments_getPaymentForm.md @@ -24,6 +24,7 @@ description: payments.getPaymentForm parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md index 7331d5eb..51433563 100644 --- a/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v66/methods/payments_getPaymentReceipt.md @@ -24,6 +24,7 @@ description: payments.getPaymentReceipt parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md index 66788ffd..a63a3980 100644 --- a/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v66/methods/payments_sendPaymentForm.md @@ -27,6 +27,7 @@ description: payments.sendPaymentForm parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md index 05285a37..d839a2df 100644 --- a/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v66/methods/payments_validateRequestedInfo.md @@ -26,6 +26,7 @@ description: payments.validateRequestedInfo parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/phone_receivedCall.md b/old_docs/API_docs_v66/methods/phone_receivedCall.md index 71a1f0f9..765be909 100644 --- a/old_docs/API_docs_v66/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v66/methods/phone_receivedCall.md @@ -24,6 +24,7 @@ description: phone.receivedCall parameters, return type and example |----------|---------------| |CALL_PEER_INVALID|The provided call peer object is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/phone_saveCallDebug.md b/old_docs/API_docs_v66/methods/phone_saveCallDebug.md index 7b62c78c..4dee5c97 100644 --- a/old_docs/API_docs_v66/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v66/methods/phone_saveCallDebug.md @@ -23,7 +23,9 @@ description: phone.saveCallDebug parameters, return type and example | Error | Description | |----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid||DATA_JSON_INVALID|The provided JSON data is invalid| +|CALL_PEER_INVALID|The provided call peer object is invalid| +|DATA_JSON_INVALID|The provided JSON data is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/phone_setCallRating.md b/old_docs/API_docs_v66/methods/phone_setCallRating.md index d2fa4acc..fea236d1 100644 --- a/old_docs/API_docs_v66/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v66/methods/phone_setCallRating.md @@ -26,6 +26,7 @@ description: phone.setCallRating parameters, return type and example |----------|---------------| |CALL_PEER_INVALID|The provided call peer object is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/photos_getUserPhotos.md b/old_docs/API_docs_v66/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v66/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v66/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md index b8c6ad66..0bb06b1d 100644 --- a/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v66/methods/photos_uploadProfilePhoto.md @@ -23,6 +23,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v66/methods/upload_getWebFile.md b/old_docs/API_docs_v66/methods/upload_getWebFile.md index a4eff18d..ec7c05b4 100644 --- a/old_docs/API_docs_v66/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v66/methods/upload_getWebFile.md @@ -26,6 +26,7 @@ description: upload.getWebFile parameters, return type and example |----------|---------------| |LOCATION_INVALID|The provided location is invalid| + ### Example: diff --git a/old_docs/API_docs_v66/methods/users_getUsers.md b/old_docs/API_docs_v66/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v66/methods/users_getUsers.md +++ b/old_docs/API_docs_v66/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_changePhone.md b/old_docs/API_docs_v68/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v68/methods/account_changePhone.md +++ b/old_docs/API_docs_v68/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_checkUsername.md b/old_docs/API_docs_v68/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v68/methods/account_checkUsername.md +++ b/old_docs/API_docs_v68/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_confirmPhone.md b/old_docs/API_docs_v68/methods/account_confirmPhone.md index 9cb5151b..84bd87e7 100644 --- a/old_docs/API_docs_v68/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v68/methods/account_confirmPhone.md @@ -25,6 +25,7 @@ description: account.confirmPhone parameters, return type and example |----------|---------------| |PHONE_CODE_EMPTY|phone_code is missing| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_getNotifySettings.md b/old_docs/API_docs_v68/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v68/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v68/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_getPrivacy.md b/old_docs/API_docs_v68/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v68/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v68/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_getTmpPassword.md b/old_docs/API_docs_v68/methods/account_getTmpPassword.md index 9084b304..a6fed592 100644 --- a/old_docs/API_docs_v68/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v68/methods/account_getTmpPassword.md @@ -25,6 +25,7 @@ description: account.getTmpPassword parameters, return type and example |----------|---------------| |TMP_PASSWORD_DISABLED|The temporary password is disabled| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_registerDevice.md b/old_docs/API_docs_v68/methods/account_registerDevice.md index e5686879..3cc7f98d 100644 --- a/old_docs/API_docs_v68/methods/account_registerDevice.md +++ b/old_docs/API_docs_v68/methods/account_registerDevice.md @@ -25,6 +25,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_reportPeer.md b/old_docs/API_docs_v68/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v68/methods/account_reportPeer.md +++ b/old_docs/API_docs_v68/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_resetAuthorization.md b/old_docs/API_docs_v68/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v68/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v68/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md index d606b195..4be218f2 100644 --- a/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v68/methods/account_sendChangePhoneCode.md @@ -26,6 +26,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md index 3ca66b20..009fcb09 100644 --- a/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v68/methods/account_sendConfirmPhoneCode.md @@ -26,6 +26,7 @@ description: account.sendConfirmPhoneCode parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_setAccountTTL.md b/old_docs/API_docs_v68/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v68/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v68/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_setPrivacy.md b/old_docs/API_docs_v68/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v68/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v68/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_unregisterDevice.md b/old_docs/API_docs_v68/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v68/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v68/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_updateNotifySettings.md b/old_docs/API_docs_v68/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v68/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v68/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v68/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_updateProfile.md b/old_docs/API_docs_v68/methods/account_updateProfile.md index 0acbfaa7..a50eaea5 100644 --- a/old_docs/API_docs_v68/methods/account_updateProfile.md +++ b/old_docs/API_docs_v68/methods/account_updateProfile.md @@ -24,7 +24,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/account_updateUsername.md b/old_docs/API_docs_v68/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v68/methods/account_updateUsername.md +++ b/old_docs/API_docs_v68/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v68/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_cancelCode.md b/old_docs/API_docs_v68/methods/auth_cancelCode.md index dd8b528e..dc390329 100644 --- a/old_docs/API_docs_v68/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v68/methods/auth_cancelCode.md @@ -25,6 +25,7 @@ description: auth.cancelCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_checkPassword.md b/old_docs/API_docs_v68/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v68/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v68/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_checkPhone.md b/old_docs/API_docs_v68/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v68/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v68/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_exportAuthorization.md b/old_docs/API_docs_v68/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v68/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v68/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_importAuthorization.md b/old_docs/API_docs_v68/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v68/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v68/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_recoverPassword.md b/old_docs/API_docs_v68/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v68/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v68/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v68/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_resendCode.md b/old_docs/API_docs_v68/methods/auth_resendCode.md index 1ff8dfff..14d08ddd 100644 --- a/old_docs/API_docs_v68/methods/auth_resendCode.md +++ b/old_docs/API_docs_v68/methods/auth_resendCode.md @@ -25,6 +25,7 @@ description: auth.resendCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v68/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v68/methods/auth_sendInvites.md b/old_docs/API_docs_v68/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v68/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v68/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md index 0fcc85c6..ae1efce3 100644 --- a/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v68/methods/bots_answerWebhookJSONQuery.md @@ -23,7 +23,9 @@ description: bots.answerWebhookJSONQuery parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid||USER_BOT_INVALID|This method can only be called by a bot| +|QUERY_ID_INVALID|The query ID is invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md index 35350236..927f18c5 100644 --- a/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v68/methods/bots_sendCustomRequest.md @@ -25,6 +25,7 @@ description: bots.sendCustomRequest parameters, return type and example |----------|---------------| |USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_checkUsername.md b/old_docs/API_docs_v68/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v68/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v68/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_createChannel.md b/old_docs/API_docs_v68/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v68/methods/channels_createChannel.md +++ b/old_docs/API_docs_v68/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_deleteChannel.md b/old_docs/API_docs_v68/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v68/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_deleteMessages.md b/old_docs/API_docs_v68/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v68/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v68/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_editAbout.md b/old_docs/API_docs_v68/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v68/methods/channels_editAbout.md +++ b/old_docs/API_docs_v68/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_editAdmin.md b/old_docs/API_docs_v68/methods/channels_editAdmin.md index ad2c86d8..cada97f7 100644 --- a/old_docs/API_docs_v68/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v68/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_editBanned.md b/old_docs/API_docs_v68/methods/channels_editBanned.md index 69184472..62f2f006 100644 --- a/old_docs/API_docs_v68/methods/channels_editBanned.md +++ b/old_docs/API_docs_v68/methods/channels_editBanned.md @@ -24,7 +24,10 @@ description: channels.editBanned parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_ADMIN_INVALID|You're not an admin| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_ADMIN_INVALID|You're not an admin| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_editPhoto.md b/old_docs/API_docs_v68/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v68/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v68/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_editTitle.md b/old_docs/API_docs_v68/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v68/methods/channels_editTitle.md +++ b/old_docs/API_docs_v68/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_exportInvite.md b/old_docs/API_docs_v68/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v68/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v68/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_exportMessageLink.md b/old_docs/API_docs_v68/methods/channels_exportMessageLink.md index 18091a3c..9831c9c0 100644 --- a/old_docs/API_docs_v68/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v68/methods/channels_exportMessageLink.md @@ -25,6 +25,7 @@ description: channels.exportMessageLink parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_getAdminLog.md b/old_docs/API_docs_v68/methods/channels_getAdminLog.md index f5bfb7ea..f4a70e98 100644 --- a/old_docs/API_docs_v68/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v68/methods/channels_getAdminLog.md @@ -28,7 +28,9 @@ description: channels.getAdminLog parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_getChannels.md b/old_docs/API_docs_v68/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v68/methods/channels_getChannels.md +++ b/old_docs/API_docs_v68/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_getMessages.md b/old_docs/API_docs_v68/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v68/methods/channels_getMessages.md +++ b/old_docs/API_docs_v68/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_getParticipant.md b/old_docs/API_docs_v68/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v68/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v68/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_inviteToChannel.md b/old_docs/API_docs_v68/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v68/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v68/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_joinChannel.md b/old_docs/API_docs_v68/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v68/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v68/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_leaveChannel.md b/old_docs/API_docs_v68/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v68/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v68/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_readHistory.md b/old_docs/API_docs_v68/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v68/methods/channels_readHistory.md +++ b/old_docs/API_docs_v68/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_reportSpam.md b/old_docs/API_docs_v68/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v68/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v68/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_toggleInvites.md b/old_docs/API_docs_v68/methods/channels_toggleInvites.md index b6f8b2a8..5419df50 100644 --- a/old_docs/API_docs_v68/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v68/methods/channels_toggleInvites.md @@ -25,6 +25,7 @@ description: channels.toggleInvites parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_toggleSignatures.md b/old_docs/API_docs_v68/methods/channels_toggleSignatures.md index e77879b0..a214b849 100644 --- a/old_docs/API_docs_v68/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v68/methods/channels_toggleSignatures.md @@ -25,6 +25,7 @@ description: channels.toggleSignatures parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md index 4cff44d2..7376df10 100644 --- a/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v68/methods/channels_updatePinnedMessage.md @@ -24,7 +24,10 @@ description: channels.updatePinnedMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_NOT_MODIFIED|The pinned message wasn't modified| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| + ### Example: diff --git a/old_docs/API_docs_v68/methods/channels_updateUsername.md b/old_docs/API_docs_v68/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v68/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v68/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_block.md b/old_docs/API_docs_v68/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v68/methods/contacts_block.md +++ b/old_docs/API_docs_v68/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_deleteContact.md b/old_docs/API_docs_v68/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v68/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v68/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_deleteContacts.md b/old_docs/API_docs_v68/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v68/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v68/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_getTopPeers.md b/old_docs/API_docs_v68/methods/contacts_getTopPeers.md index 2f83ea7f..cbd64cc0 100644 --- a/old_docs/API_docs_v68/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v68/methods/contacts_getTopPeers.md @@ -32,6 +32,7 @@ description: contacts.getTopPeers parameters, return type and example |----------|---------------| |TYPES_EMPTY|The types field is empty| + ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_importCard.md b/old_docs/API_docs_v68/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v68/methods/contacts_importCard.md +++ b/old_docs/API_docs_v68/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md index 70a9e958..738494b2 100644 --- a/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v68/methods/contacts_resetTopPeerRating.md @@ -25,6 +25,7 @@ description: contacts.resetTopPeerRating parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_search.md b/old_docs/API_docs_v68/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v68/methods/contacts_search.md +++ b/old_docs/API_docs_v68/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v68/methods/contacts_unblock.md b/old_docs/API_docs_v68/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v68/methods/contacts_unblock.md +++ b/old_docs/API_docs_v68/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/initConnection.md b/old_docs/API_docs_v68/methods/initConnection.md index 6de9ef77..c09d0684 100644 --- a/old_docs/API_docs_v68/methods/initConnection.md +++ b/old_docs/API_docs_v68/methods/initConnection.md @@ -31,6 +31,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v68/methods/invokeWithLayer.md b/old_docs/API_docs_v68/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v68/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v68/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/langpack_getDifference.md b/old_docs/API_docs_v68/methods/langpack_getDifference.md index e1da920b..2e77cc3b 100644 --- a/old_docs/API_docs_v68/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v68/methods/langpack_getDifference.md @@ -24,6 +24,7 @@ description: langpack.getDifference parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/langpack_getLangPack.md b/old_docs/API_docs_v68/methods/langpack_getLangPack.md index 89c47e22..5d4d0b81 100644 --- a/old_docs/API_docs_v68/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v68/methods/langpack_getLangPack.md @@ -24,6 +24,7 @@ description: langpack.getLangPack parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/langpack_getLanguages.md b/old_docs/API_docs_v68/methods/langpack_getLanguages.md index 8f9c376a..abaa0de3 100644 --- a/old_docs/API_docs_v68/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v68/methods/langpack_getLanguages.md @@ -19,6 +19,7 @@ description: langpack.getLanguages parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/langpack_getStrings.md b/old_docs/API_docs_v68/methods/langpack_getStrings.md index c3e18ecd..9bb740dc 100644 --- a/old_docs/API_docs_v68/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v68/methods/langpack_getStrings.md @@ -25,6 +25,7 @@ description: langpack.getStrings parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_addChatUser.md b/old_docs/API_docs_v68/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v68/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v68/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_checkChatInvite.md b/old_docs/API_docs_v68/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v68/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_createChat.md b/old_docs/API_docs_v68/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v68/methods/messages_createChat.md +++ b/old_docs/API_docs_v68/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_deleteChatUser.md b/old_docs/API_docs_v68/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v68/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_deleteHistory.md b/old_docs/API_docs_v68/methods/messages_deleteHistory.md index 009e39c0..ce6ba6e7 100644 --- a/old_docs/API_docs_v68/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v68/methods/messages_deleteHistory.md @@ -26,6 +26,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_editChatAdmin.md b/old_docs/API_docs_v68/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v68/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_editChatPhoto.md b/old_docs/API_docs_v68/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v68/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_editChatTitle.md b/old_docs/API_docs_v68/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v68/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v68/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md index a3fdbc64..621c81a3 100644 --- a/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v68/methods/messages_editInlineBotMessage.md @@ -27,7 +27,9 @@ description: messages.editInlineBotMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_NOT_MODIFIED|The message text has not changed| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_editMessage.md b/old_docs/API_docs_v68/methods/messages_editMessage.md index adc88b5a..1c3a8525 100644 --- a/old_docs/API_docs_v68/methods/messages_editMessage.md +++ b/old_docs/API_docs_v68/methods/messages_editMessage.md @@ -28,7 +28,10 @@ description: messages.editMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_exportChatInvite.md b/old_docs/API_docs_v68/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v68/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessage.md b/old_docs/API_docs_v68/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_forwardMessages.md b/old_docs/API_docs_v68/methods/messages_forwardMessages.md index bdb38317..d5ad680d 100644 --- a/old_docs/API_docs_v68/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v68/methods/messages_forwardMessages.md @@ -27,7 +27,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md index 53764b17..a8525987 100644 --- a/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v68/methods/messages_getBotCallbackAnswer.md @@ -25,7 +25,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid||Timeout|A timeout occurred while fetching data from the bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getChats.md b/old_docs/API_docs_v68/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v68/methods/messages_getChats.md +++ b/old_docs/API_docs_v68/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getCommonChats.md b/old_docs/API_docs_v68/methods/messages_getCommonChats.md index efd905ff..0c601ca9 100644 --- a/old_docs/API_docs_v68/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v68/methods/messages_getCommonChats.md @@ -26,6 +26,7 @@ description: messages.getCommonChats parameters, return type and example |----------|---------------| |USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getDhConfig.md b/old_docs/API_docs_v68/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v68/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v68/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getDialogs.md b/old_docs/API_docs_v68/methods/messages_getDialogs.md index a0ffc327..b79d9428 100644 --- a/old_docs/API_docs_v68/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_getDialogs.md @@ -26,8 +26,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v68/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getGameHighScores.md b/old_docs/API_docs_v68/methods/messages_getGameHighScores.md index 602bf5e8..935bb95a 100644 --- a/old_docs/API_docs_v68/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v68/methods/messages_getGameHighScores.md @@ -24,7 +24,9 @@ description: messages.getGameHighScores parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getHistory.md b/old_docs/API_docs_v68/methods/messages_getHistory.md index f8232d25..00972412 100644 --- a/old_docs/API_docs_v68/methods/messages_getHistory.md +++ b/old_docs/API_docs_v68/methods/messages_getHistory.md @@ -28,7 +28,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md index 259408a8..ad41660e 100644 --- a/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v68/methods/messages_getInlineBotResults.md @@ -26,7 +26,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md index 9f66fb76..7cc04d0d 100644 --- a/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v68/methods/messages_getInlineGameHighScores.md @@ -23,7 +23,9 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getMessageEditData.md b/old_docs/API_docs_v68/methods/messages_getMessageEditData.md index 62e130c8..4e20a108 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v68/methods/messages_getMessageEditData.md @@ -23,7 +23,9 @@ description: messages.getMessageEditData parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_AUTHOR_REQUIRED|Message author required| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getMessagesViews.md b/old_docs/API_docs_v68/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v68/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v68/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md index 6eaf48ff..3da60038 100644 --- a/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_getPeerDialogs.md @@ -22,8 +22,10 @@ description: messages.getPeerDialogs parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getPeerSettings.md b/old_docs/API_docs_v68/methods/messages_getPeerSettings.md index b62bfd2c..6147fae7 100644 --- a/old_docs/API_docs_v68/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v68/methods/messages_getPeerSettings.md @@ -24,6 +24,7 @@ description: messages.getPeerSettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_getStickerSet.md b/old_docs/API_docs_v68/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v68/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_hideReportSpam.md b/old_docs/API_docs_v68/methods/messages_hideReportSpam.md index 4bfe8ab1..2dfe4dd7 100644 --- a/old_docs/API_docs_v68/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v68/methods/messages_hideReportSpam.md @@ -24,6 +24,7 @@ description: messages.hideReportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_importChatInvite.md b/old_docs/API_docs_v68/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v68/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v68/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_installStickerSet.md b/old_docs/API_docs_v68/methods/messages_installStickerSet.md index c0cfa607..3dde52a7 100644 --- a/old_docs/API_docs_v68/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_migrateChat.md b/old_docs/API_docs_v68/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v68/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v68/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v68/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_readHistory.md b/old_docs/API_docs_v68/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v68/methods/messages_readHistory.md +++ b/old_docs/API_docs_v68/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_receivedQueue.md b/old_docs/API_docs_v68/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v68/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v68/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md index 72a278f5..30102fd7 100644 --- a/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v68/methods/messages_reorderPinnedDialogs.md @@ -25,6 +25,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md index 8fbc8649..30ef3473 100644 --- a/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v68/methods/messages_reportEncryptedSpam.md @@ -24,6 +24,7 @@ description: messages.reportEncryptedSpam parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_reportSpam.md b/old_docs/API_docs_v68/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v68/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v68/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_saveDraft.md b/old_docs/API_docs_v68/methods/messages_saveDraft.md index 5c9d4b8f..42308b46 100644 --- a/old_docs/API_docs_v68/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v68/methods/messages_saveDraft.md @@ -29,6 +29,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_saveGif.md b/old_docs/API_docs_v68/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/old_docs/API_docs_v68/methods/messages_saveGif.md +++ b/old_docs/API_docs_v68/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md index 45caff91..8d45be5e 100644 --- a/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v68/methods/messages_saveRecentSticker.md @@ -26,6 +26,7 @@ description: messages.saveRecentSticker parameters, return type and example |----------|---------------| |STICKER_ID_INVALID|The provided sticker ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_search.md b/old_docs/API_docs_v68/methods/messages_search.md index 095de085..ab888435 100644 --- a/old_docs/API_docs_v68/methods/messages_search.md +++ b/old_docs/API_docs_v68/methods/messages_search.md @@ -30,7 +30,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_searchGifs.md b/old_docs/API_docs_v68/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v68/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v68/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_searchGlobal.md b/old_docs/API_docs_v68/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v68/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v68/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendEncrypted.md b/old_docs/API_docs_v68/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v68/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md index 74925e93..bdb08f80 100644 --- a/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v68/methods/messages_sendInlineBotResult.md @@ -28,7 +28,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendMedia.md b/old_docs/API_docs_v68/methods/messages_sendMedia.md index 0f9a9fd2..1888a271 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v68/methods/messages_sendMedia.md @@ -28,7 +28,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_sendMessage.md b/old_docs/API_docs_v68/methods/messages_sendMessage.md index 83ab594e..7e2a71fa 100644 --- a/old_docs/API_docs_v68/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v68/methods/messages_sendMessage.md @@ -31,7 +31,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md index a0610ec0..2c51854f 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v68/methods/messages_setBotCallbackAnswer.md @@ -28,6 +28,7 @@ description: messages.setBotCallbackAnswer parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md index c8dff6f6..25ed5ed5 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v68/methods/messages_setBotPrecheckoutResults.md @@ -26,6 +26,7 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp |----------|---------------| |ERROR_TEXT_EMPTY|The provided error message is empty| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md index bc6aaebd..49ac2896 100644 --- a/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v68/methods/messages_setBotShippingResults.md @@ -26,6 +26,7 @@ description: messages.setBotShippingResults parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v68/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setGameScore.md b/old_docs/API_docs_v68/methods/messages_setGameScore.md index 587e0a60..3137f7c9 100644 --- a/old_docs/API_docs_v68/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v68/methods/messages_setGameScore.md @@ -27,7 +27,9 @@ description: messages.setGameScore parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md index 423d8b69..8b5625f3 100644 --- a/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v68/methods/messages_setInlineBotResults.md @@ -28,7 +28,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md index ddb7ba31..36752f35 100644 --- a/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v68/methods/messages_setInlineGameScore.md @@ -26,7 +26,9 @@ description: messages.setInlineGameScore parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_setTyping.md b/old_docs/API_docs_v68/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v68/methods/messages_setTyping.md +++ b/old_docs/API_docs_v68/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_startBot.md b/old_docs/API_docs_v68/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v68/methods/messages_startBot.md +++ b/old_docs/API_docs_v68/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v68/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md index 82326978..f35f2f40 100644 --- a/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v68/methods/messages_toggleDialogPin.md @@ -25,6 +25,7 @@ description: messages.toggleDialogPin parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v68/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/messages_uploadMedia.md b/old_docs/API_docs_v68/methods/messages_uploadMedia.md index 24f004c8..9f3f91ff 100644 --- a/old_docs/API_docs_v68/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v68/methods/messages_uploadMedia.md @@ -23,7 +23,9 @@ description: messages.uploadMedia parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||PEER_ID_INVALID|The provided peer id is invalid| +|BOT_MISSING|This method can only be run by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/payments_getPaymentForm.md b/old_docs/API_docs_v68/methods/payments_getPaymentForm.md index e8be5464..15f6e26b 100644 --- a/old_docs/API_docs_v68/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v68/methods/payments_getPaymentForm.md @@ -24,6 +24,7 @@ description: payments.getPaymentForm parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md index 7331d5eb..51433563 100644 --- a/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v68/methods/payments_getPaymentReceipt.md @@ -24,6 +24,7 @@ description: payments.getPaymentReceipt parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md index 66788ffd..a63a3980 100644 --- a/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v68/methods/payments_sendPaymentForm.md @@ -27,6 +27,7 @@ description: payments.sendPaymentForm parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md index 05285a37..d839a2df 100644 --- a/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v68/methods/payments_validateRequestedInfo.md @@ -26,6 +26,7 @@ description: payments.validateRequestedInfo parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/phone_receivedCall.md b/old_docs/API_docs_v68/methods/phone_receivedCall.md index 71a1f0f9..765be909 100644 --- a/old_docs/API_docs_v68/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v68/methods/phone_receivedCall.md @@ -24,6 +24,7 @@ description: phone.receivedCall parameters, return type and example |----------|---------------| |CALL_PEER_INVALID|The provided call peer object is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/phone_saveCallDebug.md b/old_docs/API_docs_v68/methods/phone_saveCallDebug.md index 7b62c78c..4dee5c97 100644 --- a/old_docs/API_docs_v68/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v68/methods/phone_saveCallDebug.md @@ -23,7 +23,9 @@ description: phone.saveCallDebug parameters, return type and example | Error | Description | |----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid||DATA_JSON_INVALID|The provided JSON data is invalid| +|CALL_PEER_INVALID|The provided call peer object is invalid| +|DATA_JSON_INVALID|The provided JSON data is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/phone_setCallRating.md b/old_docs/API_docs_v68/methods/phone_setCallRating.md index d2fa4acc..fea236d1 100644 --- a/old_docs/API_docs_v68/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v68/methods/phone_setCallRating.md @@ -26,6 +26,7 @@ description: phone.setCallRating parameters, return type and example |----------|---------------| |CALL_PEER_INVALID|The provided call peer object is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/photos_getUserPhotos.md b/old_docs/API_docs_v68/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v68/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v68/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md index b8c6ad66..0bb06b1d 100644 --- a/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v68/methods/photos_uploadProfilePhoto.md @@ -23,6 +23,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md index e02d05f9..bf62fa09 100644 --- a/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v68/methods/stickers_addStickerToSet.md @@ -23,7 +23,9 @@ description: stickers.addStickerToSet parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||STICKERSET_INVALID|The provided sticker set is invalid| +|BOT_MISSING|This method can only be run by a bot| +|STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md index bb81d4cd..a5784b3a 100644 --- a/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v68/methods/stickers_changeStickerPosition.md @@ -23,7 +23,9 @@ description: stickers.changeStickerPosition parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||STICKER_INVALID|The provided sticker is invalid| +|BOT_MISSING|This method can only be run by a bot| +|STICKER_INVALID|The provided sticker is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md index e396f531..4ca8cff7 100644 --- a/old_docs/API_docs_v68/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v68/methods/stickers_createStickerSet.md @@ -26,7 +26,9 @@ description: stickers.createStickerSet parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||USER_ID_INVALID|The provided user ID is invalid| +|BOT_MISSING|This method can only be run by a bot| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md index a28a22b1..d485db14 100644 --- a/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v68/methods/stickers_removeStickerFromSet.md @@ -22,7 +22,9 @@ description: stickers.removeStickerFromSet parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||STICKER_INVALID|The provided sticker is invalid| +|BOT_MISSING|This method can only be run by a bot| +|STICKER_INVALID|The provided sticker is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/upload_getWebFile.md b/old_docs/API_docs_v68/methods/upload_getWebFile.md index a4eff18d..ec7c05b4 100644 --- a/old_docs/API_docs_v68/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v68/methods/upload_getWebFile.md @@ -26,6 +26,7 @@ description: upload.getWebFile parameters, return type and example |----------|---------------| |LOCATION_INVALID|The provided location is invalid| + ### Example: diff --git a/old_docs/API_docs_v68/methods/users_getUsers.md b/old_docs/API_docs_v68/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v68/methods/users_getUsers.md +++ b/old_docs/API_docs_v68/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_changePhone.md b/old_docs/API_docs_v70/methods/account_changePhone.md index ffa4bf37..5d1801d0 100644 --- a/old_docs/API_docs_v70/methods/account_changePhone.md +++ b/old_docs/API_docs_v70/methods/account_changePhone.md @@ -26,6 +26,7 @@ description: account.changePhone parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_checkUsername.md b/old_docs/API_docs_v70/methods/account_checkUsername.md index 654b4222..afc59b6c 100644 --- a/old_docs/API_docs_v70/methods/account_checkUsername.md +++ b/old_docs/API_docs_v70/methods/account_checkUsername.md @@ -24,6 +24,7 @@ description: account.checkUsername parameters, return type and example |----------|---------------| |USERNAME_INVALID|The provided username is not valid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_confirmPhone.md b/old_docs/API_docs_v70/methods/account_confirmPhone.md index 9cb5151b..84bd87e7 100644 --- a/old_docs/API_docs_v70/methods/account_confirmPhone.md +++ b/old_docs/API_docs_v70/methods/account_confirmPhone.md @@ -25,6 +25,7 @@ description: account.confirmPhone parameters, return type and example |----------|---------------| |PHONE_CODE_EMPTY|phone_code is missing| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_getNotifySettings.md b/old_docs/API_docs_v70/methods/account_getNotifySettings.md index 8b93edce..8ee710d8 100644 --- a/old_docs/API_docs_v70/methods/account_getNotifySettings.md +++ b/old_docs/API_docs_v70/methods/account_getNotifySettings.md @@ -24,6 +24,7 @@ description: account.getNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_getPrivacy.md b/old_docs/API_docs_v70/methods/account_getPrivacy.md index feec1571..52786b79 100644 --- a/old_docs/API_docs_v70/methods/account_getPrivacy.md +++ b/old_docs/API_docs_v70/methods/account_getPrivacy.md @@ -24,6 +24,7 @@ description: account.getPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_getTmpPassword.md b/old_docs/API_docs_v70/methods/account_getTmpPassword.md index 9084b304..a6fed592 100644 --- a/old_docs/API_docs_v70/methods/account_getTmpPassword.md +++ b/old_docs/API_docs_v70/methods/account_getTmpPassword.md @@ -25,6 +25,7 @@ description: account.getTmpPassword parameters, return type and example |----------|---------------| |TMP_PASSWORD_DISABLED|The temporary password is disabled| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_registerDevice.md b/old_docs/API_docs_v70/methods/account_registerDevice.md index e5686879..3cc7f98d 100644 --- a/old_docs/API_docs_v70/methods/account_registerDevice.md +++ b/old_docs/API_docs_v70/methods/account_registerDevice.md @@ -25,6 +25,7 @@ description: account.registerDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_reportPeer.md b/old_docs/API_docs_v70/methods/account_reportPeer.md index 31ab05e8..1545c3b8 100644 --- a/old_docs/API_docs_v70/methods/account_reportPeer.md +++ b/old_docs/API_docs_v70/methods/account_reportPeer.md @@ -25,6 +25,7 @@ description: account.reportPeer parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_resetAuthorization.md b/old_docs/API_docs_v70/methods/account_resetAuthorization.md index 6899632b..e44334f2 100644 --- a/old_docs/API_docs_v70/methods/account_resetAuthorization.md +++ b/old_docs/API_docs_v70/methods/account_resetAuthorization.md @@ -24,6 +24,7 @@ description: account.resetAuthorization parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md b/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md index d606b195..4be218f2 100644 --- a/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md +++ b/old_docs/API_docs_v70/methods/account_sendChangePhoneCode.md @@ -26,6 +26,7 @@ description: account.sendChangePhoneCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md b/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md index 3ca66b20..009fcb09 100644 --- a/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md +++ b/old_docs/API_docs_v70/methods/account_sendConfirmPhoneCode.md @@ -26,6 +26,7 @@ description: account.sendConfirmPhoneCode parameters, return type and example |----------|---------------| |HASH_INVALID|The provided hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_setAccountTTL.md b/old_docs/API_docs_v70/methods/account_setAccountTTL.md index 835e6971..f06eb676 100644 --- a/old_docs/API_docs_v70/methods/account_setAccountTTL.md +++ b/old_docs/API_docs_v70/methods/account_setAccountTTL.md @@ -24,6 +24,7 @@ description: account.setAccountTTL parameters, return type and example |----------|---------------| |TTL_DAYS_INVALID|The provided TTL is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_setPrivacy.md b/old_docs/API_docs_v70/methods/account_setPrivacy.md index de559ab0..56aebbcc 100644 --- a/old_docs/API_docs_v70/methods/account_setPrivacy.md +++ b/old_docs/API_docs_v70/methods/account_setPrivacy.md @@ -25,6 +25,7 @@ description: account.setPrivacy parameters, return type and example |----------|---------------| |PRIVACY_KEY_INVALID|The privacy key is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_unregisterDevice.md b/old_docs/API_docs_v70/methods/account_unregisterDevice.md index 85c55814..41899b6e 100644 --- a/old_docs/API_docs_v70/methods/account_unregisterDevice.md +++ b/old_docs/API_docs_v70/methods/account_unregisterDevice.md @@ -25,6 +25,7 @@ description: account.unregisterDevice parameters, return type and example |----------|---------------| |TOKEN_INVALID|The provided token is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_updateNotifySettings.md b/old_docs/API_docs_v70/methods/account_updateNotifySettings.md index c8c742fc..8389b5c2 100644 --- a/old_docs/API_docs_v70/methods/account_updateNotifySettings.md +++ b/old_docs/API_docs_v70/methods/account_updateNotifySettings.md @@ -25,6 +25,7 @@ description: account.updateNotifySettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md b/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md index e893736d..fe6d62f4 100644 --- a/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md +++ b/old_docs/API_docs_v70/methods/account_updatePasswordSettings.md @@ -25,6 +25,7 @@ description: account.updatePasswordSettings parameters, return type and example |----------|---------------| |NEW_SETTINGS_INVALID|The new settings are invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_updateProfile.md b/old_docs/API_docs_v70/methods/account_updateProfile.md index 0acbfaa7..a50eaea5 100644 --- a/old_docs/API_docs_v70/methods/account_updateProfile.md +++ b/old_docs/API_docs_v70/methods/account_updateProfile.md @@ -24,7 +24,9 @@ description: account.updateProfile parameters, return type and example | Error | Description | |----------|---------------| -|ABOUT_TOO_LONG|The provided bio is too long||FIRSTNAME_INVALID|The first name is invalid| +|ABOUT_TOO_LONG|The provided bio is too long| +|FIRSTNAME_INVALID|The first name is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/account_updateUsername.md b/old_docs/API_docs_v70/methods/account_updateUsername.md index 373a9b4d..22be2fd4 100644 --- a/old_docs/API_docs_v70/methods/account_updateUsername.md +++ b/old_docs/API_docs_v70/methods/account_updateUsername.md @@ -22,7 +22,10 @@ description: account.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|USERNAME_INVALID|The provided username is not valid||USERNAME_NOT_MODIFIED|The username was not modified||USERNAME_OCCUPIED|The provided username is already occupied| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_NOT_MODIFIED|The username was not modified| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md b/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md index 2eff1092..51e5566c 100644 --- a/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md +++ b/old_docs/API_docs_v70/methods/auth_bindTempAuthKey.md @@ -25,7 +25,9 @@ description: auth.bindTempAuthKey parameters, return type and example | Error | Description | |----------|---------------| -|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid||INPUT_REQUEST_TOO_LONG|The request is too big| +|ENCRYPTED_MESSAGE_INVALID|Encrypted message invalid| +|INPUT_REQUEST_TOO_LONG|The request is too big| + ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_cancelCode.md b/old_docs/API_docs_v70/methods/auth_cancelCode.md index dd8b528e..dc390329 100644 --- a/old_docs/API_docs_v70/methods/auth_cancelCode.md +++ b/old_docs/API_docs_v70/methods/auth_cancelCode.md @@ -25,6 +25,7 @@ description: auth.cancelCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_checkPassword.md b/old_docs/API_docs_v70/methods/auth_checkPassword.md index 0d86804c..d5559186 100644 --- a/old_docs/API_docs_v70/methods/auth_checkPassword.md +++ b/old_docs/API_docs_v70/methods/auth_checkPassword.md @@ -24,6 +24,7 @@ description: auth.checkPassword parameters, return type and example |----------|---------------| |PASSWORD_HASH_INVALID|The provided password hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_checkPhone.md b/old_docs/API_docs_v70/methods/auth_checkPhone.md index a8181371..635d4ad4 100644 --- a/old_docs/API_docs_v70/methods/auth_checkPhone.md +++ b/old_docs/API_docs_v70/methods/auth_checkPhone.md @@ -22,7 +22,11 @@ description: auth.checkPhone parameters, return type and example | Error | Description | |----------|---------------| -|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram||PHONE_NUMBER_INVALID|The phone number is invalid| +|NETWORK_MIGRATE_4|memes| +|PHONE_MIGRATE_4|memes| +|PHONE_NUMBER_BANNED|The provided phone number is banned from telegram| +|PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_exportAuthorization.md b/old_docs/API_docs_v70/methods/auth_exportAuthorization.md index 016daec1..44c45b70 100644 --- a/old_docs/API_docs_v70/methods/auth_exportAuthorization.md +++ b/old_docs/API_docs_v70/methods/auth_exportAuthorization.md @@ -24,6 +24,7 @@ description: auth.exportAuthorization parameters, return type and example |----------|---------------| |DC_ID_INVALID|The provided DC ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_importAuthorization.md b/old_docs/API_docs_v70/methods/auth_importAuthorization.md index 032ec8d5..e0fd534f 100644 --- a/old_docs/API_docs_v70/methods/auth_importAuthorization.md +++ b/old_docs/API_docs_v70/methods/auth_importAuthorization.md @@ -23,7 +23,9 @@ description: auth.importAuthorization parameters, return type and example | Error | Description | |----------|---------------| -|AUTH_BYTES_INVALID|The provided authorization is invalid||USER_ID_INVALID|The provided user ID is invalid| +|AUTH_BYTES_INVALID|The provided authorization is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_recoverPassword.md b/old_docs/API_docs_v70/methods/auth_recoverPassword.md index 53989c8c..c2ce3fed 100644 --- a/old_docs/API_docs_v70/methods/auth_recoverPassword.md +++ b/old_docs/API_docs_v70/methods/auth_recoverPassword.md @@ -24,6 +24,7 @@ description: auth.recoverPassword parameters, return type and example |----------|---------------| |CODE_EMPTY|The provided code is empty| + ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md b/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md index 8c8a5225..101b1cf7 100644 --- a/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md +++ b/old_docs/API_docs_v70/methods/auth_requestPasswordRecovery.md @@ -19,6 +19,7 @@ description: auth.requestPasswordRecovery parameters, return type and example |----------|---------------| |PASSWORD_EMPTY|The provided password is empty| + ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_resendCode.md b/old_docs/API_docs_v70/methods/auth_resendCode.md index 1ff8dfff..14d08ddd 100644 --- a/old_docs/API_docs_v70/methods/auth_resendCode.md +++ b/old_docs/API_docs_v70/methods/auth_resendCode.md @@ -25,6 +25,7 @@ description: auth.resendCode parameters, return type and example |----------|---------------| |PHONE_NUMBER_INVALID|The phone number is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md b/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md index 8d69e11d..87a39a22 100644 --- a/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md +++ b/old_docs/API_docs_v70/methods/auth_resetAuthorizations.md @@ -19,6 +19,7 @@ description: auth.resetAuthorizations parameters, return type and example |----------|---------------| |Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v70/methods/auth_sendInvites.md b/old_docs/API_docs_v70/methods/auth_sendInvites.md index d0d15e72..604fc65d 100644 --- a/old_docs/API_docs_v70/methods/auth_sendInvites.md +++ b/old_docs/API_docs_v70/methods/auth_sendInvites.md @@ -25,6 +25,7 @@ description: auth.sendInvites parameters, return type and example |----------|---------------| |MESSAGE_EMPTY|The provided message is empty| + ### Example: diff --git a/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md b/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md index 0fcc85c6..ae1efce3 100644 --- a/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md +++ b/old_docs/API_docs_v70/methods/bots_answerWebhookJSONQuery.md @@ -23,7 +23,9 @@ description: bots.answerWebhookJSONQuery parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_ID_INVALID|The query ID is invalid||USER_BOT_INVALID|This method can only be called by a bot| +|QUERY_ID_INVALID|The query ID is invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md b/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md index 35350236..927f18c5 100644 --- a/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md +++ b/old_docs/API_docs_v70/methods/bots_sendCustomRequest.md @@ -25,6 +25,7 @@ description: bots.sendCustomRequest parameters, return type and example |----------|---------------| |USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_checkUsername.md b/old_docs/API_docs_v70/methods/channels_checkUsername.md index 8c9b0bbf..e8bcf845 100644 --- a/old_docs/API_docs_v70/methods/channels_checkUsername.md +++ b/old_docs/API_docs_v70/methods/channels_checkUsername.md @@ -23,7 +23,9 @@ description: channels.checkUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ID_INVALID|The provided chat id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_createChannel.md b/old_docs/API_docs_v70/methods/channels_createChannel.md index 89ad273b..c08e60e1 100644 --- a/old_docs/API_docs_v70/methods/channels_createChannel.md +++ b/old_docs/API_docs_v70/methods/channels_createChannel.md @@ -27,6 +27,7 @@ description: channels.createChannel parameters, return type and example |----------|---------------| |USER_RESTRICTED|You're spamreported, you can't create channels or chats.| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_deleteChannel.md b/old_docs/API_docs_v70/methods/channels_deleteChannel.md index 51702104..912ab080 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteChannel.md +++ b/old_docs/API_docs_v70/methods/channels_deleteChannel.md @@ -22,7 +22,9 @@ description: channels.deleteChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_deleteMessages.md b/old_docs/API_docs_v70/methods/channels_deleteMessages.md index c7fff6b7..91dd2fce 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteMessages.md +++ b/old_docs/API_docs_v70/methods/channels_deleteMessages.md @@ -23,7 +23,9 @@ description: channels.deleteMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| +|CHANNEL_INVALID|The provided channel is invalid| +|MESSAGE_DELETE_FORBIDDEN|You can't delete one of the messages you tried to delete, most likely because it is a service message.| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md b/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md index 39a48bd7..66843269 100644 --- a/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md +++ b/old_docs/API_docs_v70/methods/channels_deleteUserHistory.md @@ -23,7 +23,9 @@ description: channels.deleteUserHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_editAbout.md b/old_docs/API_docs_v70/methods/channels_editAbout.md index a21f8681..b9655325 100644 --- a/old_docs/API_docs_v70/methods/channels_editAbout.md +++ b/old_docs/API_docs_v70/methods/channels_editAbout.md @@ -25,6 +25,7 @@ description: channels.editAbout parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_editAdmin.md b/old_docs/API_docs_v70/methods/channels_editAdmin.md index ad2c86d8..cada97f7 100644 --- a/old_docs/API_docs_v70/methods/channels_editAdmin.md +++ b/old_docs/API_docs_v70/methods/channels_editAdmin.md @@ -24,7 +24,11 @@ description: channels.editAdmin parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_INVITE_REQUIRED|You do not have the rights to do this| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_editBanned.md b/old_docs/API_docs_v70/methods/channels_editBanned.md index 69184472..62f2f006 100644 --- a/old_docs/API_docs_v70/methods/channels_editBanned.md +++ b/old_docs/API_docs_v70/methods/channels_editBanned.md @@ -24,7 +24,10 @@ description: channels.editBanned parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USER_ADMIN_INVALID|You're not an admin| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USER_ADMIN_INVALID|You're not an admin| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_editPhoto.md b/old_docs/API_docs_v70/methods/channels_editPhoto.md index 0894d9a2..5511f4a4 100644 --- a/old_docs/API_docs_v70/methods/channels_editPhoto.md +++ b/old_docs/API_docs_v70/methods/channels_editPhoto.md @@ -25,6 +25,7 @@ description: channels.editPhoto parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_editTitle.md b/old_docs/API_docs_v70/methods/channels_editTitle.md index 03fcd95e..3b695af7 100644 --- a/old_docs/API_docs_v70/methods/channels_editTitle.md +++ b/old_docs/API_docs_v70/methods/channels_editTitle.md @@ -25,6 +25,7 @@ description: channels.editTitle parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_exportInvite.md b/old_docs/API_docs_v70/methods/channels_exportInvite.md index 4f5d048d..95a25461 100644 --- a/old_docs/API_docs_v70/methods/channels_exportInvite.md +++ b/old_docs/API_docs_v70/methods/channels_exportInvite.md @@ -22,7 +22,9 @@ description: channels.exportInvite parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_exportMessageLink.md b/old_docs/API_docs_v70/methods/channels_exportMessageLink.md index 18091a3c..9831c9c0 100644 --- a/old_docs/API_docs_v70/methods/channels_exportMessageLink.md +++ b/old_docs/API_docs_v70/methods/channels_exportMessageLink.md @@ -25,6 +25,7 @@ description: channels.exportMessageLink parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_getAdminLog.md b/old_docs/API_docs_v70/methods/channels_getAdminLog.md index f5bfb7ea..f4a70e98 100644 --- a/old_docs/API_docs_v70/methods/channels_getAdminLog.md +++ b/old_docs/API_docs_v70/methods/channels_getAdminLog.md @@ -28,7 +28,9 @@ description: channels.getAdminLog parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_getChannels.md b/old_docs/API_docs_v70/methods/channels_getChannels.md index 01729104..a4dd92a0 100644 --- a/old_docs/API_docs_v70/methods/channels_getChannels.md +++ b/old_docs/API_docs_v70/methods/channels_getChannels.md @@ -24,6 +24,7 @@ description: channels.getChannels parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_getMessages.md b/old_docs/API_docs_v70/methods/channels_getMessages.md index fb410541..2df5c4ee 100644 --- a/old_docs/API_docs_v70/methods/channels_getMessages.md +++ b/old_docs/API_docs_v70/methods/channels_getMessages.md @@ -25,6 +25,7 @@ description: channels.getMessages parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_getParticipant.md b/old_docs/API_docs_v70/methods/channels_getParticipant.md index e6140afa..d13d93a8 100644 --- a/old_docs/API_docs_v70/methods/channels_getParticipant.md +++ b/old_docs/API_docs_v70/methods/channels_getParticipant.md @@ -23,7 +23,9 @@ description: channels.getParticipant parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_inviteToChannel.md b/old_docs/API_docs_v70/methods/channels_inviteToChannel.md index ed0d0c87..80441626 100644 --- a/old_docs/API_docs_v70/methods/channels_inviteToChannel.md +++ b/old_docs/API_docs_v70/methods/channels_inviteToChannel.md @@ -23,7 +23,20 @@ description: channels.inviteToChannel parameters, return type and example | Error | Description | |----------|---------------| -|BOT_GROUPS_BLOCKED|This bot can't be added to groups||BOTS_TOO_MUCH|There are too many bots in this chat/channel||CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||INPUT_USER_DEACTIVATED|The specified user was deleted||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups||USER_KICKED|This user was kicked from this supergroup/channel||USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact||USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|BOT_GROUPS_BLOCKED|This bot can't be added to groups| +|BOTS_TOO_MUCH|There are too many bots in this chat/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_CHANNELS_TOO_MUCH|One of the users you tried to add is already in too many channels/supergroups| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_KICKED|This user was kicked from this supergroup/channel| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_joinChannel.md b/old_docs/API_docs_v70/methods/channels_joinChannel.md index 255bffa0..f5787937 100644 --- a/old_docs/API_docs_v70/methods/channels_joinChannel.md +++ b/old_docs/API_docs_v70/methods/channels_joinChannel.md @@ -22,7 +22,9 @@ description: channels.joinChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_leaveChannel.md b/old_docs/API_docs_v70/methods/channels_leaveChannel.md index 99d83b42..dcb11a21 100644 --- a/old_docs/API_docs_v70/methods/channels_leaveChannel.md +++ b/old_docs/API_docs_v70/methods/channels_leaveChannel.md @@ -22,7 +22,11 @@ description: channels.leaveChannel parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||USER_CREATOR|You can't leave this channel, because you're its creator||USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|USER_CREATOR|You can't leave this channel, because you're its creator| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_readHistory.md b/old_docs/API_docs_v70/methods/channels_readHistory.md index 17ca824e..bedc7c9c 100644 --- a/old_docs/API_docs_v70/methods/channels_readHistory.md +++ b/old_docs/API_docs_v70/methods/channels_readHistory.md @@ -25,6 +25,7 @@ description: channels.readHistory parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_reportSpam.md b/old_docs/API_docs_v70/methods/channels_reportSpam.md index d04a6987..9b90ad2d 100644 --- a/old_docs/API_docs_v70/methods/channels_reportSpam.md +++ b/old_docs/API_docs_v70/methods/channels_reportSpam.md @@ -26,6 +26,7 @@ description: channels.reportSpam parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_toggleInvites.md b/old_docs/API_docs_v70/methods/channels_toggleInvites.md index b6f8b2a8..5419df50 100644 --- a/old_docs/API_docs_v70/methods/channels_toggleInvites.md +++ b/old_docs/API_docs_v70/methods/channels_toggleInvites.md @@ -25,6 +25,7 @@ description: channels.toggleInvites parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_toggleSignatures.md b/old_docs/API_docs_v70/methods/channels_toggleSignatures.md index e77879b0..a214b849 100644 --- a/old_docs/API_docs_v70/methods/channels_toggleSignatures.md +++ b/old_docs/API_docs_v70/methods/channels_toggleSignatures.md @@ -25,6 +25,7 @@ description: channels.toggleSignatures parameters, return type and example |----------|---------------| |CHANNEL_INVALID|The provided channel is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md b/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md index 4cff44d2..7376df10 100644 --- a/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md +++ b/old_docs/API_docs_v70/methods/channels_updatePinnedMessage.md @@ -24,7 +24,10 @@ description: channels.updatePinnedMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_NOT_MODIFIED|The pinned message wasn't modified| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_NOT_MODIFIED|The pinned message wasn't modified| + ### Example: diff --git a/old_docs/API_docs_v70/methods/channels_updateUsername.md b/old_docs/API_docs_v70/methods/channels_updateUsername.md index 177ab75c..4e0b9053 100644 --- a/old_docs/API_docs_v70/methods/channels_updateUsername.md +++ b/old_docs/API_docs_v70/methods/channels_updateUsername.md @@ -23,7 +23,11 @@ description: channels.updateUsername parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||USERNAME_INVALID|The provided username is not valid||USERNAME_OCCUPIED|The provided username is already occupied| +|CHANNEL_INVALID|The provided channel is invalid| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|USERNAME_INVALID|The provided username is not valid| +|USERNAME_OCCUPIED|The provided username is already occupied| + ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_block.md b/old_docs/API_docs_v70/methods/contacts_block.md index c9bcffac..d9d58e37 100644 --- a/old_docs/API_docs_v70/methods/contacts_block.md +++ b/old_docs/API_docs_v70/methods/contacts_block.md @@ -24,6 +24,7 @@ description: contacts.block parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_deleteContact.md b/old_docs/API_docs_v70/methods/contacts_deleteContact.md index 249e0bd8..cd8c17ad 100644 --- a/old_docs/API_docs_v70/methods/contacts_deleteContact.md +++ b/old_docs/API_docs_v70/methods/contacts_deleteContact.md @@ -24,6 +24,7 @@ description: contacts.deleteContact parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_deleteContacts.md b/old_docs/API_docs_v70/methods/contacts_deleteContacts.md index 599e11c0..f606dd25 100644 --- a/old_docs/API_docs_v70/methods/contacts_deleteContacts.md +++ b/old_docs/API_docs_v70/methods/contacts_deleteContacts.md @@ -24,6 +24,7 @@ description: contacts.deleteContacts parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_getTopPeers.md b/old_docs/API_docs_v70/methods/contacts_getTopPeers.md index 2f83ea7f..cbd64cc0 100644 --- a/old_docs/API_docs_v70/methods/contacts_getTopPeers.md +++ b/old_docs/API_docs_v70/methods/contacts_getTopPeers.md @@ -32,6 +32,7 @@ description: contacts.getTopPeers parameters, return type and example |----------|---------------| |TYPES_EMPTY|The types field is empty| + ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_importCard.md b/old_docs/API_docs_v70/methods/contacts_importCard.md index b2b10e1b..1673b210 100644 --- a/old_docs/API_docs_v70/methods/contacts_importCard.md +++ b/old_docs/API_docs_v70/methods/contacts_importCard.md @@ -24,6 +24,7 @@ description: contacts.importCard parameters, return type and example |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md b/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md index 70a9e958..738494b2 100644 --- a/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md +++ b/old_docs/API_docs_v70/methods/contacts_resetTopPeerRating.md @@ -25,6 +25,7 @@ description: contacts.resetTopPeerRating parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_search.md b/old_docs/API_docs_v70/methods/contacts_search.md index 48c9d128..9fc09dd2 100644 --- a/old_docs/API_docs_v70/methods/contacts_search.md +++ b/old_docs/API_docs_v70/methods/contacts_search.md @@ -23,7 +23,9 @@ description: contacts.search parameters, return type and example | Error | Description | |----------|---------------| -|QUERY_TOO_SHORT|The query string is too short||SEARCH_QUERY_EMPTY|The search query is empty| +|QUERY_TOO_SHORT|The query string is too short| +|SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v70/methods/contacts_unblock.md b/old_docs/API_docs_v70/methods/contacts_unblock.md index b8cae62c..a1977c24 100644 --- a/old_docs/API_docs_v70/methods/contacts_unblock.md +++ b/old_docs/API_docs_v70/methods/contacts_unblock.md @@ -24,6 +24,7 @@ description: contacts.unblock parameters, return type and example |----------|---------------| |CONTACT_ID_INVALID|The provided contact ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/initConnection.md b/old_docs/API_docs_v70/methods/initConnection.md index 6de9ef77..c09d0684 100644 --- a/old_docs/API_docs_v70/methods/initConnection.md +++ b/old_docs/API_docs_v70/methods/initConnection.md @@ -31,6 +31,7 @@ description: initConnection parameters, return type and example |----------|---------------| |INPUT_FETCH_FAIL|Failed deserializing TL payload| + ### Example: diff --git a/old_docs/API_docs_v70/methods/invokeWithLayer.md b/old_docs/API_docs_v70/methods/invokeWithLayer.md index bbccdf5d..48663a68 100644 --- a/old_docs/API_docs_v70/methods/invokeWithLayer.md +++ b/old_docs/API_docs_v70/methods/invokeWithLayer.md @@ -23,8 +23,10 @@ description: invokeWithLayer parameters, return type and example | Error | Description | |----------|---------------| +|AUTH_BYTES_INVALID|The provided authorization is invalid| |INPUT_LAYER_INVALID|The provided layer is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/langpack_getDifference.md b/old_docs/API_docs_v70/methods/langpack_getDifference.md index e1da920b..2e77cc3b 100644 --- a/old_docs/API_docs_v70/methods/langpack_getDifference.md +++ b/old_docs/API_docs_v70/methods/langpack_getDifference.md @@ -24,6 +24,7 @@ description: langpack.getDifference parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/langpack_getLangPack.md b/old_docs/API_docs_v70/methods/langpack_getLangPack.md index 89c47e22..5d4d0b81 100644 --- a/old_docs/API_docs_v70/methods/langpack_getLangPack.md +++ b/old_docs/API_docs_v70/methods/langpack_getLangPack.md @@ -24,6 +24,7 @@ description: langpack.getLangPack parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/langpack_getLanguages.md b/old_docs/API_docs_v70/methods/langpack_getLanguages.md index 8f9c376a..abaa0de3 100644 --- a/old_docs/API_docs_v70/methods/langpack_getLanguages.md +++ b/old_docs/API_docs_v70/methods/langpack_getLanguages.md @@ -19,6 +19,7 @@ description: langpack.getLanguages parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/langpack_getStrings.md b/old_docs/API_docs_v70/methods/langpack_getStrings.md index c3e18ecd..9bb740dc 100644 --- a/old_docs/API_docs_v70/methods/langpack_getStrings.md +++ b/old_docs/API_docs_v70/methods/langpack_getStrings.md @@ -25,6 +25,7 @@ description: langpack.getStrings parameters, return type and example |----------|---------------| |LANG_PACK_INVALID|The provided language pack is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_addChatUser.md b/old_docs/API_docs_v70/methods/messages_addChatUser.md index 76f21e0b..d0d6167b 100644 --- a/old_docs/API_docs_v70/methods/messages_addChatUser.md +++ b/old_docs/API_docs_v70/methods/messages_addChatUser.md @@ -24,7 +24,13 @@ description: messages.addChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USER_ID_INVALID|The provided user ID is invalid||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|CHAT_ID_INVALID|The provided chat id is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USER_ID_INVALID|The provided user ID is invalid| +|USER_NOT_MUTUAL_CONTACT|The provided user is not a mutual contact| +|USER_PRIVACY_RESTRICTED|The user's privacy settings do not allow you to do this| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_checkChatInvite.md b/old_docs/API_docs_v70/methods/messages_checkChatInvite.md index ec4168bf..c5eb1c06 100644 --- a/old_docs/API_docs_v70/methods/messages_checkChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_checkChatInvite.md @@ -23,6 +23,9 @@ description: messages.checkChatInvite parameters, return type and example | Error | Description | |----------|---------------| |INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_createChat.md b/old_docs/API_docs_v70/methods/messages_createChat.md index fe22b00a..f74c239e 100644 --- a/old_docs/API_docs_v70/methods/messages_createChat.md +++ b/old_docs/API_docs_v70/methods/messages_createChat.md @@ -23,7 +23,9 @@ description: messages.createChat parameters, return type and example | Error | Description | |----------|---------------| -|USER_RESTRICTED|You're spamreported, you can't create channels or chats.||USERS_TOO_FEW|Not enough users (to create a chat, for example)| +|USER_RESTRICTED|You're spamreported, you can't create channels or chats.| +|USERS_TOO_FEW|Not enough users (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_deleteChatUser.md b/old_docs/API_docs_v70/methods/messages_deleteChatUser.md index fc8f7ae8..3d75d9cf 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteChatUser.md +++ b/old_docs/API_docs_v70/methods/messages_deleteChatUser.md @@ -23,7 +23,10 @@ description: messages.deleteChatUser parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_NOT_PARTICIPANT|You're not a member of this supergroup/channel| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_deleteHistory.md b/old_docs/API_docs_v70/methods/messages_deleteHistory.md index 009e39c0..ce6ba6e7 100644 --- a/old_docs/API_docs_v70/methods/messages_deleteHistory.md +++ b/old_docs/API_docs_v70/methods/messages_deleteHistory.md @@ -26,6 +26,7 @@ description: messages.deleteHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_editChatAdmin.md b/old_docs/API_docs_v70/methods/messages_editChatAdmin.md index b5a96b00..e64d9da5 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatAdmin.md +++ b/old_docs/API_docs_v70/methods/messages_editChatAdmin.md @@ -26,6 +26,7 @@ description: messages.editChatAdmin parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_editChatPhoto.md b/old_docs/API_docs_v70/methods/messages_editChatPhoto.md index 7c3df45a..0bd5bef5 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatPhoto.md +++ b/old_docs/API_docs_v70/methods/messages_editChatPhoto.md @@ -23,7 +23,9 @@ description: messages.editChatPhoto parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_editChatTitle.md b/old_docs/API_docs_v70/methods/messages_editChatTitle.md index 9c203aa7..88146cd8 100644 --- a/old_docs/API_docs_v70/methods/messages_editChatTitle.md +++ b/old_docs/API_docs_v70/methods/messages_editChatTitle.md @@ -25,6 +25,7 @@ description: messages.editChatTitle parameters, return type and example |----------|---------------| |NEED_CHAT_INVALID|The provided chat is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md b/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md index a3fdbc64..621c81a3 100644 --- a/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md +++ b/old_docs/API_docs_v70/methods/messages_editInlineBotMessage.md @@ -27,7 +27,9 @@ description: messages.editInlineBotMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_NOT_MODIFIED|The message text has not changed| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_editMessage.md b/old_docs/API_docs_v70/methods/messages_editMessage.md index adc88b5a..1c3a8525 100644 --- a/old_docs/API_docs_v70/methods/messages_editMessage.md +++ b/old_docs/API_docs_v70/methods/messages_editMessage.md @@ -28,7 +28,10 @@ description: messages.editMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_NOT_MODIFIED|The message text has not changed| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_exportChatInvite.md b/old_docs/API_docs_v70/methods/messages_exportChatInvite.md index cd5c23a7..4a6e28ff 100644 --- a/old_docs/API_docs_v70/methods/messages_exportChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_exportChatInvite.md @@ -24,6 +24,7 @@ description: messages.exportChatInvite parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessage.md b/old_docs/API_docs_v70/methods/messages_forwardMessage.md index 9fed97e7..22590a02 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessage.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessage.md @@ -23,7 +23,9 @@ description: messages.forwardMessage parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_forwardMessages.md b/old_docs/API_docs_v70/methods/messages_forwardMessages.md index bdb38317..d5ad680d 100644 --- a/old_docs/API_docs_v70/methods/messages_forwardMessages.md +++ b/old_docs/API_docs_v70/methods/messages_forwardMessages.md @@ -27,7 +27,14 @@ description: messages.forwardMessages parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_ID_INVALID|The provided message id is invalid||MESSAGE_IDS_EMPTY|No message ids were provided||PEER_ID_INVALID|The provided peer id is invalid||RANDOM_ID_DUPLICATE|You provided a random ID that was already used||Timeout|A timeout occurred while fetching data from the bot| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|MESSAGE_IDS_EMPTY|No message ids were provided| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md b/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md index 53764b17..a8525987 100644 --- a/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md +++ b/old_docs/API_docs_v70/methods/messages_getBotCallbackAnswer.md @@ -25,7 +25,10 @@ description: messages.getBotCallbackAnswer parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||PEER_ID_INVALID|The provided peer id is invalid||Timeout|A timeout occurred while fetching data from the bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getChats.md b/old_docs/API_docs_v70/methods/messages_getChats.md index 4866ed19..6fa30cbd 100644 --- a/old_docs/API_docs_v70/methods/messages_getChats.md +++ b/old_docs/API_docs_v70/methods/messages_getChats.md @@ -22,7 +22,9 @@ description: messages.getChats parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getCommonChats.md b/old_docs/API_docs_v70/methods/messages_getCommonChats.md index efd905ff..0c601ca9 100644 --- a/old_docs/API_docs_v70/methods/messages_getCommonChats.md +++ b/old_docs/API_docs_v70/methods/messages_getCommonChats.md @@ -26,6 +26,7 @@ description: messages.getCommonChats parameters, return type and example |----------|---------------| |USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getDhConfig.md b/old_docs/API_docs_v70/methods/messages_getDhConfig.md index 8a4094bc..aac3354d 100644 --- a/old_docs/API_docs_v70/methods/messages_getDhConfig.md +++ b/old_docs/API_docs_v70/methods/messages_getDhConfig.md @@ -25,6 +25,7 @@ description: messages.getDhConfig parameters, return type and example |----------|---------------| |RANDOM_LENGTH_INVALID|Random length invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getDialogs.md b/old_docs/API_docs_v70/methods/messages_getDialogs.md index a0ffc327..b79d9428 100644 --- a/old_docs/API_docs_v70/methods/messages_getDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_getDialogs.md @@ -26,8 +26,10 @@ description: messages.getDialogs parameters, return type and example | Error | Description | |----------|---------------| +|OFFSET_PEER_ID_INVALID|The provided offset peer is invalid| |SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md b/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md index 65146bb2..dda54bdd 100644 --- a/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md +++ b/old_docs/API_docs_v70/methods/messages_getDocumentByHash.md @@ -26,6 +26,7 @@ description: messages.getDocumentByHash parameters, return type and example |----------|---------------| |SHA256_HASH_INVALID|The provided SHA256 hash is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getGameHighScores.md b/old_docs/API_docs_v70/methods/messages_getGameHighScores.md index 602bf5e8..935bb95a 100644 --- a/old_docs/API_docs_v70/methods/messages_getGameHighScores.md +++ b/old_docs/API_docs_v70/methods/messages_getGameHighScores.md @@ -24,7 +24,9 @@ description: messages.getGameHighScores parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getHistory.md b/old_docs/API_docs_v70/methods/messages_getHistory.md index f8232d25..00972412 100644 --- a/old_docs/API_docs_v70/methods/messages_getHistory.md +++ b/old_docs/API_docs_v70/methods/messages_getHistory.md @@ -28,7 +28,11 @@ description: messages.getHistory parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_PRIVATE|You haven't joined this channel/supergroup||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md b/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md index 259408a8..ad41660e 100644 --- a/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md +++ b/old_docs/API_docs_v70/methods/messages_getInlineBotResults.md @@ -26,7 +26,10 @@ description: messages.getInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|BOT_INLINE_DISABLED|This bot can't be used in inline mode||BOT_INVALID|This is not a valid bot||Timeout|A timeout occurred while fetching data from the bot| +|BOT_INLINE_DISABLED|This bot can't be used in inline mode| +|BOT_INVALID|This is not a valid bot| +|Timeout|A timeout occurred while fetching data from the bot| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md b/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md index 9f66fb76..7cc04d0d 100644 --- a/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md +++ b/old_docs/API_docs_v70/methods/messages_getInlineGameHighScores.md @@ -23,7 +23,9 @@ description: messages.getInlineGameHighScores parameters, return type and exampl | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getMessageEditData.md b/old_docs/API_docs_v70/methods/messages_getMessageEditData.md index 62e130c8..4e20a108 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessageEditData.md +++ b/old_docs/API_docs_v70/methods/messages_getMessageEditData.md @@ -23,7 +23,9 @@ description: messages.getMessageEditData parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_AUTHOR_REQUIRED|Message author required||PEER_ID_INVALID|The provided peer id is invalid| +|MESSAGE_AUTHOR_REQUIRED|Message author required| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getMessagesViews.md b/old_docs/API_docs_v70/methods/messages_getMessagesViews.md index 45bf654d..c6044a89 100644 --- a/old_docs/API_docs_v70/methods/messages_getMessagesViews.md +++ b/old_docs/API_docs_v70/methods/messages_getMessagesViews.md @@ -26,6 +26,7 @@ description: messages.getMessagesViews parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md b/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md index 6eaf48ff..3da60038 100644 --- a/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_getPeerDialogs.md @@ -22,8 +22,10 @@ description: messages.getPeerDialogs parameters, return type and example | Error | Description | |----------|---------------| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getPeerSettings.md b/old_docs/API_docs_v70/methods/messages_getPeerSettings.md index b62bfd2c..6147fae7 100644 --- a/old_docs/API_docs_v70/methods/messages_getPeerSettings.md +++ b/old_docs/API_docs_v70/methods/messages_getPeerSettings.md @@ -24,6 +24,7 @@ description: messages.getPeerSettings parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_getStickerSet.md b/old_docs/API_docs_v70/methods/messages_getStickerSet.md index 9f133060..59f33916 100644 --- a/old_docs/API_docs_v70/methods/messages_getStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_getStickerSet.md @@ -24,6 +24,7 @@ description: messages.getStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_hideReportSpam.md b/old_docs/API_docs_v70/methods/messages_hideReportSpam.md index 4bfe8ab1..2dfe4dd7 100644 --- a/old_docs/API_docs_v70/methods/messages_hideReportSpam.md +++ b/old_docs/API_docs_v70/methods/messages_hideReportSpam.md @@ -24,6 +24,7 @@ description: messages.hideReportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_importChatInvite.md b/old_docs/API_docs_v70/methods/messages_importChatInvite.md index 06e75616..902298ff 100644 --- a/old_docs/API_docs_v70/methods/messages_importChatInvite.md +++ b/old_docs/API_docs_v70/methods/messages_importChatInvite.md @@ -22,7 +22,12 @@ description: messages.importChatInvite parameters, return type and example | Error | Description | |----------|---------------| -|INVITE_HASH_EMPTY|The invite hash is empty||INVITE_HASH_EXPIRED|The invite link has expired||INVITE_HASH_INVALID|The invite hash is invalid||USER_ALREADY_PARTICIPANT|The user is already in the group||USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| +|INVITE_HASH_EMPTY|The invite hash is empty| +|INVITE_HASH_EXPIRED|The invite link has expired| +|INVITE_HASH_INVALID|The invite hash is invalid| +|USER_ALREADY_PARTICIPANT|The user is already in the group| +|USERS_TOO_MUCH|The maximum number of users has been exceeded (to create a chat, for example)| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_installStickerSet.md b/old_docs/API_docs_v70/methods/messages_installStickerSet.md index c0cfa607..3dde52a7 100644 --- a/old_docs/API_docs_v70/methods/messages_installStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_installStickerSet.md @@ -25,6 +25,7 @@ description: messages.installStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_migrateChat.md b/old_docs/API_docs_v70/methods/messages_migrateChat.md index bd096e90..00f262d5 100644 --- a/old_docs/API_docs_v70/methods/messages_migrateChat.md +++ b/old_docs/API_docs_v70/methods/messages_migrateChat.md @@ -22,7 +22,9 @@ description: messages.migrateChat parameters, return type and example | Error | Description | |----------|---------------| -|CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHAT_ID_INVALID|The provided chat id is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md b/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md index 5e350960..766ee07d 100644 --- a/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md +++ b/old_docs/API_docs_v70/methods/messages_readEncryptedHistory.md @@ -25,6 +25,7 @@ description: messages.readEncryptedHistory parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_readHistory.md b/old_docs/API_docs_v70/methods/messages_readHistory.md index ad0492e8..3c1da836 100644 --- a/old_docs/API_docs_v70/methods/messages_readHistory.md +++ b/old_docs/API_docs_v70/methods/messages_readHistory.md @@ -25,6 +25,7 @@ description: messages.readHistory parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_receivedQueue.md b/old_docs/API_docs_v70/methods/messages_receivedQueue.md index 51453efa..3c7f1d4f 100644 --- a/old_docs/API_docs_v70/methods/messages_receivedQueue.md +++ b/old_docs/API_docs_v70/methods/messages_receivedQueue.md @@ -24,6 +24,7 @@ description: messages.receivedQueue parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md b/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md index 72a278f5..30102fd7 100644 --- a/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md +++ b/old_docs/API_docs_v70/methods/messages_reorderPinnedDialogs.md @@ -25,6 +25,7 @@ description: messages.reorderPinnedDialogs parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md b/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md index 8fbc8649..30ef3473 100644 --- a/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md +++ b/old_docs/API_docs_v70/methods/messages_reportEncryptedSpam.md @@ -24,6 +24,7 @@ description: messages.reportEncryptedSpam parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_reportSpam.md b/old_docs/API_docs_v70/methods/messages_reportSpam.md index 30cb42a0..bfadb9ab 100644 --- a/old_docs/API_docs_v70/methods/messages_reportSpam.md +++ b/old_docs/API_docs_v70/methods/messages_reportSpam.md @@ -24,6 +24,7 @@ description: messages.reportSpam parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_saveDraft.md b/old_docs/API_docs_v70/methods/messages_saveDraft.md index 5c9d4b8f..42308b46 100644 --- a/old_docs/API_docs_v70/methods/messages_saveDraft.md +++ b/old_docs/API_docs_v70/methods/messages_saveDraft.md @@ -29,6 +29,7 @@ description: messages.saveDraft parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_saveGif.md b/old_docs/API_docs_v70/methods/messages_saveGif.md index 9893c9b3..31e48632 100644 --- a/old_docs/API_docs_v70/methods/messages_saveGif.md +++ b/old_docs/API_docs_v70/methods/messages_saveGif.md @@ -25,6 +25,7 @@ description: messages.saveGif parameters, return type and example |----------|---------------| |GIF_ID_INVALID|The provided GIF ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md b/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md index 45caff91..8d45be5e 100644 --- a/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md +++ b/old_docs/API_docs_v70/methods/messages_saveRecentSticker.md @@ -26,6 +26,7 @@ description: messages.saveRecentSticker parameters, return type and example |----------|---------------| |STICKER_ID_INVALID|The provided sticker ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_search.md b/old_docs/API_docs_v70/methods/messages_search.md index 095de085..ab888435 100644 --- a/old_docs/API_docs_v70/methods/messages_search.md +++ b/old_docs/API_docs_v70/methods/messages_search.md @@ -30,7 +30,9 @@ description: messages.search parameters, return type and example | Error | Description | |----------|---------------| -|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|INPUT_CONSTRUCTOR_INVALID|The provided constructor is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_searchGifs.md b/old_docs/API_docs_v70/methods/messages_searchGifs.md index 9ab08068..3f4c4838 100644 --- a/old_docs/API_docs_v70/methods/messages_searchGifs.md +++ b/old_docs/API_docs_v70/methods/messages_searchGifs.md @@ -25,6 +25,7 @@ description: messages.searchGifs parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_searchGlobal.md b/old_docs/API_docs_v70/methods/messages_searchGlobal.md index 1d919a4b..0553dd7a 100644 --- a/old_docs/API_docs_v70/methods/messages_searchGlobal.md +++ b/old_docs/API_docs_v70/methods/messages_searchGlobal.md @@ -28,6 +28,7 @@ description: messages.searchGlobal parameters, return type and example |----------|---------------| |SEARCH_QUERY_EMPTY|The search query is empty| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendEncrypted.md b/old_docs/API_docs_v70/methods/messages_sendEncrypted.md index 05d56922..388243c8 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncrypted.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncrypted.md @@ -23,7 +23,9 @@ description: messages.sendEncrypted parameters, return type and example | Error | Description | |----------|---------------| -|DATA_INVALID|Encrypted data invalid||MSG_WAIT_FAILED|A waiting call returned an error| +|DATA_INVALID|Encrypted data invalid| +|MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md b/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md index 84726d74..8f7a73d9 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncryptedFile.md @@ -26,6 +26,7 @@ description: messages.sendEncryptedFile parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md index 04d2b4ea..557c6004 100644 --- a/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md +++ b/old_docs/API_docs_v70/methods/messages_sendEncryptedService.md @@ -25,6 +25,7 @@ description: messages.sendEncryptedService parameters, return type and example |----------|---------------| |MSG_WAIT_FAILED|A waiting call returned an error| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md b/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md index 74925e93..bdb08f80 100644 --- a/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md +++ b/old_docs/API_docs_v70/methods/messages_sendInlineBotResult.md @@ -28,7 +28,9 @@ description: messages.sendInlineBotResult parameters, return type and example | Error | Description | |----------|---------------| -|INLINE_RESULT_EXPIRED|The inline query expired||QUERY_ID_EMPTY|The query ID is empty| +|INLINE_RESULT_EXPIRED|The inline query expired| +|QUERY_ID_EMPTY|The query ID is empty| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendMedia.md b/old_docs/API_docs_v70/methods/messages_sendMedia.md index 0f9a9fd2..1888a271 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMedia.md +++ b/old_docs/API_docs_v70/methods/messages_sendMedia.md @@ -28,7 +28,15 @@ description: messages.sendMedia parameters, return type and example | Error | Description | |----------|---------------| -|FILE_PARTS_INVALID|The number of file parts is invalid||MEDIA_CAPTION_TOO_LONG|The caption is too long||MEDIA_EMPTY|The provided media object is invalid||PEER_ID_INVALID|The provided peer id is invalid||PHOTO_EXT_INVALID|The extension of the photo is invalid||STORAGE_CHECK_FAILED|Server storage check failed||WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|FILE_PARTS_INVALID|The number of file parts is invalid| +|MEDIA_CAPTION_TOO_LONG|The caption is too long| +|MEDIA_EMPTY|The provided media object is invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|PHOTO_EXT_INVALID|The extension of the photo is invalid| +|STORAGE_CHECK_FAILED|Server storage check failed| +|WEBPAGE_CURL_FAILED|Failure while fetching the webpage with cURL| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendMessage.md b/old_docs/API_docs_v70/methods/messages_sendMessage.md index 83ab594e..7e2a71fa 100644 --- a/old_docs/API_docs_v70/methods/messages_sendMessage.md +++ b/old_docs/API_docs_v70/methods/messages_sendMessage.md @@ -31,7 +31,22 @@ description: messages.sendMessage parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this||CHAT_WRITE_FORBIDDEN|You can't write in this chat||MESSAGE_EMPTY|The provided message is empty||PEER_ID_INVALID|The provided peer id is invalid||USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels||USER_IS_BLOCKED|User is blocked||USER_IS_BOT|Bots can't send messages to other bots||YOU_BLOCKED_USER|You blocked this user| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ADMIN_REQUIRED|You must be an admin in this chat to do this| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|INPUT_USER_DEACTIVATED|The specified user was deleted| +|MESSAGE_EMPTY|The provided message is empty| +|MESSAGE_TOO_LONG|The provided message is too long| +|PEER_ID_INVALID|The provided peer id is invalid| +|RANDOM_ID_DUPLICATE|You provided a random ID that was already used| +|USER_BANNED_IN_CHANNEL|You're banned from sending messages in supergroups/channels| +|USER_IS_BLOCKED|User is blocked| +|USER_IS_BOT|Bots can't send messages to other bots| +|YOU_BLOCKED_USER|You blocked this user| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md b/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md index ea0390d3..a725a12b 100644 --- a/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md +++ b/old_docs/API_docs_v70/methods/messages_sendScreenshotNotification.md @@ -25,6 +25,7 @@ description: messages.sendScreenshotNotification parameters, return type and exa |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md b/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md index a0610ec0..2c51854f 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md +++ b/old_docs/API_docs_v70/methods/messages_setBotCallbackAnswer.md @@ -28,6 +28,7 @@ description: messages.setBotCallbackAnswer parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md b/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md index c8dff6f6..25ed5ed5 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md +++ b/old_docs/API_docs_v70/methods/messages_setBotPrecheckoutResults.md @@ -26,6 +26,7 @@ description: messages.setBotPrecheckoutResults parameters, return type and examp |----------|---------------| |ERROR_TEXT_EMPTY|The provided error message is empty| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md b/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md index bc6aaebd..49ac2896 100644 --- a/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md +++ b/old_docs/API_docs_v70/methods/messages_setBotShippingResults.md @@ -26,6 +26,7 @@ description: messages.setBotShippingResults parameters, return type and example |----------|---------------| |QUERY_ID_INVALID|The query ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md b/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md index fbae16b0..a05b94dd 100644 --- a/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md +++ b/old_docs/API_docs_v70/methods/messages_setEncryptedTyping.md @@ -25,6 +25,7 @@ description: messages.setEncryptedTyping parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setGameScore.md b/old_docs/API_docs_v70/methods/messages_setGameScore.md index 587e0a60..3137f7c9 100644 --- a/old_docs/API_docs_v70/methods/messages_setGameScore.md +++ b/old_docs/API_docs_v70/methods/messages_setGameScore.md @@ -27,7 +27,9 @@ description: messages.setGameScore parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md b/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md index 423d8b69..8b5625f3 100644 --- a/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md +++ b/old_docs/API_docs_v70/methods/messages_setInlineBotResults.md @@ -28,7 +28,18 @@ description: messages.setInlineBotResults parameters, return type and example | Error | Description | |----------|---------------| -|ARTICLE_TITLE_EMPTY|The title of the article is empty||BUTTON_DATA_INVALID|The provided button data is invalid||BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid||BUTTON_URL_INVALID|Button URL invalid||MESSAGE_EMPTY|The provided message is empty||QUERY_ID_INVALID|The query ID is invalid||REPLY_MARKUP_INVALID|The provided reply markup is invalid||RESULT_TYPE_INVALID|Result type invalid||SEND_MESSAGE_TYPE_INVALID|The message type is invalid||START_PARAM_INVALID|Start parameter invalid||USER_BOT_INVALID|This method can only be called by a bot| +|ARTICLE_TITLE_EMPTY|The title of the article is empty| +|BUTTON_DATA_INVALID|The provided button data is invalid| +|BUTTON_TYPE_INVALID|The type of one of the buttons you provided is invalid| +|BUTTON_URL_INVALID|Button URL invalid| +|MESSAGE_EMPTY|The provided message is empty| +|QUERY_ID_INVALID|The query ID is invalid| +|REPLY_MARKUP_INVALID|The provided reply markup is invalid| +|RESULT_TYPE_INVALID|Result type invalid| +|SEND_MESSAGE_TYPE_INVALID|The message type is invalid| +|START_PARAM_INVALID|Start parameter invalid| +|USER_BOT_INVALID|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md b/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md index ddb7ba31..36752f35 100644 --- a/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md +++ b/old_docs/API_docs_v70/methods/messages_setInlineGameScore.md @@ -26,7 +26,9 @@ description: messages.setInlineGameScore parameters, return type and example | Error | Description | |----------|---------------| -|MESSAGE_ID_INVALID|The provided message id is invalid||USER_BOT_REQUIRED|This method can only be called by a bot| +|MESSAGE_ID_INVALID|The provided message id is invalid| +|USER_BOT_REQUIRED|This method can only be called by a bot| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_setTyping.md b/old_docs/API_docs_v70/methods/messages_setTyping.md index e20b126c..3eff041b 100644 --- a/old_docs/API_docs_v70/methods/messages_setTyping.md +++ b/old_docs/API_docs_v70/methods/messages_setTyping.md @@ -23,7 +23,12 @@ description: messages.setTyping parameters, return type and example | Error | Description | |----------|---------------| -|CHANNEL_INVALID|The provided channel is invalid||CHANNEL_PRIVATE|You haven't joined this channel/supergroup||CHAT_ID_INVALID|The provided chat id is invalid||PEER_ID_INVALID|The provided peer id is invalid| +|CHANNEL_INVALID|The provided channel is invalid| +|CHANNEL_PRIVATE|You haven't joined this channel/supergroup| +|CHAT_ID_INVALID|The provided chat id is invalid| +|CHAT_WRITE_FORBIDDEN|You can't write in this chat| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_startBot.md b/old_docs/API_docs_v70/methods/messages_startBot.md index 3203d211..bfba0a2e 100644 --- a/old_docs/API_docs_v70/methods/messages_startBot.md +++ b/old_docs/API_docs_v70/methods/messages_startBot.md @@ -24,7 +24,10 @@ description: messages.startBot parameters, return type and example | Error | Description | |----------|---------------| -|PEER_ID_INVALID|The provided peer id is invalid||START_PARAM_EMPTY|The start parameter is empty||START_PARAM_INVALID|Start parameter invalid| +|PEER_ID_INVALID|The provided peer id is invalid| +|START_PARAM_EMPTY|The start parameter is empty| +|START_PARAM_INVALID|Start parameter invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md b/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md index 53684128..b8d768f5 100644 --- a/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md +++ b/old_docs/API_docs_v70/methods/messages_toggleChatAdmins.md @@ -25,6 +25,7 @@ description: messages.toggleChatAdmins parameters, return type and example |----------|---------------| |CHAT_ID_INVALID|The provided chat id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md b/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md index 82326978..f35f2f40 100644 --- a/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md +++ b/old_docs/API_docs_v70/methods/messages_toggleDialogPin.md @@ -25,6 +25,7 @@ description: messages.toggleDialogPin parameters, return type and example |----------|---------------| |PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md b/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md index dee50742..6763e64f 100644 --- a/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md +++ b/old_docs/API_docs_v70/methods/messages_uninstallStickerSet.md @@ -24,6 +24,7 @@ description: messages.uninstallStickerSet parameters, return type and example |----------|---------------| |STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/messages_uploadMedia.md b/old_docs/API_docs_v70/methods/messages_uploadMedia.md index 24f004c8..9f3f91ff 100644 --- a/old_docs/API_docs_v70/methods/messages_uploadMedia.md +++ b/old_docs/API_docs_v70/methods/messages_uploadMedia.md @@ -23,7 +23,9 @@ description: messages.uploadMedia parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||PEER_ID_INVALID|The provided peer id is invalid| +|BOT_MISSING|This method can only be run by a bot| +|PEER_ID_INVALID|The provided peer id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/payments_getPaymentForm.md b/old_docs/API_docs_v70/methods/payments_getPaymentForm.md index e8be5464..15f6e26b 100644 --- a/old_docs/API_docs_v70/methods/payments_getPaymentForm.md +++ b/old_docs/API_docs_v70/methods/payments_getPaymentForm.md @@ -24,6 +24,7 @@ description: payments.getPaymentForm parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md b/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md index 7331d5eb..51433563 100644 --- a/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md +++ b/old_docs/API_docs_v70/methods/payments_getPaymentReceipt.md @@ -24,6 +24,7 @@ description: payments.getPaymentReceipt parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md b/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md index 66788ffd..a63a3980 100644 --- a/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md +++ b/old_docs/API_docs_v70/methods/payments_sendPaymentForm.md @@ -27,6 +27,7 @@ description: payments.sendPaymentForm parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md b/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md index 05285a37..d839a2df 100644 --- a/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md +++ b/old_docs/API_docs_v70/methods/payments_validateRequestedInfo.md @@ -26,6 +26,7 @@ description: payments.validateRequestedInfo parameters, return type and example |----------|---------------| |MESSAGE_ID_INVALID|The provided message id is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/phone_receivedCall.md b/old_docs/API_docs_v70/methods/phone_receivedCall.md index 71a1f0f9..765be909 100644 --- a/old_docs/API_docs_v70/methods/phone_receivedCall.md +++ b/old_docs/API_docs_v70/methods/phone_receivedCall.md @@ -24,6 +24,7 @@ description: phone.receivedCall parameters, return type and example |----------|---------------| |CALL_PEER_INVALID|The provided call peer object is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/phone_saveCallDebug.md b/old_docs/API_docs_v70/methods/phone_saveCallDebug.md index 7b62c78c..4dee5c97 100644 --- a/old_docs/API_docs_v70/methods/phone_saveCallDebug.md +++ b/old_docs/API_docs_v70/methods/phone_saveCallDebug.md @@ -23,7 +23,9 @@ description: phone.saveCallDebug parameters, return type and example | Error | Description | |----------|---------------| -|CALL_PEER_INVALID|The provided call peer object is invalid||DATA_JSON_INVALID|The provided JSON data is invalid| +|CALL_PEER_INVALID|The provided call peer object is invalid| +|DATA_JSON_INVALID|The provided JSON data is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/phone_setCallRating.md b/old_docs/API_docs_v70/methods/phone_setCallRating.md index d2fa4acc..fea236d1 100644 --- a/old_docs/API_docs_v70/methods/phone_setCallRating.md +++ b/old_docs/API_docs_v70/methods/phone_setCallRating.md @@ -26,6 +26,7 @@ description: phone.setCallRating parameters, return type and example |----------|---------------| |CALL_PEER_INVALID|The provided call peer object is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/photos_getUserPhotos.md b/old_docs/API_docs_v70/methods/photos_getUserPhotos.md index eb56db90..d6c2a380 100644 --- a/old_docs/API_docs_v70/methods/photos_getUserPhotos.md +++ b/old_docs/API_docs_v70/methods/photos_getUserPhotos.md @@ -25,7 +25,9 @@ description: photos.getUserPhotos parameters, return type and example | Error | Description | |----------|---------------| -|MAX_ID_INVALID|The provided max ID is invalid||USER_ID_INVALID|The provided user ID is invalid| +|MAX_ID_INVALID|The provided max ID is invalid| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md index b8c6ad66..0bb06b1d 100644 --- a/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md +++ b/old_docs/API_docs_v70/methods/photos_uploadProfilePhoto.md @@ -23,6 +23,8 @@ description: photos.uploadProfilePhoto parameters, return type and example | Error | Description | |----------|---------------| |FILE_PARTS_INVALID|The number of file parts is invalid| +|PHOTO_CROP_SIZE_SMALL|Photo is too small| + ### Example: diff --git a/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md b/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md index e02d05f9..bf62fa09 100644 --- a/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md +++ b/old_docs/API_docs_v70/methods/stickers_addStickerToSet.md @@ -23,7 +23,9 @@ description: stickers.addStickerToSet parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||STICKERSET_INVALID|The provided sticker set is invalid| +|BOT_MISSING|This method can only be run by a bot| +|STICKERSET_INVALID|The provided sticker set is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md b/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md index 8a920ec8..942d3a33 100644 --- a/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md +++ b/old_docs/API_docs_v70/methods/stickers_changeStickerPosition.md @@ -23,7 +23,9 @@ description: stickers.changeStickerPosition parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||STICKER_INVALID|The provided sticker is invalid| +|BOT_MISSING|This method can only be run by a bot| +|STICKER_INVALID|The provided sticker is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md index e396f531..4ca8cff7 100644 --- a/old_docs/API_docs_v70/methods/stickers_createStickerSet.md +++ b/old_docs/API_docs_v70/methods/stickers_createStickerSet.md @@ -26,7 +26,9 @@ description: stickers.createStickerSet parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||USER_ID_INVALID|The provided user ID is invalid| +|BOT_MISSING|This method can only be run by a bot| +|USER_ID_INVALID|The provided user ID is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md b/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md index 796d0817..51e52f95 100644 --- a/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md +++ b/old_docs/API_docs_v70/methods/stickers_removeStickerFromSet.md @@ -22,7 +22,9 @@ description: stickers.removeStickerFromSet parameters, return type and example | Error | Description | |----------|---------------| -|BOT_MISSING|This method can only be run by a bot||STICKER_INVALID|The provided sticker is invalid| +|BOT_MISSING|This method can only be run by a bot| +|STICKER_INVALID|The provided sticker is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/upload_getWebFile.md b/old_docs/API_docs_v70/methods/upload_getWebFile.md index a4eff18d..ec7c05b4 100644 --- a/old_docs/API_docs_v70/methods/upload_getWebFile.md +++ b/old_docs/API_docs_v70/methods/upload_getWebFile.md @@ -26,6 +26,7 @@ description: upload.getWebFile parameters, return type and example |----------|---------------| |LOCATION_INVALID|The provided location is invalid| + ### Example: diff --git a/old_docs/API_docs_v70/methods/users_getUsers.md b/old_docs/API_docs_v70/methods/users_getUsers.md index bf639973..def6a4d6 100644 --- a/old_docs/API_docs_v70/methods/users_getUsers.md +++ b/old_docs/API_docs_v70/methods/users_getUsers.md @@ -23,6 +23,8 @@ description: users.getUsers parameters, return type and example | Error | Description | |----------|---------------| |NEED_MEMBER_INVALID|The provided member is invalid| +|SESSION_PASSWORD_NEEDED|2FA is enabled, use a password to login| + ### Example: diff --git a/src/danog/MadelineProto/DocsBuilder/Methods.php b/src/danog/MadelineProto/DocsBuilder/Methods.php index 11dbcba6..47bbf456 100644 --- a/src/danog/MadelineProto/DocsBuilder/Methods.php +++ b/src/danog/MadelineProto/DocsBuilder/Methods.php @@ -177,7 +177,7 @@ description: '.$description.' |----------|---------------| '; foreach ($errors['result'][$data['method']] as $error) { - $example .= '|'.$error.'|'.$errors['human_result'][$error][0].'|'; + $example .= '|'.$error.'|'.$errors['human_result'][$error][0].'|'."\n"; } $example .= "\n\n"; } diff --git a/src/danog/MadelineProto/MTProto.php b/src/danog/MadelineProto/MTProto.php index abb62672..c12d4e64 100644 --- a/src/danog/MadelineProto/MTProto.php +++ b/src/danog/MadelineProto/MTProto.php @@ -584,7 +584,7 @@ class MTProto } if ($settings['app_info']['api_id'] < 20) { - $settings['connection_settings']['all']['protocol'] = 'obfuscated2'; +// $settings['connection_settings']['all']['protocol'] = 'obfuscated2'; } switch ($settings['logger']['logger_level']) { case 'ULTRA_VERBOSE': $settings['logger']['logger_level'] = 5; break;