--- 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 * 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 * 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 * 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 * Check if this phone number is registered on telegram: auth.checkPhone * 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 * Delete all logged-in sessions.: auth.resetAuthorizations * Send verification phone call: auth.sendCall * Invite friends to telegram!: auth.sendInvites * Send SMS verification code: auth.sendSms * 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 info about multiple channels/supergroups: channels.getChannels * Get channel dialogs: channels.getDialogs * Get important channel/supergroup history: channels.getImportantHistory * 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 * Enable channel comments: channels.toggleComments * 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 suggested contacts: contacts.getSuggested * Import card as contact: contacts.importCard * Add phone number as contact: contacts.importContacts * Search contacts: contacts.search * Unblock a user: contacts.unblock * Get the changelog of this app: help.getAppChangelog * Get info about app updates: help.getAppUpdate * 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 * 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 * 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 * Export chat invite : messages.exportChatInvite * Forward message: messages.forwardMessage * Forward messages: messages.forwardMessages * Get all stickerpacks: messages.getAllStickers * Get info about chats: messages.getChats * 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 previous messages of a group: messages.getHistory * Get messages: messages.getMessages * Get and increase message views: messages.getMessagesViews * Get a stickerset: messages.getStickerSet * Get stickers: messages.getStickers * Get webpage preview: messages.getWebPagePreview * 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 messages as read: messages.readHistory * Mark message as read: messages.readMessageContents * Mark messages as read: messages.receivedMessages * Reorder sticker sets: messages.reorderStickerSets * Report a peer for spam: messages.reportSpam * Search peers or messages: messages.search * Search gifs: messages.searchGifs * Global message search: messages.searchGlobal * Send a message to all users in the chat list: messages.sendBroadcast * 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 media: messages.sendMedia * Send a message: messages.sendMessage * Send typing notification to secret chat: messages.setEncryptedTyping * Change typing status: messages.setTyping * Start a bot: messages.startBot * Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins * Remove a sticker set: messages.uninstallStickerSet * 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 * Get info about users: users.getUsers