2017-01-02 19:50:37 +01:00
|
|
|
---
|
|
|
|
title: Methods
|
|
|
|
description: List of methods
|
|
|
|
---
|
|
|
|
# Methods
|
|
|
|
[Back to API documentation index](..)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[account->changePhone](account_changePhone.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$User](../types/User.md)<a name="account_changePhone"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_checkUsername"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_deleteAccount"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md)<a name="account_getAccountTTL"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md)<a name="account_getNotifySettings"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md)<a name="account_getPrivacy"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md)<a name="account_getWallPapers"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), 'device_model' => [string](../types/string.md), 'system_version' => [string](../types/string.md), 'app_version' => [string](../types/string.md), 'app_sandbox' => [Bool](../types/Bool.md), 'lang_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_registerDevice"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md)<a name="account_reportPeer"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md)<a name="account_resetNotifySettings"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md)<a name="account_sendChangePhoneCode"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md)<a name="account_setAccountTTL"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->setPrivacy](account_setPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), 'rules' => \[[InputPrivacyRule](../types/InputPrivacyRule.md)\], \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md)<a name="account_setPrivacy"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->unregisterDevice](account_unregisterDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_unregisterDevice"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="account_updateDeviceLocked"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->updateNotifySettings](account_updateNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), 'settings' => [InputPeerNotifySettings](../types/InputPeerNotifySettings.md), \]) === [$Bool](../types/Bool.md)<a name="account_updateNotifySettings"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md)<a name="account_updateProfile"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="account_updateStatus"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md)<a name="account_updateUsername"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[auth->bindTempAuthKey](auth_bindTempAuthKey.md)(\['perm_auth_key_id' => [long](../types/long.md), 'nonce' => [long](../types/long.md), 'expires_at' => [int](../types/int.md), 'encrypted_message' => [bytes](../types/bytes.md), \]) === [$Bool](../types/Bool.md)<a name="auth_bindTempAuthKey"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[auth->checkPhone](auth_checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md)<a name="auth_checkPhone"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[auth->exportAuthorization](auth_exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md)<a name="auth_exportAuthorization"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[auth->importAuthorization](auth_importAuthorization.md)(\['id' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth_importAuthorization"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) === [$Bool](../types/Bool.md)<a name="auth_logOut"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md)<a name="auth_resetAuthorizations"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[auth->sendCall](auth_sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="auth_sendCall"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['phone_number' => [string](../types/string.md), 'sms_type' => [int](../types/int.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="auth_sendCode"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[auth->sendInvites](auth_sendInvites.md)(\['phone_numbers' => \[[string](../types/string.md)\], 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="auth_sendInvites"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[auth->sendSms](auth_sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="auth_sendSms"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[auth->signIn](auth_signIn.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth_signIn"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[auth->signUp](auth_signUp.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth_signUp"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md)<a name="contacts_block"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md)<a name="contacts_deleteContact"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md)<a name="contacts_deleteContacts"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md)<a name="contacts_exportCard"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md)<a name="contacts_getBlocked"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md)<a name="contacts_getContacts"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md)<a name="contacts_getStatuses"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->getSuggested](contacts_getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md)<a name="contacts_getSuggested"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md)<a name="contacts_importCard"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md)<a name="contacts_importContacts"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md)<a name="contacts_resolveUsername"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md)<a name="contacts_search"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md)<a name="contacts_unblock"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\['device_model' => [string](../types/string.md), 'system_version' => [string](../types/string.md), 'app_version' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), \]) === [$help\_AppUpdate](../types/help_AppUpdate.md)<a name="help_getAppUpdate"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) === [$Config](../types/Config.md)<a name="help_getConfig"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[help->getInviteText](help_getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md)<a name="help_getInviteText"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md)<a name="help_getNearestDc"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md)<a name="help_getSupport"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md)<a name="help_saveAppLog"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[initConnection](initConnection.md)(\['api_id' => [int](../types/int.md), 'device_model' => [string](../types/string.md), 'system_version' => [string](../types/string.md), 'app_version' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md)<a name="initConnection"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[invokeAfterMsg](invokeAfterMsg.md)(\['msg_id' => [long](../types/long.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md)<a name="invokeAfterMsg"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[invokeAfterMsgs](invokeAfterMsgs.md)(\['msg_ids' => \[[long](../types/long.md)\], 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md)<a name="invokeAfterMsgs"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md)<a name="invokeWithLayer"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[messages->acceptEncryption](messages_acceptEncryption.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'g_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)<a name="messages_acceptEncryption"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-04-11 10:09:20 +02:00
|
|
|
$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_addChatUser"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_createChat"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-04-11 10:09:20 +02:00
|
|
|
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_deleteChatUser"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_deleteHistory"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$Vector\_of\_int](../types/int.md)<a name="messages_deleteMessages"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="messages_discardEncryption"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-04-11 10:09:20 +02:00
|
|
|
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatPhoto"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-04-11 10:09:20 +02:00
|
|
|
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_editChatTitle"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_forwardMessage"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md)<a name="messages_forwardMessages"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md)<a name="messages_getAllStickers"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md)<a name="messages_getChats"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md)<a name="messages_getDhConfig"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md)<a name="messages_getDialogs"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-04-11 10:09:20 +02:00
|
|
|
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)<a name="messages_getHistory"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md)<a name="messages_getMessages"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->getStickers](messages_getStickers.md)(\['emoticon' => [string](../types/string.md), 'hash' => [string](../types/string.md), \]) === [$messages\_Stickers](../types/messages_Stickers.md)<a name="messages_getStickers"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="messages_readEncryptedHistory"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), 'offset' => [int](../types/int.md), 'read_contents' => [Bool](../types/Bool.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_readHistory"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$Vector\_of\_int](../types/int.md)<a name="messages_readMessageContents"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_int](../types/int.md)<a name="messages_receivedMessages"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->receivedQueue](messages_receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md)<a name="messages_receivedQueue"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md)<a name="messages_reportSpam"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->requestEncryption](messages_requestEncryption.md)(\['user_id' => [InputUser](../types/InputUser.md), 'g_a' => [bytes](../types/bytes.md), \]) === [$EncryptedChat](../types/EncryptedChat.md)<a name="messages_requestEncryption"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)<a name="messages_search"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->sendBroadcast](messages_sendBroadcast.md)(\['contacts' => \[[InputUser](../types/InputUser.md)\], 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessages](../types/messages_StatedMessages.md)<a name="messages_sendBroadcast"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md)<a name="messages_sendEncrypted"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
$MadelineProto->[messages->sendEncryptedFile](messages_sendEncryptedFile.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), 'file' => [InputEncryptedFile](../types/InputEncryptedFile.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md)<a name="messages_sendEncryptedFile"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-03-11 19:54:51 +01:00
|
|
|
$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md)<a name="messages_sendEncryptedService"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$messages\_StatedMessage](../types/messages_StatedMessage.md)<a name="messages_sendMedia"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), \]) === [$messages\_SentMessage](../types/messages_SentMessage.md)<a name="messages_sendMessage"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->setEncryptedTyping](messages_setEncryptedTyping.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="messages_setEncryptedTyping"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'action' => [SendMessageAction](../types/SendMessageAction.md), \]) === [$Bool](../types/Bool.md)<a name="messages_setTyping"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[photos->deletePhotos](photos_deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md)<a name="photos_deletePhotos"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[photos->getUserPhotos](photos_getUserPhotos.md)(\['user_id' => [InputUser](../types/InputUser.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$photos\_Photos](../types/photos_Photos.md)<a name="photos_getUserPhotos"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$UserProfilePhoto](../types/UserProfilePhoto.md)<a name="photos_updateProfilePhoto"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), 'caption' => [string](../types/string.md), 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'crop' => [InputPhotoCrop](../types/InputPhotoCrop.md), \]) === [$photos\_Photo](../types/photos_Photo.md)<a name="photos_uploadProfilePhoto"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[updates->getDifference](updates_getDifference.md)(\['pts' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md)<a name="updates_getDifference"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[updates->getState](updates_getState.md)(\[\]) === [$updates\_State](../types/updates_State.md)<a name="updates_getState"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[upload->getFile](upload_getFile.md)(\['location' => [InputFileLocation](../types/InputFileLocation.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$upload\_File](../types/upload_File.md)<a name="upload_getFile"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[upload->saveBigFilePart](upload_saveBigFilePart.md)(\['file_id' => [long](../types/long.md), 'file_part' => [int](../types/int.md), 'file_total_parts' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$Bool](../types/Bool.md)<a name="upload_saveBigFilePart"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[upload->saveFilePart](upload_saveFilePart.md)(\['file_id' => [long](../types/long.md), 'file_part' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \]) === [$Bool](../types/Bool.md)<a name="upload_saveFilePart"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
|
|
|
***
|
2017-01-27 13:19:16 +01:00
|
|
|
<br><br>$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md)<a name="users_getFullUser"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|
2017-01-27 13:19:16 +01:00
|
|
|
$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md)<a name="users_getUsers"></a>
|
2017-01-02 19:50:37 +01:00
|
|
|
|