MadelineProtoDocs/old_docs/API_docs_v51/methods/api_README.md

713 lines
46 KiB
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: Methods
description: List of methods
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
# Methods
[Back to API documentation index](..)
2018-04-01 13:24:46 +02:00
[Go to the new description-version method index](README.md)
2018-04-01 13:19:25 +02:00
$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)();
2019-10-29 22:23:35 +01:00
$MadelineProto->[phoneLogin](https://docs.madelineproto.xyz/phoneLogin.html)($number);
2018-04-01 13:19:25 +02:00
2019-10-29 22:23:35 +01:00
$MadelineProto->[completePhoneLogin](https://docs.madelineproto.xyz/completePhoneLogin.html)($code);
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
$MadelineProto->[complete2FALogin](https://docs.madelineproto.xyz/complete2FAlogin.html)($password);
2018-04-01 13:19:25 +02:00
2019-10-29 22:23:35 +01:00
$MadelineProto->[botLogin](https://docs.madelineproto.xyz/botLogin.html)($token);
2018-04-01 13:19:25 +02:00
2019-10-29 22:23:35 +01:00
$MadelineProto->[getDialogs](https://docs.madelineproto.xyz/getDialogs.html)();
2018-04-01 13:19:25 +02:00
2019-10-29 22:23:35 +01:00
$MadelineProto->[getPwrChat](https://docs.madelineproto.xyz/getPwrChat.html)($id);
2018-04-01 13:19:25 +02:00
2019-10-29 22:23:35 +01:00
$MadelineProto->[getInfo](https://docs.madelineproto.xyz/getInfo.html)($id);
2018-04-01 13:19:25 +02:00
2019-10-29 22:23:35 +01:00
$MadelineProto->[getFullInfo](https://docs.madelineproto.xyz/getFullInfo.html)($id);
2018-04-01 13:19:25 +02:00
2019-10-29 22:23:35 +01:00
$MadelineProto->[getSelf](https://docs.madelineproto.xyz/getSelf.html)();
2018-04-01 13:19:25 +02:00
2019-10-29 22:23:35 +01:00
$MadelineProto->[requestCall](https://docs.madelineproto.xyz/requestCall.html)($id);
2018-04-01 13:19:25 +02:00
2019-10-29 22:23:35 +01:00
$MadelineProto->[requestSecretChat](https://docs.madelineproto.xyz/requestSecretChat.html)($id);
2018-04-01 13:19:25 +02:00
***
<br><br>
2019-12-27 17:48:04 +01:00
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[account->checkUsername](account.checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account.checkUsername"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[account->deleteAccount](account.deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account.deleteAccount"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[account->getAccountTTL](account.getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md)<a name="account.getAccountTTL"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[account->getAuthorizations](account.getAuthorizations.md)(\[\]) === [$account.Authorizations](../types/account.Authorizations.md)<a name="account.getAuthorizations"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[account->getNotifySettings](account.getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md)<a name="account.getNotifySettings"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[account->getPassword](account.getPassword.md)(\[\]) === [$account.Password](../types/account.Password.md)<a name="account.getPassword"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[account->getPrivacy](account.getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account.PrivacyRules](../types/account.PrivacyRules.md)<a name="account.getPrivacy"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[account->getWallPapers](account.getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md)<a name="account.getWallPapers"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[account->resetAuthorization](account.resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md)<a name="account.resetAuthorization"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[account->resetNotifySettings](account.resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md)<a name="account.resetNotifySettings"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[account->setAccountTTL](account.setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md)<a name="account.setAccountTTL"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[account->updateDeviceLocked](account.updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="account.updateDeviceLocked"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[account->updateStatus](account.updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="account.updateStatus"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[account->updateUsername](account.updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md)<a name="account.updateUsername"></a>
2018-04-01 13:19:25 +02:00
***
<br><br>
2019-12-27 17:48:04 +01:00
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[auth->logOut](auth.logOut.md)(\[\]) === [$Bool](../types/Bool.md)<a name="auth.logOut"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[auth->recoverPassword](auth.recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth.Authorization](../types/auth.Authorization.md)<a name="auth.recoverPassword"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[auth->requestPasswordRecovery](auth.requestPasswordRecovery.md)(\[\]) === [$auth.PasswordRecovery](../types/auth.PasswordRecovery.md)<a name="auth.requestPasswordRecovery"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[auth->resetAuthorizations](auth.resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md)<a name="auth.resetAuthorizations"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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), 'lang_code' => [string](../types/string.md), \]) === [$auth.SentCode](../types/auth.SentCode.md)<a name="auth.sendCode"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
***
<br><br>
2019-12-27 17:48:04 +01:00
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[channels->deleteChannel](channels.deleteChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md)<a name="channels.deleteChannel"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[channels->exportInvite](channels.exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="channels.exportInvite"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[channels->getChannels](channels.getChannels.md)(\['id' => \[[InputChannel](../types/InputChannel.md)\], \]) === [$messages.Chats](../types/messages.Chats.md)<a name="channels.getChannels"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[channels->getDialogs](channels.getDialogs.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages.Dialogs](../types/messages.Dialogs.md)<a name="channels.getDialogs"></a>
2018-04-01 13:24:46 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[channels->getFullChannel](channels.getFullChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$messages.ChatFull](../types/messages.ChatFull.md)<a name="channels.getFullChannel"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[channels->getImportantHistory](channels.getImportantHistory.md)(\['channel' => [InputChannel](../types/InputChannel.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="channels.getImportantHistory"></a>
2018-04-01 13:24:46 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[channels->joinChannel](channels.joinChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md)<a name="channels.joinChannel"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:24:46 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[channels->leaveChannel](channels.leaveChannel.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$Updates](../types/Updates.md)<a name="channels.leaveChannel"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[channels->toggleComments](channels.toggleComments.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="channels.toggleComments"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
***
<br><br>
2019-12-27 17:48:04 +01:00
$MadelineProto->[contacts->block](contacts.block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md)<a name="contacts.block"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[contacts->deleteContact](contacts.deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts.Link](../types/contacts.Link.md)<a name="contacts.deleteContact"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[contacts->deleteContacts](contacts.deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md)<a name="contacts.deleteContacts"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[contacts->exportCard](contacts.exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md)<a name="contacts.exportCard"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[contacts->getContacts](contacts.getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts.Contacts](../types/contacts.Contacts.md)<a name="contacts.getContacts"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[contacts->getStatuses](contacts.getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md)<a name="contacts.getStatuses"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[contacts->importCard](contacts.importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md)<a name="contacts.importCard"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[contacts->resolveUsername](contacts.resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$contacts.ResolvedPeer](../types/contacts.ResolvedPeer.md)<a name="contacts.resolveUsername"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[contacts->unblock](contacts.unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md)<a name="contacts.unblock"></a>
2018-04-01 13:19:25 +02:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[help->getAppChangelog](help.getAppChangelog.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.AppChangelog](../types/help.AppChangelog.md)<a name="help.getAppChangelog"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[help->getConfig](help.getConfig.md)(\[\]) === [$Config](../types/Config.md)<a name="help.getConfig"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[help->getNearestDc](help.getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md)<a name="help.getNearestDc"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[help->getSupport](help.getSupport.md)(\[\]) === [$help.Support](../types/help.Support.md)<a name="help.getSupport"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[help->getTermsOfService](help.getTermsOfService.md)(\['lang_code' => [string](../types/string.md), \]) === [$help.TermsOfService](../types/help.TermsOfService.md)<a name="help.getTermsOfService"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[help->saveAppLog](help.saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md)<a name="help.saveAppLog"></a>
2018-04-01 13:19:25 +02:00
***
<br><br>
2018-04-01 13:24:46 +02:00
$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>
2018-04-01 13:19:25 +02: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>
***
<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>
***
<br><br>
$MadelineProto->[invokeWithLayer](invokeWithLayer.md)(\['layer' => [int](../types/int.md), 'query' => [!X](../types/!X.md), \]) === [$X](../types/X.md)<a name="invokeWithLayer"></a>
***
<br><br>
$MadelineProto->[invokeWithoutUpdates](invokeWithoutUpdates.md)(\['query' => [!X](../types/!X.md), \]) === [$X](../types/X.md)<a name="invokeWithoutUpdates"></a>
***
<br><br>
2019-12-27 17:48:04 +01:00
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->addChatUser](messages.addChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'fwd_limit' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages.addChatUser"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->checkChatInvite](messages.checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)<a name="messages.checkChatInvite"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->deleteChatUser](messages.deleteChatUser.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$Updates](../types/Updates.md)<a name="messages.deleteChatUser"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[messages->deleteHistory](messages.deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), \]) === [$messages.AffectedHistory](../types/messages.AffectedHistory.md)<a name="messages.deleteHistory"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[messages->deleteMessages](messages.deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages.AffectedMessages](../types/messages.AffectedMessages.md)<a name="messages.deleteMessages"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->discardEncryption](messages.discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="messages.discardEncryption"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->editChatAdmin](messages.editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="messages.editChatAdmin"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->editChatPhoto](messages.editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages.editChatPhoto"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->editChatTitle](messages.editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages.editChatTitle"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->exportChatInvite](messages.exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages.exportChatInvite"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->forwardMessages](messages.forwardMessages.md)(\['broadcast' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[messages->getAllStickers](messages.getAllStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages.AllStickers](../types/messages.AllStickers.md)<a name="messages.getAllStickers"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[messages->getBotCallbackAnswer](messages.getBotCallbackAnswer.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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[messages->getChats](messages.getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages.Chats](../types/messages.Chats.md)<a name="messages.getChats"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[messages->getFullChat](messages.getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages.ChatFull](../types/messages.ChatFull.md)<a name="messages.getFullChat"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[messages->getMessages](messages.getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages.Messages](../types/messages.Messages.md)<a name="messages.getMessages"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->getPeerSettings](messages.getPeerSettings.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$PeerSettings](../types/PeerSettings.md)<a name="messages.getPeerSettings"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[messages->getSavedGifs](messages.getSavedGifs.md)(\['hash' => [int](../types/int.md), \]) === [$messages.SavedGifs](../types/messages.SavedGifs.md)<a name="messages.getSavedGifs"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[messages->getStickerSet](messages.getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages.StickerSet](../types/messages.StickerSet.md)<a name="messages.getStickerSet"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->getWebPagePreview](messages.getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md)<a name="messages.getWebPagePreview"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->hideReportSpam](messages.hideReportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md)<a name="messages.hideReportSpam"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->importChatInvite](messages.importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages.importChatInvite"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->installStickerSet](messages.installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'disabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="messages.installStickerSet"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->migrateChat](messages.migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)<a name="messages.migrateChat"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[messages->readMessageContents](messages.readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages.AffectedMessages](../types/messages.AffectedMessages.md)<a name="messages.readMessageContents"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->receivedMessages](messages.receivedMessages.md)(\['max_id' => [int](../types/int.md), \]) === [$Vector\_of\_ReceivedNotifyMessage](../types/ReceivedNotifyMessage.md)<a name="messages.receivedMessages"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->receivedQueue](messages.receivedQueue.md)(\['max_qts' => [int](../types/int.md), \]) === [$Vector\_of\_long](../types/long.md)<a name="messages.receivedQueue"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->reorderStickerSets](messages.reorderStickerSets.md)(\['order' => \[[long](../types/long.md)\], \]) === [$Bool](../types/Bool.md)<a name="messages.reorderStickerSets"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->reportSpam](messages.reportSpam.md)(\['peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md)<a name="messages.reportSpam"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[messages->search](messages.search.md)(\['important_only' => [Bool](../types/Bool.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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->sendBroadcast](messages.sendBroadcast.md)(\['contacts' => \[[InputUser](../types/InputUser.md)\], 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$Updates](../types/Updates.md)<a name="messages.sendBroadcast"></a>
2018-04-01 13:24:46 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->sendInlineBotResult](messages.sendInlineBotResult.md)(\['broadcast' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->sendMedia](messages.sendMedia.md)(\['broadcast' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->sendMessage](messages.sendMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'background' => [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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->setBotCallbackAnswer](messages.setBotCallbackAnswer.md)(\['alert' => [Bool](../types/Bool.md), 'query_id' => [long](../types/long.md), 'message' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="messages.setBotCallbackAnswer"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->toggleChatAdmins](messages.toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="messages.toggleChatAdmins"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[messages->uninstallStickerSet](messages.uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)<a name="messages.uninstallStickerSet"></a>
2018-04-01 13:19:25 +02:00
***
<br><br>
2019-12-27 17:48:04 +01:00
$MadelineProto->[photos->deletePhotos](photos.deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md)<a name="photos.deletePhotos"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$MadelineProto->[updates->getState](updates.getState.md)(\[\]) === [$updates.State](../types/updates.State.md)<a name="updates.getState"></a>
2018-04-01 13:19:25 +02:00
***
<br><br>
2019-12-27 18:25:37 +01:00
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$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>
2018-04-01 13:19:25 +02:00
***
<br><br>
2019-12-27 17:48:04 +01:00
$MadelineProto->[users->getFullUser](users.getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md)<a name="users.getFullUser"></a>
2018-04-01 13:19:25 +02:00
2019-12-27 17:48:04 +01:00
***
<br><br>
$MadelineProto->[users->getUsers](users.getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md)<a name="users.getUsers"></a>
2018-04-01 13:19:25 +02:00