--- title: Methods description: What do you want to do? image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # What do you want to do? [Go back to API documentation index](..) [Go to the old code-version method index](api_README.md) * [Logout](https://docs.madelineproto.xyz/logout.html) * [Login](https://docs.madelineproto.xyz/docs/LOGIN.html) * [Change 2FA password](https://docs.madelineproto.xyz/update2fa.html) * [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html) * [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/getPwrChat.html) * [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/getFullInfo.html) * [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/getInfo.html) * [Get info about the currently logged-in user](https://docs.madelineproto.xyz/getSelf.html) * [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) * Adds a user to a chat and sends a service message on it: messages.addChatUser * Adds the user to the blacklist: contacts.block * Chanages chat name and sends a service message on it: messages.editChatTitle * Change privacy settings of current account: account.setPrivacy * Change the phone number of the current account: account.changePhone * Changes chat photo and sends a service message on it: messages.editChatPhoto * Changes username for the current user: account.updateUsername * Check if this phone number is registered on telegram: auth.checkPhone * Confirms receipt of messages by a client, cancels PUSH-notification sending: messages.receivedMessages * Creates a new chat: messages.createChat * Delete a contact: contacts.deleteContact * Delete the user's account from the telegram servers. Can be used, for example, to delete the account of a user that provided the login code, but forgot the [2FA password and no recovery method is configured](https://core.telegram.org/api/srp): account.deleteAccount * Deletes a device by its token, stops sending PUSH-notifications to it: account.unregisterDevice * Deletes a user from a chat and sends a service message on it: messages.deleteChatUser * Deletes communication history: messages.deleteHistory * Deletes messages by their identifiers: messages.deleteMessages * Deletes profile photos: photos.deletePhotos * Deletes several contacts from the list: contacts.deleteContacts * Deletes the user from the blacklist: contacts.unblock * Edits notification settings from a given user/group, from all users/all groups: account.updateNotifySettings * Export contact as card: contacts.exportCard * Forward message: messages.forwardMessage * Forwards messages by their IDs: messages.forwardMessages * Get all installed stickers: messages.getAllStickers * Get days to live of account: account.getAccountTTL * Get privacy settings of current account: account.getPrivacy * Get stickers by emoji: messages.getStickers * Get suggested contacts: contacts.getSuggested * Gets back found messages: messages.search * Gets back the conversation history with one interlocutor / within a chat: messages.getHistory * Gets current notification settings for a given user/group, from all users/all groups: account.getNotifySettings * Import card as contact: contacts.importCard * Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info: contacts.importContacts * Initialize connection: initConnection * Installs a previously uploaded photo as a profile photo: photos.updateProfilePhoto * Invite friends to telegram!: auth.sendInvites * Invoke the specified query using the specified API [layer](https://core.telegram.org/api/invoking#layers): invokeWithLayer * Invokes a query after a successfull completion of previous queries: invokeAfterMsgs * Invokes a query after successfull completion of one of the previous queries: invokeAfterMsg * Marks message history as read: messages.readHistory * Marks message history within a secret chat as read: messages.readEncryptedHistory * Notifies the sender about the recipient having listened a voice message or watched a video: messages.readMessageContents * Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates): account.registerDevice * Report a new incoming chat for spam, if the [peer settings](../constructors/peerSettings.md) of the chat allow us to do that: messages.reportSpam * Report a peer for violation of telegram's Terms of Service: account.reportPeer * Resets all notification settings from users and groups: account.resetNotifySettings * Returns a list of available wallpapers: account.getWallPapers * Returns basic user info according to their identifiers: users.getUsers * Returns chat basic info on their IDs: messages.getChats * Returns current configuration, icluding data center configuration: help.getConfig * Returns info on data centre nearest to the user: help.getNearestDc * Returns information on update availability for the current application: help.getAppUpdate * Returns text of a text message with an invitation: help.getInviteText * Returns the current user dialog list: messages.getDialogs * Returns the current user's contact list: contacts.getContacts * Returns the list of blocked users: contacts.getBlocked * Returns the list of contact statuses: contacts.getStatuses * Returns the list of messages by their IDs: messages.getMessages * Returns the list of user photos: photos.getUserPhotos * Returns the support user for the 'ask a question' feature: help.getSupport * Returns users found by username substring: contacts.search * Saves logs of application on the server: help.saveAppLog * Send SMS verification code: auth.sendSms * Send a media: messages.sendMedia * Send a message to all users in the chat list: messages.sendBroadcast * Send typing event by the current user to a secret chat: messages.setEncryptedTyping * Send verification phone call: auth.sendCall * Sends a current user typing event (see [SendMessageAction](../types/SendMessageAction.md) for all event types) to a conversation partner or group: messages.setTyping * Sends a message to a chat: messages.sendMessage * Sends a message with a file attachment to a secret chat: messages.sendEncryptedFile * Sends a service message to a secret chat: messages.sendEncryptedService * Sends a text message to a secret chat: messages.sendEncrypted * Set account self-destruction period: account.setAccountTTL * Terminates all user's authorized sessions except for the current one: auth.resetAuthorizations * Updates current user profile photo: photos.uploadProfilePhoto * Updates online user status: account.updateStatus * Updates user profile: account.updateProfile * Validates a username and checks availability: account.checkUsername * Verify a new phone number to associate to the current account: account.sendChangePhoneCode * When client-side passcode lock feature is enabled, will not show message texts in incoming [PUSH notifications](https://core.telegram.org/api/push-updates): account.updateDeviceLocked * 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->getDhConfig();: 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->exportAuthorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.exportAuthorization * You cannot use this method directly, use $MadelineProto->importAuthorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html: auth.importAuthorization * You cannot use this method directly, use the completePhoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.signIn * You cannot use this method directly, use the completeSignup method instead (see https://docs.madelineproto.xyz for more info): auth.signUp * You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): messages.getFullChat * You cannot use this method directly, use the getPwrChat, getInfo, getFullInfo 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 phoneLogin method instead (see https://docs.madelineproto.xyz for more info): auth.sendCode * You cannot use this method directly, use the resolveUsername, getPwrChat, getInfo, getFullInfo methods instead (see https://docs.madelineproto.xyz for more info): contacts.resolveUsername * You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.getFile * You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveBigFilePart * You cannot use this method directly, use the upload, downloadToStream, downloadToFile, downloadToDir methods instead; see https://docs.madelineproto.xyz for more info: upload.saveFilePart * You cannot use this method directly: messages.receivedQueue