2017-01-02 19:50:37 +01:00
---
title: Methods
2018-03-23 17:48:12 +01:00
description: What do you want to do?
2017-01-02 19:50:37 +01:00
---
2018-03-23 17:48:12 +01:00
# What do you want to do?
[Go back to API documentation index ](.. )
2017-01-02 19:50:37 +01:00
2018-03-23 17:50:03 +01:00
[Go to the old code-version method index ](api_README.md )
2017-01-02 19:50:37 +01:00
2018-03-23 17:48:12 +01:00
* [Logout ](https://docs.madelineproto.xyz/logout.html )
2017-08-25 14:29:02 +02:00
2018-03-23 17:48:12 +01:00
* [Login ](https://docs.madelineproto.xyz/docs/LOGIN.html )
2017-08-25 14:29:02 +02:00
2018-03-23 17:48:12 +01:00
* [Get all chats, broadcast a message to all chats ](https://docs.madelineproto.xyz/docs/DIALOGS.html )
2017-08-25 14:29:02 +02:00
2018-03-23 17:48:12 +01:00
* [Get the full participant list of a channel/group/supergroup ](https://docs.madelineproto.xyz/get_pwr_chat.html )
2017-08-25 14:29:02 +02:00
2018-03-23 17:48:12 +01:00
* [Get full info about a user/chat/supergroup/channel ](https://docs.madelineproto.xyz/get_full_info.html )
2017-08-25 14:29:02 +02:00
2018-03-23 17:48:12 +01:00
* [Get info about a user/chat/supergroup/channel ](https://docs.madelineproto.xyz/get_info.html )
2017-08-25 14:29:02 +02:00
2018-03-23 17:48:12 +01:00
* [Get info about the currently logged-in user ](https://docs.madelineproto.xyz/get_self.html )
2017-08-25 14:29:02 +02:00
2018-03-23 17:48:12 +01:00
* [Upload or download files up to 1.5 GB ](https://docs.madelineproto.xyz/docs/FILES.html )
2017-08-25 14:29:02 +02:00
2018-03-23 17:48:12 +01:00
* [Make a phone call and play a song ](https://docs.madelineproto.xyz/docs/CALLS.html )
2017-08-25 14:29:02 +02:00
2018-03-23 17:48:12 +01:00
* [Create a secret chat bot ](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html )
Documentation rework (#349)
* Documentation rework
* Apply fixes from StyleCI
* Documentation fixes
* Login as bot through web/cli API, allow using invite links in joinChannel, full invite links in importChatInvite and checkChatInvite, non-invite links in importChatInvite
* Apply fixes from StyleCI
* Logging fixes
* Build docs
* Add methods to modify start template, bugfix to logging and keyboard conversion
* Add TL documentator
* Document MTProto methods
* Documenting methods...
* 7% documented
* Bugfixes
* Update docs
* Update docs
* Simplify file management
* Implement automatic object conversion for media, and more awesome stuff
* Implement automatic object conversion for media, and more awesome stuff
* Implement event update handler and file upload/download callback
* Auto-detect mime type, duration, width and height of media
* Update docs
* Document new file functions
* Fix links
* Fix links
* Update bot.php to use event loop
* Implement webhook update handler and forking in main loop
* Build docs
* Better docs
* Fixes to secret chats
* Almost finished updating docs
* Bugfixes, implemented infinite loop for loop() method, almost finished docs
* Finish writing docs
* Add automatic documentation builder script
* Finished writing docs
2018-03-20 12:48:05 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_addChatUser.html" name = "messages_addChatUser" > Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "contacts_importContacts.html" name = "contacts_importContacts" > Add phone number as contact: contacts.importContacts</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "contacts_block.html" name = "contacts_block" > Block a user: contacts.block</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_updateNotifySettings.html" name = "account_updateNotifySettings" > Change notification settings: account.updateNotifySettings</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_changePhone.html" name = "account_changePhone" > Change the phone number associated to this account: account.changePhone</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_sendChangePhoneCode.html" name = "account_sendChangePhoneCode" > Change the phone number: account.sendChangePhoneCode</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_setTyping.html" name = "messages_setTyping" > Change typing status: messages.setTyping</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "auth_checkPhone.html" name = "auth_checkPhone" > Check if this phone number is registered on telegram: auth.checkPhone</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_checkUsername.html" name = "account_checkUsername" > Check if this username is available: account.checkUsername</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_createChat.html" name = "messages_createChat" > Create a chat (not supergroup): messages.createChat</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "contacts_deleteContact.html" name = "contacts_deleteContact" > Delete a contact: contacts.deleteContact</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_deleteChatUser.html" name = "messages_deleteChatUser" > Delete a user from a chat (not supergroup): messages.deleteChatUser</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "auth_resetAuthorizations.html" name = "auth_resetAuthorizations" > Delete all logged-in sessions.: auth.resetAuthorizations</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_deleteHistory.html" name = "messages_deleteHistory" > Delete chat history: messages.deleteHistory</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_deleteMessages.html" name = "messages_deleteMessages" > Delete messages: messages.deleteMessages</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "contacts_deleteContacts.html" name = "contacts_deleteContacts" > Delete multiple contacts: contacts.deleteContacts</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "photos_deletePhotos.html" name = "photos_deletePhotos" > Delete profile photos: photos.deletePhotos</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_deleteAccount.html" name = "account_deleteAccount" > Delete this account: account.deleteAccount</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_updateDeviceLocked.html" name = "account_updateDeviceLocked" > Disable all notifications for a certain period: account.updateDeviceLocked</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_editChatPhoto.html" name = "messages_editChatPhoto" > Edit the photo of a normal chat (not supergroup): messages.editChatPhoto</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_editChatTitle.html" name = "messages_editChatTitle" > Edit the title of a normal chat (not supergroup): messages.editChatTitle</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "contacts_exportCard.html" name = "contacts_exportCard" > Export contact as card: contacts.exportCard</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_forwardMessage.html" name = "messages_forwardMessage" > Forward message: messages.forwardMessage</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_forwardMessages.html" name = "messages_forwardMessages" > Forward messages: messages.forwardMessages</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_getAccountTTL.html" name = "account_getAccountTTL" > Get account TTL: account.getAccountTTL</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_getAllStickers.html" name = "messages_getAllStickers" > Get all stickerpacks: messages.getAllStickers</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:08:39 +01:00
* < a href = "contacts_getBlocked.html" name = "contacts_getBlocked" > Get blocked users: contacts.getBlocked</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:08:39 +01:00
* < a href = "contacts_getContacts.html" name = "contacts_getContacts" > Get info about a certain contact: contacts.getContacts</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "help_getAppUpdate.html" name = "help_getAppUpdate" > Get info about app updates: help.getAppUpdate</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_getChats.html" name = "messages_getChats" > Get info about chats: messages.getChats</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "users_getUsers.html" name = "users_getUsers" > Get info about users: users.getUsers</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "help_getSupport.html" name = "help_getSupport" > Get info of support user: help.getSupport</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "help_getInviteText.html" name = "help_getInviteText" > Get invitation text: help.getInviteText</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_getMessages.html" name = "messages_getMessages" > Get messages: messages.getMessages</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "help_getNearestDc.html" name = "help_getNearestDc" > Get nearest datacenter: help.getNearestDc</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_getNotifySettings.html" name = "account_getNotifySettings" > Get notification settings: account.getNotifySettings</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "contacts_getStatuses.html" name = "contacts_getStatuses" > Get online status of all users: contacts.getStatuses</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_getHistory.html" name = "messages_getHistory" > Get previous messages of a group: messages.getHistory</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_getPrivacy.html" name = "account_getPrivacy" > Get privacy settings: account.getPrivacy</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "help_getConfig.html" name = "help_getConfig" > Get server configuration: help.getConfig</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_getStickers.html" name = "messages_getStickers" > Get stickers: messages.getStickers</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "contacts_getSuggested.html" name = "contacts_getSuggested" > Get suggested contacts: contacts.getSuggested</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "photos_getUserPhotos.html" name = "photos_getUserPhotos" > Get the profile photos of a user: photos.getUserPhotos</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_getDialogs.html" name = "messages_getDialogs" > Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "contacts_importCard.html" name = "contacts_importCard" > Import card as contact: contacts.importCard</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "initConnection.html" name = "initConnection" > Initializes connection and save information on the user's device and application.: initConnection</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "auth_sendInvites.html" name = "auth_sendInvites" > Invite friends to telegram!: auth.sendInvites</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "invokeWithLayer.html" name = "invokeWithLayer" > Invoke this method with layer X: invokeWithLayer</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "invokeAfterMsg.html" name = "invokeAfterMsg" > Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "help_saveAppLog.html" name = "help_saveAppLog" > Log data for developer of this app: help.saveAppLog</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_readMessageContents.html" name = "messages_readMessageContents" > Mark message as read: messages.readMessageContents</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_readEncryptedHistory.html" name = "messages_readEncryptedHistory" > Mark messages as read in secret chats: messages.readEncryptedHistory</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_readHistory.html" name = "messages_readHistory" > Mark messages as read: messages.readHistory</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_receivedMessages.html" name = "messages_receivedMessages" > Mark messages as read: messages.receivedMessages</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_registerDevice.html" name = "account_registerDevice" > Register device for push notifications: account.registerDevice</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_reportSpam.html" name = "messages_reportSpam" > Report a peer for spam: messages.reportSpam</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_reportPeer.html" name = "account_reportPeer" > Report for spam: account.reportPeer</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_resetNotifySettings.html" name = "account_resetNotifySettings" > Reset all notification settings: account.resetNotifySettings</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "invokeAfterMsgs.html" name = "invokeAfterMsgs" > Result type returned by a current query.: invokeAfterMsgs</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_getWallPapers.html" name = "account_getWallPapers" > Returns a list of available wallpapers.: account.getWallPapers</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "contacts_search.html" name = "contacts_search" > Search contacts: contacts.search</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_search.html" name = "messages_search" > Search peers or messages: messages.search</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "auth_sendSms.html" name = "auth_sendSms" > Send SMS verification code: auth.sendSms</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_sendEncryptedFile.html" name = "messages_sendEncryptedFile" > Send a file to a secret chat: messages.sendEncryptedFile</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_sendMedia.html" name = "messages_sendMedia" > Send a media: messages.sendMedia</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:08:39 +01:00
* < a href = "messages_sendBroadcast.html" name = "messages_sendBroadcast" > Send a message to all users in the chat list: messages.sendBroadcast</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_sendMessage.html" name = "messages_sendMessage" > Send a message: messages.sendMessage</ a >
* < a href = "messages_sendEncryptedService.html" name = "messages_sendEncryptedService" > Send a service message to a secret chat: messages.sendEncryptedService</ a >
2018-03-23 18:08:39 +01:00
* < a href = "messages_sendEncrypted.html" name = "messages_sendEncrypted" > Send message to secret chat: messages.sendEncrypted</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "messages_setEncryptedTyping.html" name = "messages_setEncryptedTyping" > Send typing notification to secret chat: messages.setEncryptedTyping</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "auth_sendCall.html" name = "auth_sendCall" > Send verification phone call: auth.sendCall</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_setAccountTTL.html" name = "account_setAccountTTL" > Set account TTL: account.setAccountTTL</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_setPrivacy.html" name = "account_setPrivacy" > Set privacy settings: account.setPrivacy</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_unregisterDevice.html" name = "account_unregisterDevice" > Stop sending PUSH notifications to app: account.unregisterDevice</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "contacts_unblock.html" name = "contacts_unblock" > Unblock a user: contacts.unblock</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_updateStatus.html" name = "account_updateStatus" > Update online status: account.updateStatus</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_updateProfile.html" name = "account_updateProfile" > Update profile info: account.updateProfile</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:08:39 +01:00
* < a href = "photos_updateProfilePhoto.html" name = "photos_updateProfilePhoto" > Update the profile photo (use photos->uploadProfilePhoto to upload the photo): photos.updateProfilePhoto</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "account_updateUsername.html" name = "account_updateUsername" > Update this user's username: account.updateUsername</ a >
2017-01-02 19:50:37 +01:00
2018-03-23 18:14:25 +01:00
* < a href = "photos_uploadProfilePhoto.html" name = "photos_uploadProfilePhoto" > Upload profile photo: photos.uploadProfilePhoto</ a >
2017-01-02 19:50:37 +01:00