MadelineProto/docs/API_docs/methods/index.md

420 lines
48 KiB
Markdown
Raw Normal View History

2016-12-20 13:15:22 +01:00
---
title: Methods
2016-12-20 13:32:11 +01:00
description: List of methods
2016-12-20 13:15:22 +01:00
---
# Methods
2016-12-20 13:15:22 +01:00
[Back to API documentation index](..)
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->checkUsername](account_checkUsername.md)(\['username' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="account_checkUsername"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->confirmPhone](account_confirmPhone.md)(\['phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="account_confirmPhone"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->deleteAccount](account_deleteAccount.md)(\['reason' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="account_deleteAccount"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->getAccountTTL](account_getAccountTTL.md)(\[\]) == [$AccountDaysTTL](../types/AccountDaysTTL.md)<a name="account_getAccountTTL"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->getAuthorizations](account_getAuthorizations.md)(\[\]) == [$account\_Authorizations](../types/account_Authorizations.md)<a name="account_getAuthorizations"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->getNotifySettings](account_getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) == [$PeerNotifySettings](../types/PeerNotifySettings.md)<a name="account_getNotifySettings"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->getPassword](account_getPassword.md)(\[\]) == [$account\_Password](../types/account_Password.md)<a name="account_getPassword"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->getPasswordSettings](account_getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) == [$account\_PasswordSettings](../types/account_PasswordSettings.md)<a name="account_getPasswordSettings"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->getPrivacy](account_getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) == [$account\_PrivacyRules](../types/account_PrivacyRules.md)<a name="account_getPrivacy"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) == [$Vector\_of\_WallPaper](../types/WallPaper.md)<a name="account_getWallPapers"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="account_registerDevice"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) == [$Bool](../types/Bool.md)<a name="account_resetAuthorization"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) == [$Bool](../types/Bool.md)<a name="account_resetNotifySettings"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) == [$auth\_SentCode](../types/auth_SentCode.md)<a name="account_sendChangePhoneCode"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) == [$auth\_SentCode](../types/auth_SentCode.md)<a name="account_sendConfirmPhoneCode"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) == [$Bool](../types/Bool.md)<a name="account_setAccountTTL"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->updateDeviceLocked](account_updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) == [$Bool](../types/Bool.md)<a name="account_updateDeviceLocked"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->updatePasswordSettings](account_updatePasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), 'new_settings' => [account\_PasswordInputSettings](../types/account_PasswordInputSettings.md), \]) == [$Bool](../types/Bool.md)<a name="account_updatePasswordSettings"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->updateProfile](account_updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'about' => [string](../types/string.md), \]) == [$User](../types/User.md)<a name="account_updateProfile"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) == [$Bool](../types/Bool.md)<a name="account_updateStatus"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) == [$User](../types/User.md)<a name="account_updateUsername"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[auth->cancelCode](auth_cancelCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="auth_cancelCode"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[auth->checkPassword](auth_checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) == [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth_checkPassword"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[auth->dropTempAuthKeys](auth_dropTempAuthKeys.md)(\['except_auth_keys' => \[[long](../types/long.md)\], \]) == [$Bool](../types/Bool.md)<a name="auth_dropTempAuthKeys"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[auth->importBotAuthorization](auth_importBotAuthorization.md)(\['api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), 'bot_auth_token' => [string](../types/string.md), \]) == [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth_importBotAuthorization"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[auth->logOut](auth_logOut.md)(\[\]) == [$Bool](../types/Bool.md)<a name="auth_logOut"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[auth->recoverPassword](auth_recoverPassword.md)(\['code' => [string](../types/string.md), \]) == [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth_recoverPassword"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[auth->requestPasswordRecovery](auth_requestPasswordRecovery.md)(\[\]) == [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md)<a name="auth_requestPasswordRecovery"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[auth->resendCode](auth_resendCode.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) == [$auth\_SentCode](../types/auth_SentCode.md)<a name="auth_resendCode"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) == [$Bool](../types/Bool.md)<a name="auth_resetAuthorizations"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) == [$auth\_SentCode](../types/auth_SentCode.md)<a name="auth_sendCode"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
***
<br><br>$MadelineProto->[channels->checkUsername](channels_checkUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="channels_checkUsername"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->createChannel](channels_createChannel.md)(\['broadcast' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'title' => [string](../types/string.md), 'about' => [string](../types/string.md), \]) == [$Updates](../types/Updates.md)<a name="channels_createChannel"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->deleteChannel](channels_deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) == [$Updates](../types/Updates.md)<a name="channels_deleteChannel"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) == [$messages\_AffectedMessages](../types/messages_AffectedMessages.md)<a name="channels_deleteMessages"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) == [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="channels_deleteUserHistory"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="channels_editAbout"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'role' => [ChannelParticipantRole](../types/ChannelParticipantRole.md), \]) == [$Updates](../types/Updates.md)<a name="channels_editAdmin"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) == [$Updates](../types/Updates.md)<a name="channels_editPhoto"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) == [$Updates](../types/Updates.md)<a name="channels_editTitle"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) == [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="channels_exportInvite"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) == [$ExportedMessageLink](../types/ExportedMessageLink.md)<a name="channels_exportMessageLink"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->getAdminedPublicChannels](channels_getAdminedPublicChannels.md)(\[\]) == [$messages\_Chats](../types/messages_Chats.md)<a name="channels_getAdminedPublicChannels"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->getChannels](channels_getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) == [$messages\_Chats](../types/messages_Chats.md)<a name="channels_getChannels"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->getFullChannel](channels_getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) == [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="channels_getFullChannel"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->getMessages](channels_getMessages.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) == [$messages\_Messages](../types/messages_Messages.md)<a name="channels_getMessages"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->getParticipant](channels_getParticipant.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) == [$channels\_ChannelParticipant](../types/channels_ChannelParticipant.md)<a name="channels_getParticipant"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->getParticipants](channels_getParticipants.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'filter' => [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) == [$channels\_ChannelParticipants](../types/channels_ChannelParticipants.md)<a name="channels_getParticipants"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->inviteToChannel](channels_inviteToChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'users' => \[[InputUser](../types/InputUser.md)\], \]) == [$Updates](../types/Updates.md)<a name="channels_inviteToChannel"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->joinChannel](channels_joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) == [$Updates](../types/Updates.md)<a name="channels_joinChannel"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->kickFromChannel](channels_kickFromChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'kicked' => [Bool](../types/Bool.md), \]) == [$Updates](../types/Updates.md)<a name="channels_kickFromChannel"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) == [$Updates](../types/Updates.md)<a name="channels_leaveChannel"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) == [$Bool](../types/Bool.md)<a name="channels_readHistory"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->reportSpam](channels_reportSpam.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'id' => \[[int](../types/int.md)\], \]) == [$Bool](../types/Bool.md)<a name="channels_reportSpam"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) == [$Updates](../types/Updates.md)<a name="channels_toggleInvites"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) == [$Updates](../types/Updates.md)<a name="channels_toggleSignatures"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->updatePinnedMessage](channels_updatePinnedMessage.md)(\['silent' => [Bool](../types/Bool.md), 'channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), \]) == [$Updates](../types/Updates.md)<a name="channels_updatePinnedMessage"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[channels->updateUsername](channels_updateUsername.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'username' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="channels_updateUsername"></a>
2016-12-20 13:15:22 +01:00
***
<br><br>$MadelineProto->[contacts->block](contacts_block.md)(\['id' => [InputUser](../types/InputUser.md), \]) == [$Bool](../types/Bool.md)<a name="contacts_block"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[contacts->deleteContact](contacts_deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) == [$contacts\_Link](../types/contacts_Link.md)<a name="contacts_deleteContact"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[contacts->deleteContacts](contacts_deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) == [$Bool](../types/Bool.md)<a name="contacts_deleteContacts"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) == [$Vector\_of\_int](../types/int.md)<a name="contacts_exportCard"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) == [$contacts\_Contacts](../types/contacts_Contacts.md)<a name="contacts_getContacts"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) == [$Vector\_of\_ContactStatus](../types/ContactStatus.md)<a name="contacts_getStatuses"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['correspondents' => [Bool](../types/Bool.md), 'bots_pm' => [Bool](../types/Bool.md), 'bots_inline' => [Bool](../types/Bool.md), 'groups' => [Bool](../types/Bool.md), 'channels' => [Bool](../types/Bool.md), 'offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) == [$contacts\_TopPeers](../types/contacts_TopPeers.md)<a name="contacts_getTopPeers"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) == [$User](../types/User.md)<a name="contacts_importCard"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) == [$Bool](../types/Bool.md)<a name="contacts_resetTopPeerRating"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['username' => [string](../types/string.md), \]) == [$contacts\_ResolvedPeer](../types/contacts_ResolvedPeer.md)<a name="contacts_resolveUsername"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) == [$Bool](../types/Bool.md)<a name="contacts_unblock"></a>
***
<br><br>$MadelineProto->[destroy->session](destroy_session.md)(\['session_id' => [long](../types/long.md), \]) == [$DestroySessionRes](../types/DestroySessionRes.md)<a name="destroy_session"></a>
***
<br><br>$MadelineProto->[get->future->salts](get_future_salts.md)(\['num' => [int](../types/int.md), \]) == [$FutureSalts](../types/FutureSalts.md)<a name="get_future_salts"></a>
2016-12-20 13:15:22 +01:00
***
<br><br>$MadelineProto->[help->getAppChangelog](help_getAppChangelog.md)(\[\]) == [$help\_AppChangelog](../types/help_AppChangelog.md)<a name="help_getAppChangelog"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[help->getAppUpdate](help_getAppUpdate.md)(\[\]) == [$help\_AppUpdate](../types/help_AppUpdate.md)<a name="help_getAppUpdate"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[help->getConfig](help_getConfig.md)(\[\]) == [$Config](../types/Config.md)<a name="help_getConfig"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[help->getInviteText](help_getInviteText.md)(\[\]) == [$help\_InviteText](../types/help_InviteText.md)<a name="help_getInviteText"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[help->getNearestDc](help_getNearestDc.md)(\[\]) == [$NearestDc](../types/NearestDc.md)<a name="help_getNearestDc"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[help->getSupport](help_getSupport.md)(\[\]) == [$help\_Support](../types/help_Support.md)<a name="help_getSupport"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[help->getTermsOfService](help_getTermsOfService.md)(\[\]) == [$help\_TermsOfService](../types/help_TermsOfService.md)<a name="help_getTermsOfService"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[help->saveAppLog](help_saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) == [$Bool](../types/Bool.md)<a name="help_saveAppLog"></a>
***
<br><br>$MadelineProto->[http->wait](http_wait.md)(\['max_delay' => [int](../types/int.md), 'wait_after' => [int](../types/int.md), 'max_wait' => [int](../types/int.md), \]) == [$HttpWait](../types/HttpWait.md)<a name="http_wait"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
***
<br><br>$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) == [$X](../types/X.md)<a name="invokeWithoutUpdates"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->addChatUser](messages_addChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) == [$Updates](../types/Updates.md)<a name="messages_addChatUser"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->checkChatInvite](messages_checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) == [$ChatInvite](../types/ChatInvite.md)<a name="messages_checkChatInvite"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->clearRecentStickers](messages_clearRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), \]) == [$Bool](../types/Bool.md)<a name="messages_clearRecentStickers"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->createChat](messages_createChat.md)(\['users' => \[[InputUser](../types/InputUser.md)\], 'title' => [string](../types/string.md), \]) == [$Updates](../types/Updates.md)<a name="messages_createChat"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->deleteChatUser](messages_deleteChatUser.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) == [$Updates](../types/Updates.md)<a name="messages_deleteChatUser"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->deleteHistory](messages_deleteHistory.md)(\['just_clear' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) == [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages_deleteHistory"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) == [$messages\_AffectedMessages](../types/messages_AffectedMessages.md)<a name="messages_deleteMessages"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) == [$Bool](../types/Bool.md)<a name="messages_discardEncryption"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) == [$Bool](../types/Bool.md)<a name="messages_editChatAdmin"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [int](../types/int.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) == [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [int](../types/int.md), 'title' => [string](../types/string.md), \]) == [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) == [$Bool](../types/Bool.md)<a name="messages_editInlineBotMessage"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) == [$Updates](../types/Updates.md)<a name="messages_editMessage"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [int](../types/int.md), \]) == [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) == [$Updates](../types/Updates.md)<a name="messages_forwardMessage"></a>
$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) == [$Updates](../types/Updates.md)<a name="messages_forwardMessages"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getAllDrafts](messages_getAllDrafts.md)(\[\]) == [$Updates](../types/Updates.md)<a name="messages_getAllDrafts"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getAllStickers](messages_getAllStickers.md)(\['hash' => [int](../types/int.md), \]) == [$messages\_AllStickers](../types/messages_AllStickers.md)<a name="messages_getAllStickers"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getArchivedStickers](messages_getArchivedStickers.md)(\['masks' => [Bool](../types/Bool.md), 'offset_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) == [$messages\_ArchivedStickers](../types/messages_ArchivedStickers.md)<a name="messages_getArchivedStickers"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getAttachedStickers](messages_getAttachedStickers.md)(\['media' => [InputStickeredMedia](../types/InputStickeredMedia.md), \]) == [$Vector\_of\_StickerSetCovered](../types/StickerSetCovered.md)<a name="messages_getAttachedStickers"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getBotCallbackAnswer](messages_getBotCallbackAnswer.md)(\['game' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'msg_id' => [int](../types/int.md), 'data' => [bytes](../types/bytes.md), \]) == [$messages\_BotCallbackAnswer](../types/messages_BotCallbackAnswer.md)<a name="messages_getBotCallbackAnswer"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getChats](messages_getChats.md)(\['id' => \[[int](../types/int.md)\], \]) == [$messages\_Chats](../types/messages_Chats.md)<a name="messages_getChats"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['offset_date' => [int](../types/int.md), 'offset_id' => [int](../types/int.md), 'offset_peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), \]) == [$messages\_Dialogs](../types/messages_Dialogs.md)<a name="messages_getDialogs"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['sha256' => [bytes](../types/bytes.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), \]) == [$Document](../types/Document.md)<a name="messages_getDocumentByHash"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) == [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)<a name="messages_getFeaturedStickers"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [int](../types/int.md), \]) == [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getGameHighScores](messages_getGameHighScores.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), \]) == [$messages\_HighScores](../types/messages_HighScores.md)<a name="messages_getGameHighScores"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getHistory](messages_getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'offset_date' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) == [$messages\_Messages](../types/messages_Messages.md)<a name="messages_getHistory"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getInlineBotResults](messages_getInlineBotResults.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'query' => [string](../types/string.md), 'offset' => [string](../types/string.md), \]) == [$messages\_BotResults](../types/messages_BotResults.md)<a name="messages_getInlineBotResults"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getInlineGameHighScores](messages_getInlineGameHighScores.md)(\['id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), \]) == [$messages\_HighScores](../types/messages_HighScores.md)<a name="messages_getInlineGameHighScores"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getMaskStickers](messages_getMaskStickers.md)(\['hash' => [int](../types/int.md), \]) == [$messages\_AllStickers](../types/messages_AllStickers.md)<a name="messages_getMaskStickers"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getMessageEditData](messages_getMessageEditData.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) == [$messages\_MessageEditData](../types/messages_MessageEditData.md)<a name="messages_getMessageEditData"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getMessages](messages_getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) == [$messages\_Messages](../types/messages_Messages.md)<a name="messages_getMessages"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getMessagesViews](messages_getMessagesViews.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'increment' => [Bool](../types/Bool.md), \]) == [$Vector\_of\_int](../types/int.md)<a name="messages_getMessagesViews"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getPeerDialogs](messages_getPeerDialogs.md)(\['peers' => \[[InputPeer](../types/InputPeer.md)\], \]) == [$messages\_PeerDialogs](../types/messages_PeerDialogs.md)<a name="messages_getPeerDialogs"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getPeerSettings](messages_getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) == [$PeerSettings](../types/PeerSettings.md)<a name="messages_getPeerSettings"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getRecentStickers](messages_getRecentStickers.md)(\['attached' => [Bool](../types/Bool.md), 'hash' => [int](../types/int.md), \]) == [$messages\_RecentStickers](../types/messages_RecentStickers.md)<a name="messages_getRecentStickers"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) == [$messages\_SavedGifs](../types/messages_SavedGifs.md)<a name="messages_getSavedGifs"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) == [$messages\_StickerSet](../types/messages_StickerSet.md)<a name="messages_getStickerSet"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) == [$MessageMedia](../types/MessageMedia.md)<a name="messages_getWebPagePreview"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->hideReportSpam](messages_hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) == [$Bool](../types/Bool.md)<a name="messages_hideReportSpam"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['hash' => [string](../types/string.md), \]) == [$Updates](../types/Updates.md)<a name="messages_importChatInvite"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) == [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md)<a name="messages_installStickerSet"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [int](../types/int.md), \]) == [$Updates](../types/Updates.md)<a name="messages_migrateChat"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->readFeaturedStickers](messages_readFeaturedStickers.md)(\['id' => \[[long](../types/long.md)\], \]) == [$Bool](../types/Bool.md)<a name="messages_readFeaturedStickers"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->readHistory](messages_readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) == [$messages\_AffectedMessages](../types/messages_AffectedMessages.md)<a name="messages_readHistory"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->readMessageContents](messages_readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) == [$messages\_AffectedMessages](../types/messages_AffectedMessages.md)<a name="messages_readMessageContents"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->receivedMessages](messages_receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) == [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md)<a name="messages_receivedMessages"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->reorderStickerSets](messages_reorderStickerSets.md)(\['masks' => [Bool](../types/Bool.md), 'order' => \[[long](../types/long.md)\], \]) == [$Bool](../types/Bool.md)<a name="messages_reorderStickerSets"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->reportSpam](messages_reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) == [$Bool](../types/Bool.md)<a name="messages_reportSpam"></a>
$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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->saveDraft](messages_saveDraft.md)(\['no_webpage' => [Bool](../types/Bool.md), 'reply_to_msg_id' => [int](../types/int.md), 'peer' => [InputPeer](../types/InputPeer.md), 'message' => [string](../types/string.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) == [$Bool](../types/Bool.md)<a name="messages_saveDraft"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) == [$Bool](../types/Bool.md)<a name="messages_saveGif"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) == [$Bool](../types/Bool.md)<a name="messages_saveRecentSticker"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) == [$messages\_FoundGifs](../types/messages_FoundGifs.md)<a name="messages_searchGifs"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->searchGlobal](messages_searchGlobal.md)(\['q' => [string](../types/string.md), 'offset_date' => [int](../types/int.md), 'offset_peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) == [$messages\_Messages](../types/messages_Messages.md)<a name="messages_searchGlobal"></a>
$MadelineProto->[messages->sendEncrypted](messages_sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'data' => [bytes](../types/bytes.md), \]) == [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md)<a name="messages_sendEncrypted"></a>
$MadelineProto->[messages->sendEncryptedFile](messages_sendEncryptedFile.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'data' => [bytes](../types/bytes.md), 'file' => [InputEncryptedFile](../types/InputEncryptedFile.md), \]) == [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md)<a name="messages_sendEncryptedFile"></a>
$MadelineProto->[messages->sendEncryptedService](messages_sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'data' => [bytes](../types/bytes.md), \]) == [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md)<a name="messages_sendEncryptedService"></a>
$MadelineProto->[messages->sendInlineBotResult](messages_sendInlineBotResult.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'query_id' => [long](../types/long.md), 'id' => [string](../types/string.md), \]) == [$Updates](../types/Updates.md)<a name="messages_sendInlineBotResult"></a>
$MadelineProto->[messages->sendMedia](messages_sendMedia.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]) == [$Updates](../types/Updates.md)<a name="messages_sendMedia"></a>
$MadelineProto->[messages->sendMessage](messages_sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'clear_draft' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'reply_to_msg_id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) == [$Updates](../types/Updates.md)<a name="messages_sendMessage"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->setBotCallbackAnswer](messages_setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), 'url' => [string](../types/string.md), \]) == [$Bool](../types/Bool.md)<a name="messages_setBotCallbackAnswer"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->setGameScore](messages_setGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) == [$Updates](../types/Updates.md)<a name="messages_setGameScore"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->setInlineBotResults](messages_setInlineBotResults.md)(\['gallery' => [Bool](../types/Bool.md), 'private' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'results' => \[[InputBotInlineResult](../types/InputBotInlineResult.md)\], 'cache_time' => [int](../types/int.md), 'next_offset' => [string](../types/string.md), 'switch_pm' => [InlineBotSwitchPM](../types/InlineBotSwitchPM.md), \]) == [$Bool](../types/Bool.md)<a name="messages_setInlineBotResults"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->setInlineGameScore](messages_setInlineGameScore.md)(\['edit_message' => [Bool](../types/Bool.md), 'id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'user_id' => [InputUser](../types/InputUser.md), 'score' => [int](../types/int.md), \]) == [$Bool](../types/Bool.md)<a name="messages_setInlineGameScore"></a>
2016-12-20 13:15:22 +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>
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) == [$Updates](../types/Updates.md)<a name="messages_startBot"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), \]) == [$Updates](../types/Updates.md)<a name="messages_toggleChatAdmins"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) == [$Bool](../types/Bool.md)<a name="messages_uninstallStickerSet"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[photos->getUserPhotos](photos_getUserPhotos.md)(\['user_id' => [InputUser](../types/InputUser.md), 'offset' => [int](../types/int.md), 'max_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) == [$photos\_Photos](../types/photos_Photos.md)<a name="photos_getUserPhotos"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[photos->updateProfilePhoto](photos_updateProfilePhoto.md)(\['id' => [InputPhoto](../types/InputPhoto.md), \]) == [$UserProfilePhoto](../types/UserProfilePhoto.md)<a name="photos_updateProfilePhoto"></a>
2016-12-20 13:15:22 +01:00
$MadelineProto->[photos->uploadProfilePhoto](photos_uploadProfilePhoto.md)(\['file' => [InputFile](../types/InputFile.md), \]) == [$photos\_Photo](../types/photos_Photo.md)<a name="photos_uploadProfilePhoto"></a>
***
<br><br>$MadelineProto->[ping](ping.md)(\['ping_id' => [long](../types/long.md), \]) == [$Pong](../types/Pong.md)<a name="ping"></a>
$MadelineProto->[ping->delay->disconnect](ping_delay_disconnect.md)(\['ping_id' => [long](../types/long.md), 'disconnect_delay' => [int](../types/int.md), \]) == [$Pong](../types/Pong.md)<a name="ping_delay_disconnect"></a>
***
<br><br>$MadelineProto->[req->DH->params](req_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'p' => [bytes](../types/bytes.md), 'q' => [bytes](../types/bytes.md), 'public_key_fingerprint' => [long](../types/long.md), 'encrypted_data' => [bytes](../types/bytes.md), \]) == [$Server\_DH\_Params](../types/Server_DH_Params.md)<a name="req_DH_params"></a>
$MadelineProto->[req->pq](req_pq.md)(\['nonce' => [int128](../types/int128.md), \]) == [$ResPQ](../types/ResPQ.md)<a name="req_pq"></a>
***
<br><br>$MadelineProto->[rpc->drop->answer](rpc_drop_answer.md)(\['req_msg_id' => [long](../types/long.md), \]) == [$RpcDropAnswer](../types/RpcDropAnswer.md)<a name="rpc_drop_answer"></a>
***
<br><br>$MadelineProto->[set->client->DH->params](set_client_DH_params.md)(\['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'encrypted_data' => [bytes](../types/bytes.md), \]) == [$Set\_client\_DH\_params\_answer](../types/Set_client_DH_params_answer.md)<a name="set_client_DH_params"></a>
2016-12-20 13:15:22 +01:00
***
<br><br>$MadelineProto->[updates->getChannelDifference](updates_getChannelDifference.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'filter' => [ChannelMessagesFilter](../types/ChannelMessagesFilter.md), 'pts' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) == [$updates\_ChannelDifference](../types/updates_ChannelDifference.md)<a name="updates_getChannelDifference"></a>
2016-12-20 13:15:22 +01:00
$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>
2016-12-20 13:15:22 +01:00
$MadelineProto->[updates->getState](updates_getState.md)(\[\]) == [$updates\_State](../types/updates_State.md)<a name="updates_getState"></a>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +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>
2016-12-20 13:15:22 +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>
***
<br><br>$MadelineProto->[users->getFullUser](users_getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) == [$UserFull](../types/UserFull.md)<a name="users_getFullUser"></a>
$MadelineProto->[users->getUsers](users_getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) == [$Vector\_of\_User](../types/User.md)<a name="users_getUsers"></a>