From 42b994bbe543269072dcefa4421bdb4b828d8235 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 3 Sep 2019 16:27:12 +0200 Subject: [PATCH] Update index --- docs/API_docs/methods/index.md | 615 +++++++++++++++++++++++ docs/MTProto_docs/methods/index.md | 21 + docs/index.md | 307 +++++++++++ old_docs/API_docs_v100/methods/README.md | 607 ++++++++++++++++++++++ old_docs/API_docs_v102/methods/README.md | 613 ++++++++++++++++++++++ old_docs/API_docs_v103/methods/README.md | 613 ++++++++++++++++++++++ old_docs/API_docs_v104/methods/README.md | 615 +++++++++++++++++++++++ old_docs/API_docs_v18/methods/README.md | 177 +++++++ old_docs/API_docs_v23/methods/README.md | 201 ++++++++ old_docs/API_docs_v25/methods/README.md | 227 +++++++++ old_docs/API_docs_v27/methods/README.md | 239 +++++++++ old_docs/API_docs_v33/methods/README.md | 259 ++++++++++ old_docs/API_docs_v38/methods/README.md | 291 +++++++++++ old_docs/API_docs_v40/methods/README.md | 247 +++++++++ old_docs/API_docs_v41/methods/README.md | 301 +++++++++++ old_docs/API_docs_v42/methods/README.md | 299 +++++++++++ old_docs/API_docs_v44/methods/README.md | 309 ++++++++++++ old_docs/API_docs_v45/methods/README.md | 319 ++++++++++++ old_docs/API_docs_v46/methods/README.md | 319 ++++++++++++ old_docs/API_docs_v51/methods/README.md | 339 +++++++++++++ old_docs/API_docs_v53/methods/README.md | 343 +++++++++++++ old_docs/API_docs_v55/methods/README.md | 361 +++++++++++++ old_docs/API_docs_v57/methods/README.md | 371 ++++++++++++++ old_docs/API_docs_v62/methods/README.md | 397 +++++++++++++++ old_docs/API_docs_v65/methods/README.md | 447 ++++++++++++++++ old_docs/API_docs_v66/methods/README.md | 453 +++++++++++++++++ old_docs/API_docs_v68/methods/README.md | 473 +++++++++++++++++ old_docs/API_docs_v70/methods/README.md | 477 ++++++++++++++++++ old_docs/API_docs_v71/methods/README.md | 489 ++++++++++++++++++ old_docs/API_docs_v72/methods/README.md | 499 ++++++++++++++++++ old_docs/API_docs_v73/methods/README.md | 483 ++++++++++++++++++ old_docs/API_docs_v75/methods/README.md | 489 ++++++++++++++++++ old_docs/API_docs_v81/methods/README.md | 533 ++++++++++++++++++++ old_docs/API_docs_v82/methods/README.md | 539 ++++++++++++++++++++ old_docs/API_docs_v86/methods/README.md | 543 ++++++++++++++++++++ old_docs/API_docs_v89/methods/README.md | 561 +++++++++++++++++++++ old_docs/API_docs_v91/methods/README.md | 573 +++++++++++++++++++++ old_docs/API_docs_v95/methods/README.md | 579 +++++++++++++++++++++ old_docs/API_docs_v97/methods/README.md | 589 ++++++++++++++++++++++ 39 files changed, 16117 insertions(+) diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md index 657b22993ba..7e0b90c2525 100644 --- a/docs/API_docs/methods/index.md +++ b/docs/API_docs/methods/index.md @@ -30,3 +30,618 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept URL authorization: messages.acceptUrlAuth + + * Accept contact: contacts.acceptContact + + * Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add contact: contacts.addContact + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Cancel password recovery email: account.cancelPasswordEmail + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all drafts: messages.clearAllDrafts + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm password recovery using email: account.confirmPasswordEmail + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Contact signup notification setting value: account.getContactSignUpNotification + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete contacts by phones: contacts.deleteByPhones + + * Delete folder: folders.deleteFolder + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit chat info: messages.editChatAbout + + * Edit creator of channel: channels.editCreator + + * Edit default rights of chat: messages.editChatDefaultBannedRights + + * Edit folder: folders.editPeerFolders + + * Edit location (geochats): channels.editLocation + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Edit user info: help.editUserInfo + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get app config: help.getAppConfig + + * Get autodownload settings: account.getAutoDownloadSettings + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get contacts by IDs: contacts.getContactIDs + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get emoji URL: messages.getEmojiURL + + * Get emoji keyword difference: messages.getEmojiKeywordsDifference + + * Get emoji keyword languages: messages.getEmojiKeywordsLanguages + + * Get emoji keywords: messages.getEmojiKeywords + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get groups for discussion: channels.getGroupsForDiscussion + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get language: langpack.getLanguage + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification exceptions: account.getNotifyExceptions + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get online users: messages.getOnlines + + * Get passport config: help.getPassportConfig + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get people nearby (geochats): contacts.getLocated + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get poll results: messages.getPollResults + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get search counter: messages.getSearchCounters + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stats URL: messages.getStatsURL + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get support name: help.getSupportName + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get user info: help.getUserInfo + + * Get wallpaper info: account.getWallPaper + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide peer settings bar: messages.hidePeerSettingsBar + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Install wallpaper: account.installWallPaper + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark dialog as unread : messages.markDialogUnread + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Request URL authorization: messages.requestUrlAuth + + * Resend password recovery email: account.resendPasswordEmail + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Reset wallpapers: account.resetWallPapers + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save autodownload settings: account.saveAutoDownloadSettings + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Save wallpaper: account.saveWallPaper + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send vote: messages.sendVote + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set contact sign up notification: account.setContactSignUpNotification + + * Set discussion group of channel: channels.setDiscussionGroup + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Toggle slow mode: channels.toggleSlowMode + + * Toggle top peers: contacts.toggleTopPeers + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update pinned message: messages.updatePinnedMessage + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Upload wallpaper: account.uploadWallPaper + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/docs/MTProto_docs/methods/index.md b/docs/MTProto_docs/methods/index.md index 657b22993ba..1c10452c9d3 100644 --- a/docs/MTProto_docs/methods/index.md +++ b/docs/MTProto_docs/methods/index.md @@ -30,3 +30,24 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Destroy the current MTProto session: destroy_session + + * Do not send answer to provided request: rpc_drop_answer + + * Get future salts: get_future_salts + + * Makes the server send messages waiting in the buffer: http_wait + + * Pings the server and causes disconection if the same method is not called within ping_disconnect_delay: ping_delay_disconnect + + * Pings the server: ping + + * Requests Diffie-hellman parameters for key exchange: req_DH_params + + * Requests PQ for factorization (new version): req_pq_multi + + * Requests PQ for factorization: req_pq + + * Sets client diffie-hellman parameters: set_client_DH_params + + \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index f92880876f8..ae55d009329 100644 --- a/docs/index.md +++ b/docs/index.md @@ -180,6 +180,313 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro * [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html) * [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html) * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) + * Accept URL authorization: messages.acceptUrlAuth + * Accept contact: contacts.acceptContact + * Accept telegram passport authorization: account.acceptAuthorization + * Accept telegram's TOS: help.acceptTermsOfService + * Add a sticker set: messages.installStickerSet + * Add a sticker to favorites: messages.faveSticker + * Add a sticker to recent stickers: messages.saveRecentSticker + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + * Add contact: contacts.addContact + * Add phone number as contact: contacts.importContacts + * Add sticker to stickerset: stickers.addStickerToSet + * Add users to channel/supergroup: channels.inviteToChannel + * Block a user: contacts.block + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + * Bots only: send payment form: payments.sendPaymentForm + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + * Bots only: set shipping results: messages.setBotShippingResults + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + * Bots only: set the results of an inline query: messages.setInlineBotResults + * Call inline bot: messages.getInlineBotResults + * Cancel password recovery email: account.cancelPasswordEmail + * Change notification settings: account.updateNotifySettings + * Change sticker position in photo: stickers.changeStickerPosition + * Change the phone number associated to this account: account.changePhone + * Change the phone number: account.sendChangePhoneCode + * Change the profile photo: photos.updateProfilePhoto + * Change typing status: messages.setTyping + * Check if about to edit a message or a media caption: messages.getMessageEditData + * Check if an invitation link is valid: messages.checkChatInvite + * Check if this username is available: account.checkUsername + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + * Clear all drafts: messages.clearAllDrafts + * Clear all recent stickers: messages.clearRecentStickers + * Clear saved payments info: payments.clearSavedInfo + * Confirm password recovery using email: account.confirmPasswordEmail + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + * Contact signup notification setting value: account.getContactSignUpNotification + * Convert chat to supergroup: messages.migrateChat + * Create a chat (not supergroup): messages.createChat + * Create channel/supergroup: channels.createChannel + * Create stickerset: stickers.createStickerSet + * Delete a certain session: account.resetAuthorization + * Delete a certain telegram web login authorization: account.resetWebAuthorization + * Delete a channel/supergroup: channels.deleteChannel + * Delete a user from a chat (not supergroup): messages.deleteChatUser + * Delete all logged-in sessions.: auth.resetAuthorizations + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + * Delete channel/supergroup messages: channels.deleteMessages + * Delete chat history: messages.deleteHistory + * Delete contacts by phones: contacts.deleteByPhones + * Delete folder: folders.deleteFolder + * Delete messages: messages.deleteMessages + * Delete multiple contacts: contacts.deleteContacts + * Delete profile photos: photos.deletePhotos + * Delete secure telegram passport value: account.deleteSecureValue + * Delete the history of a supergroup/channel: channels.deleteHistory + * Delete this account: account.deleteAccount + * Disable all notifications for a certain period: account.updateDeviceLocked + * Download a file through telegram: upload.getWebFile + * Edit a message: messages.editMessage + * Edit a sent inline message: messages.editInlineBotMessage + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + * Edit admin permissions: messages.editChatAdmin + * Edit chat info: messages.editChatAbout + * Edit creator of channel: channels.editCreator + * Edit default rights of chat: messages.editChatDefaultBannedRights + * Edit folder: folders.editPeerFolders + * Edit location (geochats): channels.editLocation + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + * Edit the photo of a supergroup/channel: channels.editPhoto + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + * Edit the title of a supergroup/channel: channels.editTitle + * Edit user info: help.editUserInfo + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + * Export chat invite : messages.exportChatInvite + * Find a sticker set: messages.searchStickerSets + * Finish account exporting session: account.finishTakeoutSession + * Forward messages: messages.forwardMessages + * Get CDN configuration: help.getCdnConfig + * Get a stickerset: messages.getStickerSet + * Get account TTL: account.getAccountTTL + * Get admin log of a channel/supergroup: channels.getAdminLog + * Get all archived stickers: messages.getArchivedStickers + * Get all channels you left: channels.getLeftChannels + * Get all chats (not supergroups or channels): messages.getAllChats + * Get all contacts: contacts.getContacts + * Get all logged-in authorizations: account.getAuthorizations + * Get all message drafts: messages.getAllDrafts + * Get all secure telegram passport values: account.getAllSecureValues + * Get all stickerpacks: messages.getAllStickers + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + * Get and increase message views: messages.getMessagesViews + * Get app config: help.getAppConfig + * Get autodownload settings: account.getAutoDownloadSettings + * Get available languages: langpack.getLanguages + * Get blocked users: contacts.getBlocked + * Get call configuration: phone.getCallConfig + * Get channel/supergroup messages: channels.getMessages + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + * Get chats in common with a user: messages.getCommonChats + * Get contacts by IDs: contacts.getContactIDs + * Get deep link info: help.getDeepLinkInfo + * Get dialog info of peers: messages.getPeerDialogs + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + * Get document by SHA256 hash: messages.getDocumentByHash + * Get emoji URL: messages.getEmojiURL + * Get emoji keyword difference: messages.getEmojiKeywordsDifference + * Get emoji keyword languages: messages.getEmojiKeywordsLanguages + * Get emoji keywords: messages.getEmojiKeywords + * Get favorite stickers: messages.getFavedStickers + * Get featured stickers: messages.getFeaturedStickers + * Get file hashes: upload.getFileHashes + * Get groups for discussion: channels.getGroupsForDiscussion + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + * Get high scores of a game: messages.getGameHighScores + * Get info about a certain channel/supergroup participant: channels.getParticipant + * Get info about app updates: help.getAppUpdate + * Get info about chats: messages.getChats + * Get info about multiple channels/supergroups: channels.getChannels + * Get info about users: users.getUsers + * Get info of support user: help.getSupport + * Get information about the current proxy: help.getProxyData + * Get invitation text: help.getInviteText + * Get language pack strings: langpack.getStrings + * Get language pack updates: langpack.getDifference + * Get language pack: langpack.getLangPack + * Get language: langpack.getLanguage + * Get masks: messages.getMaskStickers + * Get message ranges to fetch: messages.getSplitRanges + * Get messages: messages.getMessages + * Get most used chats: contacts.getTopPeers + * Get nearest datacenter: help.getNearestDc + * Get notification exceptions: account.getNotifyExceptions + * Get notification settings: account.getNotifySettings + * Get online status of all users: contacts.getStatuses + * Get online users: messages.getOnlines + * Get passport config: help.getPassportConfig + * Get payment form: payments.getPaymentForm + * Get payment receipt: payments.getPaymentReceipt + * Get people nearby (geochats): contacts.getLocated + * Get pinned dialogs: messages.getPinnedDialogs + * Get poll results: messages.getPollResults + * Get previous messages of a group: messages.getHistory + * Get privacy settings: account.getPrivacy + * Get recent locations: messages.getRecentLocations + * Get recent stickers: messages.getRecentStickers + * Get recent t.me URLs: help.getRecentMeUrls + * Get saved contacts: contacts.getSaved + * Get saved gifs: messages.getSavedGifs + * Get saved payments info: payments.getSavedInfo + * Get search counter: messages.getSearchCounters + * Get secure value for telegram passport: account.getSecureValue + * Get server configuration: help.getConfig + * Get stats URL: messages.getStatsURL + * Get stickers attachable to images: messages.getAttachedStickers + * Get stickers: messages.getStickers + * Get support name: help.getSupportName + * Get telegram web login authorizations: account.getWebAuthorizations + * Get temporary password for buying products through bots: account.getTmpPassword + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + * Get the changelog of this app: help.getAppChangelog + * Get the current 2FA settings: account.getPasswordSettings + * Get the current password: account.getPassword + * Get the link of a message in a channel: channels.exportMessageLink + * Get the profile photos of a user: photos.getUserPhotos + * Get the settings of apeer: messages.getPeerSettings + * Get unread mentions: messages.getUnreadMentions + * Get updated TOS: help.getTermsOfServiceUpdate + * Get user info: help.getUserInfo + * Get wallpaper info: account.getWallPaper + * Get webpage preview: messages.getWebPage + * Get webpage preview: messages.getWebPagePreview + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + * Global message search: messages.searchGlobal + * Hide peer settings bar: messages.hidePeerSettingsBar + * Import chat invite: messages.importChatInvite + * Initializes connection and save information on the user's device and application.: initConnection + * Install wallpaper: account.installWallPaper + * Invalidate sent phone code: auth.cancelCode + * Invoke method from takeout session: invokeWithTakeout + * Invoke this method with layer X: invokeWithLayer + * Invoke with messages range: invokeWithMessagesRange + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + * Join a channel/supergroup: channels.joinChannel + * Kick or ban a user from a channel/supergroup: channels.editBanned + * Leave a channel/supergroup: channels.leaveChannel + * Log data for developer of this app: help.saveAppLog + * Mark channel/supergroup history as read: channels.readHistory + * Mark channel/supergroup messages as read: channels.readMessageContents + * Mark dialog as unread : messages.markDialogUnread + * Mark mentions as read: messages.readMentions + * Mark message as read: messages.readMessageContents + * Mark messages as read in secret chats: messages.readEncryptedHistory + * Mark messages as read: messages.readHistory + * Mark messages as read: messages.receivedMessages + * Mark new featured stickers as read: messages.readFeaturedStickers + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + * Pin or unpin dialog: messages.toggleDialogPin + * Register device for push notifications: account.registerDevice + * Remove a sticker set: messages.uninstallStickerSet + * Remove sticker from stickerset: stickers.removeStickerFromSet + * Reorder pinned dialogs: messages.reorderPinnedDialogs + * Reorder sticker sets: messages.reorderStickerSets + * Report a message in a supergroup/channel for spam: channels.reportSpam + * Report a message: messages.report + * Report a peer for spam: messages.reportSpam + * Report for spam a secret chat: messages.reportEncryptedSpam + * Report for spam: account.reportPeer + * Request URL authorization: messages.requestUrlAuth + * Resend password recovery email: account.resendPasswordEmail + * Resend the SMS verification code: auth.resendCode + * Reset all notification settings: account.resetNotifySettings + * Reset all telegram web login authorizations: account.resetWebAuthorizations + * Reset saved contacts: contacts.resetSaved + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + * Reset wallpapers: account.resetWallPapers + * Result type returned by a current query.: invokeAfterMsgs + * Returns a list of available wallpapers.: account.getWallPapers + * Save a GIF: messages.saveGif + * Save a message draft: messages.saveDraft + * Save autodownload settings: account.saveAutoDownloadSettings + * Save call debugging info: phone.saveCallDebug + * Save telegram passport secure value: account.saveSecureValue + * Save wallpaper: account.saveWallPaper + * Search contacts: contacts.search + * Search gifs: messages.searchGifs + * Search peers or messages: messages.search + * Send a custom request to the bot API: bots.sendCustomRequest + * Send a file to a secret chat: messages.sendEncryptedFile + * Send a media: messages.sendMedia + * Send a message: messages.sendMessage + * Send a service message to a secret chat: messages.sendEncryptedService + * Send an album: messages.sendMultiMedia + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + * Send confirmation phone code: account.sendConfirmPhoneCode + * Send email verification code: account.sendVerifyEmailCode + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + * Send message to secret chat: messages.sendEncrypted + * Send phone verification code: account.sendVerifyPhoneCode + * Send screenshot notification: messages.sendScreenshotNotification + * Send typing notification to secret chat: messages.setEncryptedTyping + * Send vote: messages.sendVote + * Send webhook request via bot API: bots.answerWebhookJSONQuery + * Set account TTL: account.setAccountTTL + * Set contact sign up notification: account.setContactSignUpNotification + * Set discussion group of channel: channels.setDiscussionGroup + * Set phone call rating: phone.setCallRating + * Set privacy settings: account.setPrivacy + * Set secure value error for telegram passport: users.setSecureValueErrors + * Set the game score of an inline message: messages.setInlineGameScore + * Set the game score: messages.setGameScore + * Set the supergroup/channel stickerpack: channels.setStickers + * Set the update status of webhook: help.setBotUpdatesStatus + * Start a bot: messages.startBot + * Start account exporting session: account.initTakeoutSession + * Stop sending PUSH notifications to app: account.unregisterDevice + * Toggle channel signatures: channels.toggleSignatures + * Toggle slow mode: channels.toggleSlowMode + * Toggle top peers: contacts.toggleTopPeers + * Unblock a user: contacts.unblock + * Update online status: account.updateStatus + * Update pinned message: messages.updatePinnedMessage + * Update profile info: account.updateProfile + * Update the username of a supergroup/channel: channels.updateUsername + * Update this user's username: account.updateUsername + * Upload a file without sending it to anyone: messages.uploadMedia + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + * Upload profile photo: photos.uploadProfilePhoto + * Upload wallpaper: account.uploadWallPaper + * Use phone_login instead: auth.sendCode + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + * Validate requested payment info: payments.validateRequestedInfo + * Verify email address: account.verifyEmail + * Verify phone number: account.verifyPhone + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + * You cannot use this method directly: messages.receivedQueue + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings * [Peers](https://docs.madelineproto.xyz/docs/USING_METHODS.html#peers) * [Files](https://docs.madelineproto.xyz/docs/FILES.html) * [Secret chats](https://docs.madelineproto.xyz/docs/USING_METHODS.html#secret-chats) diff --git a/old_docs/API_docs_v100/methods/README.md b/old_docs/API_docs_v100/methods/README.md index a161eab63a1..9704a1b9403 100644 --- a/old_docs/API_docs_v100/methods/README.md +++ b/old_docs/API_docs_v100/methods/README.md @@ -30,3 +30,610 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept URL authorization: messages.acceptUrlAuth + + * Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Cancel password recovery email: account.cancelPasswordEmail + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all drafts: messages.clearAllDrafts + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm password recovery using email: account.confirmPasswordEmail + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Contact signup notification setting value: account.getContactSignUpNotification + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete contacts by phones: contacts.deleteByPhones + + * Delete folder: folders.deleteFolder + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit chat info: messages.editChatAbout + + * Edit default rights of chat: messages.editChatDefaultBannedRights + + * Edit folder: folders.editPeerFolders + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Edit user info: help.editUserInfo + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get app config: help.getAppConfig + + * Get autodownload settings: account.getAutoDownloadSettings + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get channels for discussion: channels.getBroadcastsForDiscussion + + * Get chats in common with a user: messages.getCommonChats + + * Get contacts by IDs: contacts.getContactIDs + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get emoji URL: messages.getEmojiURL + + * Get emoji keyword difference: messages.getEmojiKeywordsDifference + + * Get emoji keyword languages: messages.getEmojiKeywordsLanguages + + * Get emoji keywords: messages.getEmojiKeywords + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get groups for discussion: channels.getGroupsForDiscussion + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get language: langpack.getLanguage + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification exceptions: account.getNotifyExceptions + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get online users: messages.getOnlines + + * Get passport config: help.getPassportConfig + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get poll results: messages.getPollResults + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get search counter: messages.getSearchCounters + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stats URL: messages.getStatsURL + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get support name: help.getSupportName + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get user info: help.getUserInfo + + * Get wallpaper info: account.getWallPaper + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Install wallpaper: account.installWallPaper + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark dialog as unread : messages.markDialogUnread + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Request URL authorization: messages.requestUrlAuth + + * Resend password recovery email: account.resendPasswordEmail + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Reset wallpapers: account.resetWallPapers + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save autodownload settings: account.saveAutoDownloadSettings + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Save wallpaper: account.saveWallPaper + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send vote: messages.sendVote + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set contact sign up notification: account.setContactSignUpNotification + + * Set discussion group of channel: channels.setDiscussionGroup + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Toggle top peers: contacts.toggleTopPeers + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update pinned message: messages.updatePinnedMessage + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Upload wallpaper: account.uploadWallPaper + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v102/methods/README.md b/old_docs/API_docs_v102/methods/README.md index a161eab63a1..d5540dfabdf 100644 --- a/old_docs/API_docs_v102/methods/README.md +++ b/old_docs/API_docs_v102/methods/README.md @@ -30,3 +30,616 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept URL authorization: messages.acceptUrlAuth + + * Accept contact: contacts.acceptContact + + * Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add contact: contacts.addContact + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Cancel password recovery email: account.cancelPasswordEmail + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all drafts: messages.clearAllDrafts + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm password recovery using email: account.confirmPasswordEmail + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Contact signup notification setting value: account.getContactSignUpNotification + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete contacts by phones: contacts.deleteByPhones + + * Delete folder: folders.deleteFolder + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit chat info: messages.editChatAbout + + * Edit creator of channel: channels.editCreator + + * Edit default rights of chat: messages.editChatDefaultBannedRights + + * Edit folder: folders.editPeerFolders + + * Edit location (geochats): channels.editLocation + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Edit user info: help.editUserInfo + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get app config: help.getAppConfig + + * Get autodownload settings: account.getAutoDownloadSettings + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get contacts by IDs: contacts.getContactIDs + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get emoji URL: messages.getEmojiURL + + * Get emoji keyword difference: messages.getEmojiKeywordsDifference + + * Get emoji keyword languages: messages.getEmojiKeywordsLanguages + + * Get emoji keywords: messages.getEmojiKeywords + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get groups for discussion: channels.getGroupsForDiscussion + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get language: langpack.getLanguage + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification exceptions: account.getNotifyExceptions + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get online users: messages.getOnlines + + * Get passport config: help.getPassportConfig + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get people nearby (geochats): contacts.getLocated + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get poll results: messages.getPollResults + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get search counter: messages.getSearchCounters + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stats URL: messages.getStatsURL + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get support name: help.getSupportName + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get user info: help.getUserInfo + + * Get wallpaper info: account.getWallPaper + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide peer settings bar: messages.hidePeerSettingsBar + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Install wallpaper: account.installWallPaper + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark dialog as unread : messages.markDialogUnread + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Request URL authorization: messages.requestUrlAuth + + * Resend password recovery email: account.resendPasswordEmail + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Reset wallpapers: account.resetWallPapers + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save autodownload settings: account.saveAutoDownloadSettings + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Save wallpaper: account.saveWallPaper + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send vote: messages.sendVote + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set contact sign up notification: account.setContactSignUpNotification + + * Set discussion group of channel: channels.setDiscussionGroup + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Toggle top peers: contacts.toggleTopPeers + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update pinned message: messages.updatePinnedMessage + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Upload wallpaper: account.uploadWallPaper + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v103/methods/README.md b/old_docs/API_docs_v103/methods/README.md index a161eab63a1..d5540dfabdf 100644 --- a/old_docs/API_docs_v103/methods/README.md +++ b/old_docs/API_docs_v103/methods/README.md @@ -30,3 +30,616 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept URL authorization: messages.acceptUrlAuth + + * Accept contact: contacts.acceptContact + + * Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add contact: contacts.addContact + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Cancel password recovery email: account.cancelPasswordEmail + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all drafts: messages.clearAllDrafts + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm password recovery using email: account.confirmPasswordEmail + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Contact signup notification setting value: account.getContactSignUpNotification + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete contacts by phones: contacts.deleteByPhones + + * Delete folder: folders.deleteFolder + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit chat info: messages.editChatAbout + + * Edit creator of channel: channels.editCreator + + * Edit default rights of chat: messages.editChatDefaultBannedRights + + * Edit folder: folders.editPeerFolders + + * Edit location (geochats): channels.editLocation + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Edit user info: help.editUserInfo + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get app config: help.getAppConfig + + * Get autodownload settings: account.getAutoDownloadSettings + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get contacts by IDs: contacts.getContactIDs + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get emoji URL: messages.getEmojiURL + + * Get emoji keyword difference: messages.getEmojiKeywordsDifference + + * Get emoji keyword languages: messages.getEmojiKeywordsLanguages + + * Get emoji keywords: messages.getEmojiKeywords + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get groups for discussion: channels.getGroupsForDiscussion + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get language: langpack.getLanguage + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification exceptions: account.getNotifyExceptions + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get online users: messages.getOnlines + + * Get passport config: help.getPassportConfig + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get people nearby (geochats): contacts.getLocated + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get poll results: messages.getPollResults + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get search counter: messages.getSearchCounters + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stats URL: messages.getStatsURL + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get support name: help.getSupportName + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get user info: help.getUserInfo + + * Get wallpaper info: account.getWallPaper + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide peer settings bar: messages.hidePeerSettingsBar + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Install wallpaper: account.installWallPaper + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark dialog as unread : messages.markDialogUnread + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Request URL authorization: messages.requestUrlAuth + + * Resend password recovery email: account.resendPasswordEmail + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Reset wallpapers: account.resetWallPapers + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save autodownload settings: account.saveAutoDownloadSettings + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Save wallpaper: account.saveWallPaper + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send vote: messages.sendVote + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set contact sign up notification: account.setContactSignUpNotification + + * Set discussion group of channel: channels.setDiscussionGroup + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Toggle top peers: contacts.toggleTopPeers + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update pinned message: messages.updatePinnedMessage + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Upload wallpaper: account.uploadWallPaper + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v104/methods/README.md b/old_docs/API_docs_v104/methods/README.md index a161eab63a1..437ddad996d 100644 --- a/old_docs/API_docs_v104/methods/README.md +++ b/old_docs/API_docs_v104/methods/README.md @@ -30,3 +30,618 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept URL authorization: messages.acceptUrlAuth + + * Accept contact: contacts.acceptContact + + * Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add contact: contacts.addContact + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Cancel password recovery email: account.cancelPasswordEmail + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all drafts: messages.clearAllDrafts + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm password recovery using email: account.confirmPasswordEmail + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Contact signup notification setting value: account.getContactSignUpNotification + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete contacts by phones: contacts.deleteByPhones + + * Delete folder: folders.deleteFolder + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit chat info: messages.editChatAbout + + * Edit creator of channel: channels.editCreator + + * Edit default rights of chat: messages.editChatDefaultBannedRights + + * Edit folder: folders.editPeerFolders + + * Edit location (geochats): channels.editLocation + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Edit user info: help.editUserInfo + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get app config: help.getAppConfig + + * Get autodownload settings: account.getAutoDownloadSettings + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get contacts by IDs: contacts.getContactIDs + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get emoji URL: messages.getEmojiURL + + * Get emoji keyword difference: messages.getEmojiKeywordsDifference + + * Get emoji keyword languages: messages.getEmojiKeywordsLanguages + + * Get emoji keywords: messages.getEmojiKeywords + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get groups for discussion: channels.getGroupsForDiscussion + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get language: langpack.getLanguage + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification exceptions: account.getNotifyExceptions + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get online users: messages.getOnlines + + * Get passport config: help.getPassportConfig + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get people nearby (geochats): contacts.getLocated + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get poll results: messages.getPollResults + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get search counter: messages.getSearchCounters + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stats URL: messages.getStatsURL + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get support name: help.getSupportName + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get user info: help.getUserInfo + + * Get wallpaper info: account.getWallPaper + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide peer settings bar: messages.hidePeerSettingsBar + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Install wallpaper: account.installWallPaper + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark dialog as unread : messages.markDialogUnread + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Request URL authorization: messages.requestUrlAuth + + * Resend password recovery email: account.resendPasswordEmail + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Reset wallpapers: account.resetWallPapers + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save autodownload settings: account.saveAutoDownloadSettings + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Save wallpaper: account.saveWallPaper + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send vote: messages.sendVote + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set contact sign up notification: account.setContactSignUpNotification + + * Set discussion group of channel: channels.setDiscussionGroup + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Toggle slow mode: channels.toggleSlowMode + + * Toggle top peers: contacts.toggleTopPeers + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update pinned message: messages.updatePinnedMessage + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Upload wallpaper: account.uploadWallPaper + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v18/methods/README.md b/old_docs/API_docs_v18/methods/README.md index a161eab63a1..52c0aec3dad 100644 --- a/old_docs/API_docs_v18/methods/README.md +++ b/old_docs/API_docs_v18/methods/README.md @@ -30,3 +30,180 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Block a user: contacts.block + + * Change notification settings: account.updateNotifySettings + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Create a chat (not supergroup): messages.createChat + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Export contact as card: contacts.exportCard + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get all contacts: contacts.getContacts + + * Get blocked users: contacts.getBlocked + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get server configuration: help.getConfig + + * Get suggested contacts: contacts.getSuggested + + * Get the profile photos of a user: photos.getUserPhotos + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Import card as contact: contacts.importCard + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer 18: invokeWithLayer18 + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Log data for developer of this app: help.saveAppLog + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Report a peer for spam: messages.reportSpam + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Search contacts: contacts.search + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + \ No newline at end of file diff --git a/old_docs/API_docs_v23/methods/README.md b/old_docs/API_docs_v23/methods/README.md index a161eab63a1..3c2762a154d 100644 --- a/old_docs/API_docs_v23/methods/README.md +++ b/old_docs/API_docs_v23/methods/README.md @@ -30,3 +30,204 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Block a user: contacts.block + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Create a chat (not supergroup): messages.createChat + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Export contact as card: contacts.exportCard + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all stickerpacks: messages.getAllStickers + + * Get blocked users: contacts.getBlocked + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get suggested contacts: contacts.getSuggested + + * Get the profile photos of a user: photos.getUserPhotos + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Import card as contact: contacts.importCard + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Log data for developer of this app: help.saveAppLog + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Report a peer for spam: messages.reportSpam + + * Report for spam: account.reportPeer + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Search contacts: contacts.search + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + \ No newline at end of file diff --git a/old_docs/API_docs_v25/methods/README.md b/old_docs/API_docs_v25/methods/README.md index a161eab63a1..1da6a8219f6 100644 --- a/old_docs/API_docs_v25/methods/README.md +++ b/old_docs/API_docs_v25/methods/README.md @@ -30,3 +30,230 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Block a user: contacts.block + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Create a chat (not supergroup): messages.createChat + + * Create geochat: geochats.createGeoChat + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit geochat photo: geochats.editChatPhoto + + * Edit geochat title: geochats.editChatTitle + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Export contact as card: contacts.exportCard + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all stickerpacks: messages.getAllStickers + + * Get blocked users: contacts.getBlocked + + * Get full info about a geochat: geochats.getFullChat + + * Get geochat history: geochats.getHistory + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearby geochats: geochats.getLocated + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent geochats: geochats.getRecents + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get suggested contacts: contacts.getSuggested + + * Get the current password: account.getPassword + + * Get the profile photos of a user: photos.getUserPhotos + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Import card as contact: contacts.importCard + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a geochat: geochats.checkin + + * Log data for developer of this app: help.saveAppLog + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Search contacts: contacts.search + + * Search messages in geocha: geochats.search + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send media to geochat: geochats.sendMedia + + * Send message to geochat: geochats.sendMessage + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to geochat: geochats.setTyping + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Set 2FA password: account.setPassword + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + \ No newline at end of file diff --git a/old_docs/API_docs_v27/methods/README.md b/old_docs/API_docs_v27/methods/README.md index a161eab63a1..89acc288251 100644 --- a/old_docs/API_docs_v27/methods/README.md +++ b/old_docs/API_docs_v27/methods/README.md @@ -30,3 +30,242 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Block a user: contacts.block + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Create a chat (not supergroup): messages.createChat + + * Create geochat: geochats.createGeoChat + + * Delete a certain session: account.resetAuthorization + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit geochat photo: geochats.editChatPhoto + + * Edit geochat title: geochats.editChatTitle + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Export contact as card: contacts.exportCard + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all stickerpacks: messages.getAllStickers + + * Get blocked users: contacts.getBlocked + + * Get full info about a geochat: geochats.getFullChat + + * Get geochat history: geochats.getHistory + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearby geochats: geochats.getLocated + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent geochats: geochats.getRecents + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get suggested contacts: contacts.getSuggested + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the profile photos of a user: photos.getUserPhotos + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Import card as contact: contacts.importCard + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a geochat: geochats.checkin + + * Log data for developer of this app: help.saveAppLog + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Search contacts: contacts.search + + * Search messages in geocha: geochats.search + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send media to geochat: geochats.sendMedia + + * Send message to geochat: geochats.sendMessage + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to geochat: geochats.setTyping + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v33/methods/README.md b/old_docs/API_docs_v33/methods/README.md index a161eab63a1..6f4cd2b9d82 100644 --- a/old_docs/API_docs_v33/methods/README.md +++ b/old_docs/API_docs_v33/methods/README.md @@ -30,3 +30,262 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Block a user: contacts.block + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Create a chat (not supergroup): messages.createChat + + * Create geochat: geochats.createGeoChat + + * Delete a certain session: account.resetAuthorization + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit geochat photo: geochats.editChatPhoto + + * Edit geochat title: geochats.editChatTitle + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all stickerpacks: messages.getAllStickers + + * Get blocked users: contacts.getBlocked + + * Get full info about a geochat: geochats.getFullChat + + * Get geochat history: geochats.getHistory + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearby geochats: geochats.getLocated + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent geochats: geochats.getRecents + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get suggested contacts: contacts.getSuggested + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the profile photos of a user: photos.getUserPhotos + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a geochat: geochats.checkin + + * Log data for developer of this app: help.saveAppLog + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Search contacts: contacts.search + + * Search messages in geocha: geochats.search + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send media to geochat: geochats.sendMedia + + * Send message to geochat: geochats.sendMessage + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to geochat: geochats.setTyping + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v38/methods/README.md b/old_docs/API_docs_v38/methods/README.md index a161eab63a1..bad1b5f7398 100644 --- a/old_docs/API_docs_v38/methods/README.md +++ b/old_docs/API_docs_v38/methods/README.md @@ -30,3 +30,294 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable channel comments: channels.toggleComments + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all stickerpacks: messages.getAllStickers + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get channel dialogs: channels.getDialogs + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get important channel/supergroup history: channels.getImportantHistory + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get suggested contacts: contacts.getSuggested + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the profile photos of a user: photos.getUserPhotos + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Search contacts: contacts.search + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v40/methods/README.md b/old_docs/API_docs_v40/methods/README.md index a161eab63a1..6e3d55cb6d9 100644 --- a/old_docs/API_docs_v40/methods/README.md +++ b/old_docs/API_docs_v40/methods/README.md @@ -30,3 +30,250 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Block a user: contacts.block + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Create a chat (not supergroup): messages.createChat + + * Create channel: messages.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete channel messages: messages.deleteChannelMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all stickerpacks: messages.getAllStickers + + * Get blocked users: contacts.getBlocked + + * Get channel/supergruop dialogs: messages.getChannelDialogs + + * Get important message history: messages.getImportantHistory + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get suggested contacts: contacts.getSuggested + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the profile photos of a user: photos.getUserPhotos + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: messages.readChannelHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Search contacts: contacts.search + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v41/methods/README.md b/old_docs/API_docs_v41/methods/README.md index a161eab63a1..202aacff858 100644 --- a/old_docs/API_docs_v41/methods/README.md +++ b/old_docs/API_docs_v41/methods/README.md @@ -30,3 +30,304 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Deactivate chat: messages.deactivateChat + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable channel comments: channels.toggleComments + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all stickerpacks: messages.getAllStickers + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get channel dialogs: channels.getDialogs + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get important channel/supergroup history: channels.getImportantHistory + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get suggested contacts: contacts.getSuggested + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the profile photos of a user: photos.getUserPhotos + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Search contacts: contacts.search + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v42/methods/README.md b/old_docs/API_docs_v42/methods/README.md index a161eab63a1..f5ba2580a52 100644 --- a/old_docs/API_docs_v42/methods/README.md +++ b/old_docs/API_docs_v42/methods/README.md @@ -30,3 +30,302 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable channel comments: channels.toggleComments + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all stickerpacks: messages.getAllStickers + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get channel dialogs: channels.getDialogs + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get important channel/supergroup history: channels.getImportantHistory + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get suggested contacts: contacts.getSuggested + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the profile photos of a user: photos.getUserPhotos + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Search contacts: contacts.search + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v44/methods/README.md b/old_docs/API_docs_v44/methods/README.md index a161eab63a1..6ad4181a38c 100644 --- a/old_docs/API_docs_v44/methods/README.md +++ b/old_docs/API_docs_v44/methods/README.md @@ -30,3 +30,312 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable channel comments: channels.toggleComments + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all stickerpacks: messages.getAllStickers + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get channel dialogs: channels.getDialogs + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get important channel/supergroup history: channels.getImportantHistory + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get suggested contacts: contacts.getSuggested + + * Get terms of service: help.getTermsOfService + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the profile photos of a user: photos.getUserPhotos + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam: account.reportPeer + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v45/methods/README.md b/old_docs/API_docs_v45/methods/README.md index a161eab63a1..e41723b0336 100644 --- a/old_docs/API_docs_v45/methods/README.md +++ b/old_docs/API_docs_v45/methods/README.md @@ -30,3 +30,322 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable channel comments: channels.toggleComments + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all stickerpacks: messages.getAllStickers + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get channel dialogs: channels.getDialogs + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get important channel/supergroup history: channels.getImportantHistory + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get saved gifs: messages.getSavedGifs + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get suggested contacts: contacts.getSuggested + + * Get terms of service: help.getTermsOfService + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the profile photos of a user: photos.getUserPhotos + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam: account.reportPeer + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v46/methods/README.md b/old_docs/API_docs_v46/methods/README.md index a161eab63a1..e41723b0336 100644 --- a/old_docs/API_docs_v46/methods/README.md +++ b/old_docs/API_docs_v46/methods/README.md @@ -30,3 +30,322 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable channel comments: channels.toggleComments + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all stickerpacks: messages.getAllStickers + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get channel dialogs: channels.getDialogs + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get important channel/supergroup history: channels.getImportantHistory + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get saved gifs: messages.getSavedGifs + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get suggested contacts: contacts.getSuggested + + * Get terms of service: help.getTermsOfService + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the profile photos of a user: photos.getUserPhotos + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam: account.reportPeer + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send SMS verification code: auth.sendSms + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send verification phone call: auth.sendCall + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v51/methods/README.md b/old_docs/API_docs_v51/methods/README.md index a161eab63a1..596f74a8fce 100644 --- a/old_docs/API_docs_v51/methods/README.md +++ b/old_docs/API_docs_v51/methods/README.md @@ -30,3 +30,342 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable channel comments: channels.toggleComments + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all stickerpacks: messages.getAllStickers + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get channel dialogs: channels.getDialogs + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get important channel/supergroup history: channels.getImportantHistory + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get saved gifs: messages.getSavedGifs + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam: account.reportPeer + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v53/methods/README.md b/old_docs/API_docs_v53/methods/README.md index a161eab63a1..dc745ab2ea1 100644 --- a/old_docs/API_docs_v53/methods/README.md +++ b/old_docs/API_docs_v53/methods/README.md @@ -30,3 +30,346 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get saved gifs: messages.getSavedGifs + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam: account.reportPeer + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v55/methods/README.md b/old_docs/API_docs_v55/methods/README.md index a161eab63a1..454f67c4910 100644 --- a/old_docs/API_docs_v55/methods/README.md +++ b/old_docs/API_docs_v55/methods/README.md @@ -30,3 +30,364 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all archived stickers: messages.getArchivedStickers + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get featured stickers: messages.getFeaturedStickers + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent stickers: messages.getRecentStickers + + * Get saved gifs: messages.getSavedGifs + + * Get server configuration: help.getConfig + + * Get stickers: messages.getStickers + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unused stickers: messages.getUnusedStickers + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam: account.reportPeer + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message to all users in the chat list: messages.sendBroadcast + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v57/methods/README.md b/old_docs/API_docs_v57/methods/README.md index a161eab63a1..caca32dfae4 100644 --- a/old_docs/API_docs_v57/methods/README.md +++ b/old_docs/API_docs_v57/methods/README.md @@ -30,3 +30,374 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all archived stickers: messages.getArchivedStickers + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get featured stickers: messages.getFeaturedStickers + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get masks: messages.getMaskStickers + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent stickers: messages.getRecentStickers + + * Get saved gifs: messages.getSavedGifs + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam: account.reportPeer + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v62/methods/README.md b/old_docs/API_docs_v62/methods/README.md index a161eab63a1..4d1cd9d9ce5 100644 --- a/old_docs/API_docs_v62/methods/README.md +++ b/old_docs/API_docs_v62/methods/README.md @@ -30,3 +30,400 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Destroy current authorization key: destroy_auth_key + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all archived stickers: messages.getArchivedStickers + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get featured stickers: messages.getFeaturedStickers + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get masks: messages.getMaskStickers + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent stickers: messages.getRecentStickers + + * Get saved gifs: messages.getSavedGifs + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Set account TTL: account.setAccountTTL + + * Set privacy settings: account.setPrivacy + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v65/methods/README.md b/old_docs/API_docs_v65/methods/README.md index a161eab63a1..5c19064a789 100644 --- a/old_docs/API_docs_v65/methods/README.md +++ b/old_docs/API_docs_v65/methods/README.md @@ -30,3 +30,450 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Destroy current authorization key: destroy_auth_key + + * Destroy the current MTProto session: destroy_session + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Do not send answer to provided request: rpc_drop_answer + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all archived stickers: messages.getArchivedStickers + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get featured stickers: messages.getFeaturedStickers + + * Get future salts: get_future_salts + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get masks: messages.getMaskStickers + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent stickers: messages.getRecentStickers + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Pings the server and causes disconection if the same method is not called within ping_disconnect_delay: ping_delay_disconnect + + * Pings the server: ping + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Requests Diffie-hellman parameters for key exchange: req_DH_params + + * Requests PQ for factorization: req_pq + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save developer info for telegram contest: contest.saveDeveloperInfo + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Sets client diffie-hellman parameters: set_client_DH_params + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v66/methods/README.md b/old_docs/API_docs_v66/methods/README.md index a161eab63a1..2f52732f2b1 100644 --- a/old_docs/API_docs_v66/methods/README.md +++ b/old_docs/API_docs_v66/methods/README.md @@ -30,3 +30,456 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Destroy current authorization key: destroy_auth_key + + * Destroy the current MTProto session: destroy_session + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Do not send answer to provided request: rpc_drop_answer + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get all archived stickers: messages.getArchivedStickers + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get featured stickers: messages.getFeaturedStickers + + * Get future salts: get_future_salts + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get masks: messages.getMaskStickers + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent stickers: messages.getRecentStickers + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick user from channel: channels.kickFromChannel + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Pings the server and causes disconection if the same method is not called within ping_disconnect_delay: ping_delay_disconnect + + * Pings the server: ping + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Requests Diffie-hellman parameters for key exchange: req_DH_params + + * Requests PQ for factorization: req_pq + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save developer info for telegram contest: contest.saveDeveloperInfo + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Sets client diffie-hellman parameters: set_client_DH_params + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v68/methods/README.md b/old_docs/API_docs_v68/methods/README.md index a161eab63a1..3e8d0ebedd3 100644 --- a/old_docs/API_docs_v68/methods/README.md +++ b/old_docs/API_docs_v68/methods/README.md @@ -30,3 +30,476 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Destroy current authorization key: destroy_auth_key + + * Destroy the current MTProto session: destroy_session + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Do not send answer to provided request: rpc_drop_answer + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get featured stickers: messages.getFeaturedStickers + + * Get future salts: get_future_salts + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get masks: messages.getMaskStickers + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent stickers: messages.getRecentStickers + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Pings the server and causes disconection if the same method is not called within ping_disconnect_delay: ping_delay_disconnect + + * Pings the server: ping + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Requests Diffie-hellman parameters for key exchange: req_DH_params + + * Requests PQ for factorization: req_pq + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save developer info for telegram contest: contest.saveDeveloperInfo + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Sets client diffie-hellman parameters: set_client_DH_params + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v70/methods/README.md b/old_docs/API_docs_v70/methods/README.md index a161eab63a1..2b141e84082 100644 --- a/old_docs/API_docs_v70/methods/README.md +++ b/old_docs/API_docs_v70/methods/README.md @@ -30,3 +30,480 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Destroy current authorization key: destroy_auth_key + + * Destroy the current MTProto session: destroy_session + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Do not send answer to provided request: rpc_drop_answer + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get featured stickers: messages.getFeaturedStickers + + * Get future salts: get_future_salts + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get masks: messages.getMaskStickers + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent stickers: messages.getRecentStickers + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Pings the server and causes disconection if the same method is not called within ping_disconnect_delay: ping_delay_disconnect + + * Pings the server: ping + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Requests Diffie-hellman parameters for key exchange: req_DH_params + + * Requests PQ for factorization: req_pq + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save developer info for telegram contest: contest.saveDeveloperInfo + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Sets client diffie-hellman parameters: set_client_DH_params + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v71/methods/README.md b/old_docs/API_docs_v71/methods/README.md index a161eab63a1..34c712720e5 100644 --- a/old_docs/API_docs_v71/methods/README.md +++ b/old_docs/API_docs_v71/methods/README.md @@ -30,3 +30,492 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete this account: account.deleteAccount + + * Destroy current authorization key: destroy_auth_key + + * Destroy the current MTProto session: destroy_session + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Do not send answer to provided request: rpc_drop_answer + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get future salts: get_future_salts + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get masks: messages.getMaskStickers + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent stickers: messages.getRecentStickers + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Pings the server and causes disconection if the same method is not called within ping_disconnect_delay: ping_delay_disconnect + + * Pings the server: ping + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Requests Diffie-hellman parameters for key exchange: req_DH_params + + * Requests PQ for factorization: req_pq + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save developer info for telegram contest: contest.saveDeveloperInfo + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Sets client diffie-hellman parameters: set_client_DH_params + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v72/methods/README.md b/old_docs/API_docs_v72/methods/README.md index a161eab63a1..98b455908f5 100644 --- a/old_docs/API_docs_v72/methods/README.md +++ b/old_docs/API_docs_v72/methods/README.md @@ -30,3 +30,502 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Destroy current authorization key: destroy_auth_key + + * Destroy the current MTProto session: destroy_session + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Do not send answer to provided request: rpc_drop_answer + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get future salts: get_future_salts + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get masks: messages.getMaskStickers + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Pings the server and causes disconection if the same method is not called within ping_disconnect_delay: ping_delay_disconnect + + * Pings the server: ping + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Requests Diffie-hellman parameters for key exchange: req_DH_params + + * Requests PQ for factorization: req_pq + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save developer info for telegram contest: contest.saveDeveloperInfo + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Sets client diffie-hellman parameters: set_client_DH_params + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v73/methods/README.md b/old_docs/API_docs_v73/methods/README.md index a161eab63a1..70bb7697007 100644 --- a/old_docs/API_docs_v73/methods/README.md +++ b/old_docs/API_docs_v73/methods/README.md @@ -30,3 +30,486 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward message: messages.forwardMessage + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get masks: messages.getMaskStickers + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v75/methods/README.md b/old_docs/API_docs_v75/methods/README.md index a161eab63a1..0162e9db9b1 100644 --- a/old_docs/API_docs_v75/methods/README.md +++ b/old_docs/API_docs_v75/methods/README.md @@ -30,3 +30,492 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this phone number is registered on telegram: auth.checkPhone + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get masks: messages.getMaskStickers + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get terms of service: help.getTermsOfService + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invite friends to telegram!: auth.sendInvites + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v81/methods/README.md b/old_docs/API_docs_v81/methods/README.md index a161eab63a1..95208888e68 100644 --- a/old_docs/API_docs_v81/methods/README.md +++ b/old_docs/API_docs_v81/methods/README.md @@ -30,3 +30,536 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v82/methods/README.md b/old_docs/API_docs_v82/methods/README.md index a161eab63a1..8632e47c9b5 100644 --- a/old_docs/API_docs_v82/methods/README.md +++ b/old_docs/API_docs_v82/methods/README.md @@ -30,3 +30,542 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark dialog as unread : messages.markDialogUnread + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Toggle top peers: contacts.toggleTopPeers + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v86/methods/README.md b/old_docs/API_docs_v86/methods/README.md index a161eab63a1..0c602e65753 100644 --- a/old_docs/API_docs_v86/methods/README.md +++ b/old_docs/API_docs_v86/methods/README.md @@ -30,3 +30,546 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all drafts: messages.clearAllDrafts + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get passport config: help.getPassportConfig + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark dialog as unread : messages.markDialogUnread + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Toggle top peers: contacts.toggleTopPeers + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v89/methods/README.md b/old_docs/API_docs_v89/methods/README.md index a161eab63a1..44b091b782f 100644 --- a/old_docs/API_docs_v89/methods/README.md +++ b/old_docs/API_docs_v89/methods/README.md @@ -30,3 +30,564 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Cancel password recovery email: account.cancelPasswordEmail + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all drafts: messages.clearAllDrafts + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm password recovery using email: account.confirmPasswordEmail + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Edit user info: help.editUserInfo + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Export contact as card: contacts.exportCard + + * Export the invite link of a channel: channels.exportInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get contacts by IDs: contacts.getContactIDs + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get language: langpack.getLanguage + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get passport config: help.getPassportConfig + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get support name: help.getSupportName + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get user info: help.getUserInfo + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import card as contact: contacts.importCard + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark dialog as unread : messages.markDialogUnread + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Resend password recovery email: account.resendPasswordEmail + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Toggle top peers: contacts.toggleTopPeers + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update pinned message: messages.updatePinnedMessage + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v91/methods/README.md b/old_docs/API_docs_v91/methods/README.md index a161eab63a1..120259a40b2 100644 --- a/old_docs/API_docs_v91/methods/README.md +++ b/old_docs/API_docs_v91/methods/README.md @@ -30,3 +30,576 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Cancel password recovery email: account.cancelPasswordEmail + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all drafts: messages.clearAllDrafts + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm password recovery using email: account.confirmPasswordEmail + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Contact signup notification setting value: account.getContactSignUpNotification + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete contacts by phones: contacts.deleteByPhones + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit the about text of a channel/supergroup: channels.editAbout + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Edit user info: help.editUserInfo + + * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Export the invite link of a channel: channels.exportInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get app config: help.getAppConfig + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get contacts by IDs: contacts.getContactIDs + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get language: langpack.getLanguage + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification exceptions: account.getNotifyExceptions + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get online users: messages.getOnlines + + * Get passport config: help.getPassportConfig + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get poll results: messages.getPollResults + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stats URL: messages.getStatsURL + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get support name: help.getSupportName + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get user info: help.getUserInfo + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark dialog as unread : messages.markDialogUnread + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Resend password recovery email: account.resendPasswordEmail + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send vote: messages.sendVote + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set contact sign up notification: account.setContactSignUpNotification + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Toggle top peers: contacts.toggleTopPeers + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update pinned message: messages.updatePinnedMessage + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v95/methods/README.md b/old_docs/API_docs_v95/methods/README.md index a161eab63a1..44b914d181c 100644 --- a/old_docs/API_docs_v95/methods/README.md +++ b/old_docs/API_docs_v95/methods/README.md @@ -30,3 +30,582 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Cancel password recovery email: account.cancelPasswordEmail + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all drafts: messages.clearAllDrafts + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm password recovery using email: account.confirmPasswordEmail + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Contact signup notification setting value: account.getContactSignUpNotification + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete contacts by phones: contacts.deleteByPhones + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit chat info: messages.editChatAbout + + * Edit default rights of chat: messages.editChatDefaultBannedRights + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Edit user info: help.editUserInfo + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get app config: help.getAppConfig + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get contacts by IDs: contacts.getContactIDs + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get language: langpack.getLanguage + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification exceptions: account.getNotifyExceptions + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get online users: messages.getOnlines + + * Get passport config: help.getPassportConfig + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get poll results: messages.getPollResults + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stats URL: messages.getStatsURL + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get support name: help.getSupportName + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get user info: help.getUserInfo + + * Get wallpaper info: account.getWallPaper + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Install wallpaper: account.installWallPaper + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark dialog as unread : messages.markDialogUnread + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Resend password recovery email: account.resendPasswordEmail + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Reset wallpapers: account.resetWallPapers + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Save wallpaper: account.saveWallPaper + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send vote: messages.sendVote + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set contact sign up notification: account.setContactSignUpNotification + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Toggle top peers: contacts.toggleTopPeers + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update pinned message: messages.updatePinnedMessage + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Upload wallpaper: account.uploadWallPaper + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file diff --git a/old_docs/API_docs_v97/methods/README.md b/old_docs/API_docs_v97/methods/README.md index a161eab63a1..af8aa1d5551 100644 --- a/old_docs/API_docs_v97/methods/README.md +++ b/old_docs/API_docs_v97/methods/README.md @@ -30,3 +30,592 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html) +* Accept telegram passport authorization: account.acceptAuthorization + + * Accept telegram's TOS: help.acceptTermsOfService + + * Add a sticker set: messages.installStickerSet + + * Add a sticker to favorites: messages.faveSticker + + * Add a sticker to recent stickers: messages.saveRecentSticker + + * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser + + * Add phone number as contact: contacts.importContacts + + * Add sticker to stickerset: stickers.addStickerToSet + + * Add users to channel/supergroup: channels.inviteToChannel + + * Block a user: contacts.block + + * Bots only: get telegram passport authorization form: account.getAuthorizationForm + + * Bots only: send payment form: payments.sendPaymentForm + + * Bots only: set precheckout results: messages.setBotPrecheckoutResults + + * Bots only: set shipping results: messages.setBotShippingResults + + * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer + + * Bots only: set the results of an inline query: messages.setInlineBotResults + + * Call inline bot: messages.getInlineBotResults + + * Cancel password recovery email: account.cancelPasswordEmail + + * Change notification settings: account.updateNotifySettings + + * Change sticker position in photo: stickers.changeStickerPosition + + * Change the phone number associated to this account: account.changePhone + + * Change the phone number: account.sendChangePhoneCode + + * Change the profile photo: photos.updateProfilePhoto + + * Change typing status: messages.setTyping + + * Check if about to edit a message or a media caption: messages.getMessageEditData + + * Check if an invitation link is valid: messages.checkChatInvite + + * Check if this username is available: account.checkUsername + + * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername + + * Clear all drafts: messages.clearAllDrafts + + * Clear all recent stickers: messages.clearRecentStickers + + * Clear saved payments info: payments.clearSavedInfo + + * Confirm password recovery using email: account.confirmPasswordEmail + + * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone + + * Contact signup notification setting value: account.getContactSignUpNotification + + * Convert chat to supergroup: messages.migrateChat + + * Create a chat (not supergroup): messages.createChat + + * Create channel/supergroup: channels.createChannel + + * Create stickerset: stickers.createStickerSet + + * Delete a certain session: account.resetAuthorization + + * Delete a certain telegram web login authorization: account.resetWebAuthorization + + * Delete a channel/supergroup: channels.deleteChannel + + * Delete a contact: contacts.deleteContact + + * Delete a user from a chat (not supergroup): messages.deleteChatUser + + * Delete all logged-in sessions.: auth.resetAuthorizations + + * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory + + * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys + + * Delete channel/supergroup messages: channels.deleteMessages + + * Delete chat history: messages.deleteHistory + + * Delete contacts by phones: contacts.deleteByPhones + + * Delete messages: messages.deleteMessages + + * Delete multiple contacts: contacts.deleteContacts + + * Delete profile photos: photos.deletePhotos + + * Delete secure telegram passport value: account.deleteSecureValue + + * Delete the history of a supergroup/channel: channels.deleteHistory + + * Delete this account: account.deleteAccount + + * Disable all notifications for a certain period: account.updateDeviceLocked + + * Download a file through telegram: upload.getWebFile + + * Edit a message: messages.editMessage + + * Edit a sent inline message: messages.editInlineBotMessage + + * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin + + * Edit admin permissions: messages.editChatAdmin + + * Edit chat info: messages.editChatAbout + + * Edit default rights of chat: messages.editChatDefaultBannedRights + + * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto + + * Edit the photo of a supergroup/channel: channels.editPhoto + + * Edit the title of a normal chat (not supergroup): messages.editChatTitle + + * Edit the title of a supergroup/channel: channels.editTitle + + * Edit user info: help.editUserInfo + + * Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden + + * Export chat invite : messages.exportChatInvite + + * Find a sticker set: messages.searchStickerSets + + * Finish account exporting session: account.finishTakeoutSession + + * Forward messages: messages.forwardMessages + + * Get CDN configuration: help.getCdnConfig + + * Get a stickerset: messages.getStickerSet + + * Get account TTL: account.getAccountTTL + + * Get admin log of a channel/supergroup: channels.getAdminLog + + * Get all archived stickers: messages.getArchivedStickers + + * Get all channels you left: channels.getLeftChannels + + * Get all chats (not supergroups or channels): messages.getAllChats + + * Get all contacts: contacts.getContacts + + * Get all logged-in authorizations: account.getAuthorizations + + * Get all message drafts: messages.getAllDrafts + + * Get all secure telegram passport values: account.getAllSecureValues + + * Get all stickerpacks: messages.getAllStickers + + * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels + + * Get and increase message views: messages.getMessagesViews + + * Get app config: help.getAppConfig + + * Get autodownload settings: account.getAutoDownloadSettings + + * Get available languages: langpack.getLanguages + + * Get blocked users: contacts.getBlocked + + * Get call configuration: phone.getCallConfig + + * Get channel/supergroup messages: channels.getMessages + + * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants + + * Get chats in common with a user: messages.getCommonChats + + * Get contacts by IDs: contacts.getContactIDs + + * Get deep link info: help.getDeepLinkInfo + + * Get dialog info of peers: messages.getPeerDialogs + + * Get dialogs marked as unread manually: messages.getDialogUnreadMarks + + * Get document by SHA256 hash: messages.getDocumentByHash + + * Get emoji URL: messages.getEmojiURL + + * Get emoji keyword difference: messages.getEmojiKeywordsDifference + + * Get emoji keywords: messages.getEmojiKeywords + + * Get favorite stickers: messages.getFavedStickers + + * Get featured stickers: messages.getFeaturedStickers + + * Get file hashes: upload.getFileHashes + + * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores + + * Get high scores of a game: messages.getGameHighScores + + * Get info about a certain channel/supergroup participant: channels.getParticipant + + * Get info about app updates: help.getAppUpdate + + * Get info about chats: messages.getChats + + * Get info about multiple channels/supergroups: channels.getChannels + + * Get info about users: users.getUsers + + * Get info of support user: help.getSupport + + * Get information about the current proxy: help.getProxyData + + * Get invitation text: help.getInviteText + + * Get language pack strings: langpack.getStrings + + * Get language pack updates: langpack.getDifference + + * Get language pack: langpack.getLangPack + + * Get language: langpack.getLanguage + + * Get masks: messages.getMaskStickers + + * Get message ranges to fetch: messages.getSplitRanges + + * Get messages: messages.getMessages + + * Get most used chats: contacts.getTopPeers + + * Get nearest datacenter: help.getNearestDc + + * Get notification exceptions: account.getNotifyExceptions + + * Get notification settings: account.getNotifySettings + + * Get online status of all users: contacts.getStatuses + + * Get online users: messages.getOnlines + + * Get passport config: help.getPassportConfig + + * Get payment form: payments.getPaymentForm + + * Get payment receipt: payments.getPaymentReceipt + + * Get pinned dialogs: messages.getPinnedDialogs + + * Get poll results: messages.getPollResults + + * Get previous messages of a group: messages.getHistory + + * Get privacy settings: account.getPrivacy + + * Get recent locations: messages.getRecentLocations + + * Get recent stickers: messages.getRecentStickers + + * Get recent t.me URLs: help.getRecentMeUrls + + * Get saved contacts: contacts.getSaved + + * Get saved gifs: messages.getSavedGifs + + * Get saved payments info: payments.getSavedInfo + + * Get secure value for telegram passport: account.getSecureValue + + * Get server configuration: help.getConfig + + * Get stats URL: messages.getStatsURL + + * Get stickers attachable to images: messages.getAttachedStickers + + * Get stickers: messages.getStickers + + * Get support name: help.getSupportName + + * Get telegram web login authorizations: account.getWebAuthorizations + + * Get temporary password for buying products through bots: account.getTmpPassword + + * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer + + * Get the changelog of this app: help.getAppChangelog + + * Get the current 2FA settings: account.getPasswordSettings + + * Get the current password: account.getPassword + + * Get the link of a message in a channel: channels.exportMessageLink + + * Get the profile photos of a user: photos.getUserPhotos + + * Get the settings of apeer: messages.getPeerSettings + + * Get unread mentions: messages.getUnreadMentions + + * Get updated TOS: help.getTermsOfServiceUpdate + + * Get user info: help.getUserInfo + + * Get wallpaper info: account.getWallPaper + + * Get webpage preview: messages.getWebPage + + * Get webpage preview: messages.getWebPagePreview + + * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs + + * Global message search: messages.searchGlobal + + * Hide report spam popup: messages.hideReportSpam + + * Import chat invite: messages.importChatInvite + + * Initializes connection and save information on the user's device and application.: initConnection + + * Install wallpaper: account.installWallPaper + + * Invalidate sent phone code: auth.cancelCode + + * Invoke method from takeout session: invokeWithTakeout + + * Invoke this method with layer X: invokeWithLayer + + * Invoke with messages range: invokeWithMessagesRange + + * Invoke with method without returning updates in the socket: invokeWithoutUpdates + + * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg + + * Join a channel/supergroup: channels.joinChannel + + * Kick or ban a user from a channel/supergroup: channels.editBanned + + * Leave a channel/supergroup: channels.leaveChannel + + * Log data for developer of this app: help.saveAppLog + + * Mark channel/supergroup history as read: channels.readHistory + + * Mark channel/supergroup messages as read: channels.readMessageContents + + * Mark dialog as unread : messages.markDialogUnread + + * Mark mentions as read: messages.readMentions + + * Mark message as read: messages.readMessageContents + + * Mark messages as read in secret chats: messages.readEncryptedHistory + + * Mark messages as read: messages.readHistory + + * Mark messages as read: messages.receivedMessages + + * Mark new featured stickers as read: messages.readFeaturedStickers + + * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall + + * Pin or unpin dialog: messages.toggleDialogPin + + * Register device for push notifications: account.registerDevice + + * Remove a sticker set: messages.uninstallStickerSet + + * Remove sticker from stickerset: stickers.removeStickerFromSet + + * Reorder pinned dialogs: messages.reorderPinnedDialogs + + * Reorder sticker sets: messages.reorderStickerSets + + * Report a message in a supergroup/channel for spam: channels.reportSpam + + * Report a message: messages.report + + * Report a peer for spam: messages.reportSpam + + * Report for spam a secret chat: messages.reportEncryptedSpam + + * Report for spam: account.reportPeer + + * Resend password recovery email: account.resendPasswordEmail + + * Resend the SMS verification code: auth.resendCode + + * Reset all notification settings: account.resetNotifySettings + + * Reset all telegram web login authorizations: account.resetWebAuthorizations + + * Reset saved contacts: contacts.resetSaved + + * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating + + * Reset wallpapers: account.resetWallPapers + + * Result type returned by a current query.: invokeAfterMsgs + + * Returns a list of available wallpapers.: account.getWallPapers + + * Save a GIF: messages.saveGif + + * Save a message draft: messages.saveDraft + + * Save autodownload settings: account.saveAutoDownloadSettings + + * Save call debugging info: phone.saveCallDebug + + * Save telegram passport secure value: account.saveSecureValue + + * Save wallpaper: account.saveWallPaper + + * Search contacts: contacts.search + + * Search gifs: messages.searchGifs + + * Search peers or messages: messages.search + + * Send a custom request to the bot API: bots.sendCustomRequest + + * Send a file to a secret chat: messages.sendEncryptedFile + + * Send a media: messages.sendMedia + + * Send a message: messages.sendMessage + + * Send a service message to a secret chat: messages.sendEncryptedService + + * Send an album: messages.sendMultiMedia + + * Send an email to recover the 2FA password: auth.requestPasswordRecovery + + * Send confirmation phone code: account.sendConfirmPhoneCode + + * Send email verification code: account.sendVerifyEmailCode + + * Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult + + * Send message to secret chat: messages.sendEncrypted + + * Send phone verification code: account.sendVerifyPhoneCode + + * Send screenshot notification: messages.sendScreenshotNotification + + * Send typing notification to secret chat: messages.setEncryptedTyping + + * Send vote: messages.sendVote + + * Send webhook request via bot API: bots.answerWebhookJSONQuery + + * Set account TTL: account.setAccountTTL + + * Set contact sign up notification: account.setContactSignUpNotification + + * Set phone call rating: phone.setCallRating + + * Set privacy settings: account.setPrivacy + + * Set secure value error for telegram passport: users.setSecureValueErrors + + * Set the game score of an inline message: messages.setInlineGameScore + + * Set the game score: messages.setGameScore + + * Set the supergroup/channel stickerpack: channels.setStickers + + * Set the update status of webhook: help.setBotUpdatesStatus + + * Start a bot: messages.startBot + + * Start account exporting session: account.initTakeoutSession + + * Stop sending PUSH notifications to app: account.unregisterDevice + + * Toggle channel signatures: channels.toggleSignatures + + * Toggle top peers: contacts.toggleTopPeers + + * Unblock a user: contacts.unblock + + * Update online status: account.updateStatus + + * Update pinned message: messages.updatePinnedMessage + + * Update profile info: account.updateProfile + + * Update the username of a supergroup/channel: channels.updateUsername + + * Update this user's username: account.updateUsername + + * Upload a file without sending it to anyone: messages.uploadMedia + + * Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile + + * Upload profile photo: photos.uploadProfilePhoto + + * Upload wallpaper: account.uploadWallPaper + + * Use phone_login instead: auth.sendCode + + * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword + + * Validate requested payment info: payments.validateRequestedInfo + + * Verify email address: account.verifyEmail + + * Verify phone number: account.verifyPhone + + * You cannot use this method directly, instead modify the PFS and default_temp_auth_key_expires_in settings, see https://docs.madelineproto.xyz/docs/SETTINGS.html for more info: auth.bindTempAuthKey + + * You cannot use this method directly, instead use $MadelineProto->get_dh_config();: messages.getDhConfig + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.acceptEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.discardEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats: messages.requestEncryption + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getChannelDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getDifference + + * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates: updates.getState + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.acceptCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.confirmCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.discardCall + + * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls: phone.requestCall + + * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization + + * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization + + * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info): auth.importBotAuthorization + + * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info): auth.checkPassword + + * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info): auth.signIn + + * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): channels.getFullChannel + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat + + * You cannot use this method directly, use the get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): users.getFullUser + + * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info): auth.logOut + + * You cannot use this method directly, use the resolve_username, get_pwr_chat, get_info, get_full_info methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getCdnFileHashes + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.reuploadCdnFile + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart + + * You cannot use this method directly, use the upload, download_to_stream, download_to_file, download_to_dir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart + + * You cannot use this method directly: messages.receivedQueue + + * You cannot use this method directly; use $MadelineProto->update_2fa($params), instead (see https://docs.madelineproto.xyz for more info): account.updatePasswordSettings + + \ No newline at end of file