---
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/update_2fa.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)
* 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->getDialogs() 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->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 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