--- 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 * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode * 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 * Get temporary password for buying products through bots * Returns a list of available wallpapers. * Register device for push notifications * Report for spam * Delete a certain session * Reset all notification settings * Change the phone number * Send confirmation phone code * 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 * Invalidate sent phone code * 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 * Delete all temporary authorization keys except the ones provided * 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 * Resend the SMS verification code * Delete all logged-in sessions. * Use phone_login instead * Invite friends to telegram! * 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) ***

* Send webhook request via bot API * Send a custom request to the bot API ***

* Check if this username is free and can be assigned to a channel/supergroup * Create channel/supergroup * Delete a channel/supergroup * Delete channel/supergroup messages * Delete all messages of a user in a channel/supergroup * Edit the about text of a channel/supergroup * Edit admin permissions of a user in a channel/supergroup * Kick or ban a user from a channel/supergroup * Edit the photo of a supergroup/channel * Edit the title of a supergroup/channel * Export the invite link of a channel * Get the link of a message in a channel * Get admin log of a channel/supergroup * Get all supergroups/channels where you're admin * Get info about multiple channels/supergroups * 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 channel/supergroup messages * Get info about a certain channel/supergroup participant * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead) * Add users to channel/supergroup * Join a channel/supergroup * Leave a channel/supergroup * Mark channel/supergroup history as read * Report a supergroup/channel for spam * Allow or disallow any user to invite users to this channel/supergroup * Toggle channel signatures * Set the pinned message of a channel/supergroup * Update the username of a supergroup/channel ***

* 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 most used chats * Import card as contact * Add phone number as contact * Reset top peer rating for a certain category/peer * 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 ***

* Save developer info for telegram contest ***

* Destroy current authorization key * Destroy the current MTProto session ***

* Get future salts ***

* Get the changelog of this app * Get info about app updates * Get CDN configuration * Get server configuration * Get invitation text * Get nearest datacenter * Get info of support user * Get terms of service * Log data for developer of this app * Set the update status of webhook ***

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

* Get language pack updates * Get language pack * Get available languages * Get language pack strings ***

* 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 * Clear all recent stickers * 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 admin permissions * Edit the photo of a normal chat (not supergroup) * Edit the title of a normal chat (not supergroup) * Edit a sent inline message * Edit a message * Export chat invite * Forward message * Forward messages * Get all chats (not supergroups or channels) * Get all message drafts * Get all stickerpacks * Get all archived stickers * Get stickers attachable to images * Get the callback answer of a bot (after clicking a button) * Get info about chats * Get chats in common with a user * 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 * Get document by SHA256 hash * Get featured stickers * 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 high scores of a game * Get previous messages of a group * Call inline bot * Get high scores of a game sent in an inline message * Get masks * Check if about to edit a message or a media caption * Get messages * Get and increase message views * Get dialog info of peers * Get the settings of apeer * Get pinned dialogs * Get recent stickers * Get saved gifs * Get a stickerset * Get webpage preview * Get webpage preview * Hide report spam popup * Import chat invite * Add a sticker set * Convert chat to supergroup * Mark messages as read in secret chats * Mark new featured stickers as read * Mark messages as read * Mark message as read * Mark messages as read * You cannot use this method directly * Reorder pinned dialogs * Reorder sticker sets * Report for spam a secret chat * Report a peer for spam * You cannot use this method directly, see https://docs.madelineproto.xyz for more info on handling secret chats * Save a message draft * Save a GIF * Add a sticker to recent stickers * Search peers or messages * Search gifs * Global message search * Send message to secret chat * Send a file to a secret chat * Send a service message to a secret chat * Send a received bot result to the chat * Send a media * Send a message * Send screenshot notification * Bots only: set the callback answer (after a button was clicked) * Bots only: set precheckout results * Bots only: set shipping results * Send typing notification to secret chat * Set the game score * Bots only: set the results of an inline query * Set the game score of an inline message * Change typing status * Start a bot * Enable all users are admins in normal groups (not supergroups) * Pin or unpin dialog * Remove a sticker set * Upload a file without sending it to anyone ***

* Clear saved payments info * Get payment form * Get payment receipt * Get saved payments info * Bots only: send payment form * Validate requested payment info ***

* You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls * Get call configuration * Notify server that you received a call (server will refuse all incoming calls until the current call is over) * You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls * Save call debugging info * Set phone call rating ***

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

* pings the server * Pings the server and causes disconection if the same method is not called within ping_disconnect_delay ***

* Requests Diffie-hellman parameters for key exchange * Requests PQ for factorization ***

* Do not send answer to provided request ***

* Sets client diffie-hellman parameters ***

* Add sticker to stickerset * Change sticker position in photo * Create stickerset * Remove sticker from stickerset ***

* 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, 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 * Download a file through telegram * 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