--- title: Methods description: What do you want to do? --- # What do you want to do? [Go back to API documentation index](..) [Go to the old code-version method index](api_index.html) * [Logout](https://docs.madelineproto.xyz/logout.html) * [Login](https://docs.madelineproto.xyz/docs/LOGIN.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/get_pwr_chat.html) * [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html) * [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html) * [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.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) ***

* Change the phone number associated to this account * Check if this username is available * Delete this account * Get account TTL * Get all logged-in authorizations * Get notification settings * Get the current password * Get the current 2FA settings * Get privacy settings * Returns a list of available wallpapers. * Register device for push notifications * Delete a certain session * Reset all notification settings * Change the phone number * Set account TTL * Set privacy settings * Stop sending PUSH notifications to app * Disable all notifications for a certain period * Change notification settings * Update the 2FA password settings * Update profile info * Update online status * Update this user's username ***

* 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 * You cannot use this method directly, use the complete_2fa_login method instead (see https://docs.madelineproto.xyz for more info) * Check if this phone number is registered on telegram * You cannot use this method directly, use $MadelineProto->export_authorization() instead, see https://docs.madelineproto.xyz/docs/LOGIN.html * You cannot use this method directly, use $MadelineProto->import_authorization($authorization) instead, see https://docs.madelineproto.xyz/docs/LOGIN.html * You cannot use this method directly, use the bot_login method instead (see https://docs.madelineproto.xyz for more info) * You cannot use this method directly, use the logout method instead (see https://docs.madelineproto.xyz for more info) * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account * Send an email to recover the 2FA password * Delete all logged-in sessions. * Send verification phone call * Use phone_login instead * Invite friends to telegram! * Send SMS verification code * You cannot use this method directly, use the complete_phone_login method instead (see https://docs.madelineproto.xyz for more info) * You cannot use this method directly, use the complete_signup method instead (see https://docs.madelineproto.xyz for more info) ***

* Block a user * Delete a contact * Delete multiple contacts * Export contact as card * Get blocked users * Get info about a certain contact * Get online status of all users * Get suggested contacts * Import card as contact * Add phone number as contact * 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) * Search contacts * Unblock a user ***

* Join a geochat * Create geochat * Edit geochat photo * Edit geochat title * Get full info about a geochat * Get geochat history * Get nearby geochats * Get recent geochats * Search messages in geocha * Send media to geochat * Send message to geochat * Send typing notification to geochat ***

* Get the changelog of this app * Get info about app updates * Get server configuration * Get invitation text * Get nearest datacenter * Get info of support user * Log data for developer of this app ***

* Initializes connection and save information on the user's device and application. ***

* Invokes a query after successfull completion of one of the previous queries. ***

* Result type returned by a current query. ***

* Invoke this method with layer X ***

* Invoke with method without returning updates in the socket ***

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats * Add a user to a normal chat (use channels->inviteToChannel for supergroups) * Check if an invitation link is valid * Create a chat (not supergroup) * Delete a user from a chat (not supergroup) * Delete chat history * Delete messages * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats * Edit the photo of a normal chat (not supergroup) * Edit the title of a normal chat (not supergroup) * Export chat invite * Forward message * Forward messages * Get all stickerpacks * Get info about chats * You cannot use this method directly, instead use $MadelineProto->get_dh_config(); * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html * 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) * Get previous messages of a group * Get messages * Get a stickerset * Get stickers * Get webpage preview * Import chat invite * Add a sticker set * Mark messages as read in secret chats * Mark messages as read * Mark message as read * Mark messages as read * You cannot use this method directly * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats * Search peers or messages * Send a message to all users in the chat list * Send message to secret chat * Send a file to a secret chat * Send a service message to a secret chat * Send a media * Send a message * Send typing notification to secret chat * Change typing status * Start a bot * Remove a sticker set ***

* Delete profile photos * Get the profile photos of a user * Update the profile photo (use photos->uploadProfilePhoto to upload the photo) * Upload profile photo ***

* You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling updates ***

* 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 * 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 * 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 ***

* 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) * Get info about users