--- 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_README.md) * [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: account.changePhone * Check if this username is available: account.checkUsername * Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone * Delete this account: account.deleteAccount * Get account TTL: account.getAccountTTL * Get all logged-in authorizations: account.getAuthorizations * Get notification settings: account.getNotifySettings * Get the current password: account.getPassword * Get the current 2FA settings: account.getPasswordSettings * Get privacy settings: account.getPrivacy * Get temporary password for buying products through bots: account.getTmpPassword * Returns a list of available wallpapers.: account.getWallPapers * Register device for push notifications: account.registerDevice * Report for spam: account.reportPeer * Delete a certain session: account.resetAuthorization * Reset all notification settings: account.resetNotifySettings * Change the phone number: account.sendChangePhoneCode * Send confirmation phone code: account.sendConfirmPhoneCode * Set account TTL: account.setAccountTTL * Set privacy settings: account.setPrivacy * Stop sending PUSH notifications to app: account.unregisterDevice * Disable all notifications for a certain period: account.updateDeviceLocked * Change notification settings: account.updateNotifySettings * Update the 2FA password settings: account.updatePasswordSettings * Update profile info: account.updateProfile * Update online status: account.updateStatus * Update this user's username: account.updateUsername * Invalidate sent phone code: auth.cancelCode * Check if this phone number is registered on telegram: auth.checkPhone * Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys * Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword * Send an email to recover the 2FA password: auth.requestPasswordRecovery * Resend the SMS verification code: auth.resendCode * Delete all logged-in sessions.: auth.resetAuthorizations * Invite friends to telegram!: auth.sendInvites * Send webhook request via bot API: bots.answerWebhookJSONQuery * Send a custom request to the bot API: bots.sendCustomRequest * Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername * Create channel/supergroup: channels.createChannel * Delete a channel/supergroup: channels.deleteChannel * Delete channel/supergroup messages: channels.deleteMessages * Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory * Edit the about text of a channel/supergroup: channels.editAbout * Edit admin permissions of a user in a channel/supergroup: channels.editAdmin * Edit the photo of a supergroup/channel: channels.editPhoto * Edit the title of a supergroup/channel: channels.editTitle * Export the invite link of a channel: channels.exportInvite * Get the link of a message in a channel: channels.exportMessageLink * Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels * Get info about multiple channels/supergroups: channels.getChannels * Get channel/supergroup messages: channels.getMessages * Get info about a certain channel/supergroup participant: channels.getParticipant * Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants * Add users to channel/supergroup: channels.inviteToChannel * Join a channel/supergroup: channels.joinChannel * Kick user from channel: channels.kickFromChannel * Leave a channel/supergroup: channels.leaveChannel * Mark channel/supergroup history as read: channels.readHistory * Report a supergroup/channel for spam: channels.reportSpam * Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites * Toggle channel signatures: channels.toggleSignatures * Set the pinned message of a channel/supergroup: channels.updatePinnedMessage * Update the username of a supergroup/channel: channels.updateUsername * Block a user: contacts.block * Delete a contact: contacts.deleteContact * Delete multiple contacts: contacts.deleteContacts * Export contact as card: contacts.exportCard * Get blocked users: contacts.getBlocked * Get info about a certain contact: contacts.getContacts * Get online status of all users: contacts.getStatuses * Get most used chats: contacts.getTopPeers * Import card as contact: contacts.importCard * Add phone number as contact: contacts.importContacts * Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating * Search contacts: contacts.search * Unblock a user: contacts.unblock * Save developer info for telegram contest: contest.saveDeveloperInfo * Destroy current authorization key: destroy_auth_key * Destroy the current MTProto session: destroy_session * Get future salts: get_future_salts * Get the changelog of this app: help.getAppChangelog * Get info about app updates: help.getAppUpdate * Get CDN configuration: help.getCdnConfig * Get server configuration: help.getConfig * Get invitation text: help.getInviteText * Get nearest datacenter: help.getNearestDc * Get info of support user: help.getSupport * Get terms of service: help.getTermsOfService * Log data for developer of this app: help.saveAppLog * Set the update status of webhook: help.setBotUpdatesStatus * Initializes connection and save information on the user's device and application.: initConnection * Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg * Result type returned by a current query.: invokeAfterMsgs * Invoke this method with layer X: invokeWithLayer * Invoke with method without returning updates in the socket: invokeWithoutUpdates * Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser * Check if an invitation link is valid: messages.checkChatInvite * Clear all recent stickers: messages.clearRecentStickers * Create a chat (not supergroup): messages.createChat * Delete a user from a chat (not supergroup): messages.deleteChatUser * Delete chat history: messages.deleteHistory * Delete messages: messages.deleteMessages * Edit admin permissions: messages.editChatAdmin * Edit the photo of a normal chat (not supergroup): messages.editChatPhoto * Edit the title of a normal chat (not supergroup): messages.editChatTitle * Edit a sent inline message: messages.editInlineBotMessage * Edit a message: messages.editMessage * Export chat invite : messages.exportChatInvite * Forward message: messages.forwardMessage * Forward messages: messages.forwardMessages * Get all chats (not supergroups or channels): messages.getAllChats * Get all message drafts: messages.getAllDrafts * Get all stickerpacks: messages.getAllStickers * Get all archived stickers: messages.getArchivedStickers * Get stickers attachable to images: messages.getAttachedStickers * Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer * Get info about chats: messages.getChats * Get chats in common with a user: messages.getCommonChats * Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs * Get document by SHA256 hash: messages.getDocumentByHash * Get featured stickers: messages.getFeaturedStickers * Get high scores of a game: messages.getGameHighScores * Get previous messages of a group: messages.getHistory * Call inline bot: messages.getInlineBotResults * Get high scores of a game sent in an inline message: messages.getInlineGameHighScores * Get masks: messages.getMaskStickers * Check if about to edit a message or a media caption: messages.getMessageEditData * Get messages: messages.getMessages * Get and increase message views: messages.getMessagesViews * Get dialog info of peers: messages.getPeerDialogs * Get the settings of apeer: messages.getPeerSettings * Get pinned dialogs: messages.getPinnedDialogs * Get recent stickers: messages.getRecentStickers * Get saved gifs: messages.getSavedGifs * Get a stickerset: messages.getStickerSet * Get webpage preview: messages.getWebPage * Get webpage preview: messages.getWebPagePreview * Hide report spam popup: messages.hideReportSpam * Import chat invite: messages.importChatInvite * Add a sticker set: messages.installStickerSet * Convert chat to supergroup: messages.migrateChat * Mark messages as read in secret chats: messages.readEncryptedHistory * Mark new featured stickers as read: messages.readFeaturedStickers * Mark messages as read: messages.readHistory * Mark message as read: messages.readMessageContents * Mark messages as read: messages.receivedMessages * Reorder pinned dialogs: messages.reorderPinnedDialogs * Reorder sticker sets: messages.reorderStickerSets * Report for spam a secret chat: messages.reportEncryptedSpam * Report a peer for spam: messages.reportSpam * Save a message draft: messages.saveDraft * Save a GIF: messages.saveGif * Add a sticker to recent stickers: messages.saveRecentSticker * Search peers or messages: messages.search * Search gifs: messages.searchGifs * Global message search: messages.searchGlobal * Send message to secret chat: messages.sendEncrypted * Send a file to a secret chat: messages.sendEncryptedFile * Send a service message to a secret chat: messages.sendEncryptedService * Send a received bot result to the chat: messages.sendInlineBotResult * Send a media: messages.sendMedia * Send a message: messages.sendMessage * Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer * Bots only: set precheckout results: messages.setBotPrecheckoutResults * Bots only: set shipping results: messages.setBotShippingResults * Send typing notification to secret chat: messages.setEncryptedTyping * Set the game score: messages.setGameScore * Bots only: set the results of an inline query: messages.setInlineBotResults * Set the game score of an inline message: messages.setInlineGameScore * Change typing status: messages.setTyping * Start a bot: messages.startBot * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins * Pin or unpin dialog: messages.toggleDialogPin * Remove a sticker set: messages.uninstallStickerSet * Clear saved payments info: payments.clearSavedInfo * Get payment form: payments.getPaymentForm * Get payment receipt: payments.getPaymentReceipt * Get saved payments info: payments.getSavedInfo * Bots only: send payment form: payments.sendPaymentForm * Validate requested payment info: payments.validateRequestedInfo * Get call configuration: phone.getCallConfig * Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall * Save call debugging info: phone.saveCallDebug * Set phone call rating: phone.setCallRating * Delete profile photos: photos.deletePhotos * Get the profile photos of a user: photos.getUserPhotos * Update the profile photo (use photos->uploadProfilePhoto to upload the photo): photos.updateProfilePhoto * Upload profile photo: photos.uploadProfilePhoto * pings the server: ping * Pings the server and causes disconection if the same method is not called within ping_disconnect_delay: ping_delay_disconnect * Requests Diffie-hellman parameters for key exchange: req_DH_params * Requests PQ for factorization: req_pq * Do not send answer to provided request: rpc_drop_answer * Sets client diffie-hellman parameters: set_client_DH_params * Download a file through telegram: upload.getWebFile * Get info about users: users.getUsers