553 lines
34 KiB
Markdown
553 lines
34 KiB
Markdown
---
|
|
title: Methods
|
|
description: List of methods
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Methods
|
|
[Back to API documentation index](..)
|
|
|
|
[Go to the new description-version method index](README.md)
|
|
|
|
$MadelineProto->[logout](https://docs.madelineproto.xyz/logout.html)();
|
|
|
|
$MadelineProto->[phoneLogin](https://docs.madelineproto.xyz/phoneLogin.html)($number);
|
|
|
|
$MadelineProto->[completePhoneLogin](https://docs.madelineproto.xyz/completePhoneLogin.html)($code);
|
|
|
|
$MadelineProto->[complete2FALogin](https://docs.madelineproto.xyz/complete2FAlogin.html)($password);
|
|
|
|
$MadelineProto->[botLogin](https://docs.madelineproto.xyz/botLogin.html)($token);
|
|
|
|
|
|
$MadelineProto->[getDialogs](https://docs.madelineproto.xyz/getDialogs.html)();
|
|
|
|
$MadelineProto->[getPwrChat](https://docs.madelineproto.xyz/getPwrChat.html)($id);
|
|
|
|
$MadelineProto->[getInfo](https://docs.madelineproto.xyz/getInfo.html)($id);
|
|
|
|
$MadelineProto->[getFullInfo](https://docs.madelineproto.xyz/getFullInfo.html)($id);
|
|
|
|
$MadelineProto->[getSelf](https://docs.madelineproto.xyz/getSelf.html)();
|
|
|
|
|
|
$MadelineProto->[requestCall](https://docs.madelineproto.xyz/requestCall.html)($id);
|
|
|
|
$MadelineProto->[requestSecretChat](https://docs.madelineproto.xyz/requestSecretChat.html)($id);
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->checkUsername](account.checkUsername.md)(\['username' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account.checkUsername"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->deleteAccount](account.deleteAccount.md)(\['reason' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account.deleteAccount"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->getAccountTTL](account.getAccountTTL.md)(\[\]) === [$AccountDaysTTL](../types/AccountDaysTTL.md)<a name="account.getAccountTTL"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->getAuthorizations](account.getAuthorizations.md)(\[\]) === [$account\_Authorizations](../types/account_Authorizations.md)<a name="account.getAuthorizations"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->getNotifySettings](account.getNotifySettings.md)(\['peer' => [InputNotifyPeer](../types/InputNotifyPeer.md), \]) === [$PeerNotifySettings](../types/PeerNotifySettings.md)<a name="account.getNotifySettings"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->getPassword](account.getPassword.md)(\[\]) === [$account\_Password](../types/account_Password.md)<a name="account.getPassword"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->getPasswordSettings](account.getPasswordSettings.md)(\['current_password_hash' => [bytes](../types/bytes.md), \]) === [$account\_PasswordSettings](../types/account_PasswordSettings.md)<a name="account.getPasswordSettings"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->getPrivacy](account.getPrivacy.md)(\['key' => [InputPrivacyKey](../types/InputPrivacyKey.md), \]) === [$account\_PrivacyRules](../types/account_PrivacyRules.md)<a name="account.getPrivacy"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->getWallPapers](account.getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md)<a name="account.getWallPapers"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->resetAuthorization](account.resetAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md)<a name="account.resetAuthorization"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->resetNotifySettings](account.resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md)<a name="account.resetNotifySettings"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->sendChangePhoneCode](account.sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), \]) === [$account\_SentChangePhoneCode](../types/account_SentChangePhoneCode.md)<a name="account.sendChangePhoneCode"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->setAccountTTL](account.setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md)<a name="account.setAccountTTL"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->updateDeviceLocked](account.updateDeviceLocked.md)(\['period' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="account.updateDeviceLocked"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->updateProfile](account.updateProfile.md)(\['first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \]) === [$User](../types/User.md)<a name="account.updateProfile"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->updateStatus](account.updateStatus.md)(\['offline' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="account.updateStatus"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[account->updateUsername](account.updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md)<a name="account.updateUsername"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[auth->checkPassword](auth.checkPassword.md)(\['password_hash' => [bytes](../types/bytes.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth.checkPassword"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[auth->checkPhone](auth.checkPhone.md)(\['phone_number' => [string](../types/string.md), \]) === [$auth\_CheckedPhone](../types/auth_CheckedPhone.md)<a name="auth.checkPhone"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[auth->exportAuthorization](auth.exportAuthorization.md)(\['dc_id' => [int](../types/int.md), \]) === [$auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md)<a name="auth.exportAuthorization"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[auth->logOut](auth.logOut.md)(\[\]) === [$Bool](../types/Bool.md)<a name="auth.logOut"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[auth->recoverPassword](auth.recoverPassword.md)(\['code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth.recoverPassword"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[auth->requestPasswordRecovery](auth.requestPasswordRecovery.md)(\[\]) === [$auth\_PasswordRecovery](../types/auth_PasswordRecovery.md)<a name="auth.requestPasswordRecovery"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[auth->resetAuthorizations](auth.resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md)<a name="auth.resetAuthorizations"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[auth->sendCall](auth.sendCall.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="auth.sendCall"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[auth->sendCode](auth.sendCode.md)(\['phone_number' => [string](../types/string.md), 'sms_type' => [int](../types/int.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="auth.sendCode"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[auth->sendSms](auth.sendSms.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="auth.sendSms"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[contacts->block](contacts.block.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md)<a name="contacts.block"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[contacts->deleteContact](contacts.deleteContact.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$contacts\_Link](../types/contacts_Link.md)<a name="contacts.deleteContact"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[contacts->deleteContacts](contacts.deleteContacts.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Bool](../types/Bool.md)<a name="contacts.deleteContacts"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[contacts->exportCard](contacts.exportCard.md)(\[\]) === [$Vector\_of\_int](../types/int.md)<a name="contacts.exportCard"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[contacts->getContacts](contacts.getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md)<a name="contacts.getContacts"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[contacts->getStatuses](contacts.getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md)<a name="contacts.getStatuses"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[contacts->getSuggested](contacts.getSuggested.md)(\['limit' => [int](../types/int.md), \]) === [$contacts\_Suggested](../types/contacts_Suggested.md)<a name="contacts.getSuggested"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[contacts->importCard](contacts.importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md)<a name="contacts.importCard"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[contacts->resolveUsername](contacts.resolveUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md)<a name="contacts.resolveUsername"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[contacts->unblock](contacts.unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md)<a name="contacts.unblock"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->checkin](geochats.checkin.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md)<a name="geochats.checkin"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->createGeoChat](geochats.createGeoChat.md)(\['title' => [string](../types/string.md), 'geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'address' => [string](../types/string.md), 'venue' => [string](../types/string.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md)<a name="geochats.createGeoChat"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->editChatPhoto](geochats.editChatPhoto.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md)<a name="geochats.editChatPhoto"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->editChatTitle](geochats.editChatTitle.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'title' => [string](../types/string.md), 'address' => [string](../types/string.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md)<a name="geochats.editChatTitle"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->getFullChat](geochats.getFullChat.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="geochats.getFullChat"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->getHistory](geochats.getHistory.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$geochats\_Messages](../types/geochats_Messages.md)<a name="geochats.getHistory"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->getLocated](geochats.getLocated.md)(\['geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'radius' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$geochats\_Located](../types/geochats_Located.md)<a name="geochats.getLocated"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->getRecents](geochats.getRecents.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$geochats\_Messages](../types/geochats_Messages.md)<a name="geochats.getRecents"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->search](geochats.search.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.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), \]) === [$geochats\_Messages](../types/geochats_Messages.md)<a name="geochats.search"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->sendMedia](geochats.sendMedia.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'media' => [InputMedia](../types/InputMedia.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md)<a name="geochats.sendMedia"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->sendMessage](geochats.sendMessage.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'message' => [string](../types/string.md), \]) === [$geochats\_StatedMessage](../types/geochats_StatedMessage.md)<a name="geochats.sendMessage"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[geochats->setTyping](geochats.setTyping.md)(\['peer' => [InputGeoChat](../types/InputGeoChat.md), 'typing' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="geochats.setTyping"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[help->getAppUpdate](help.getAppUpdate.md)(\['device_model' => [string](../types/string.md), 'system_version' => [string](../types/string.md), 'app_version' => [string](../types/string.md), 'lang_code' => [string](../types/string.md), \]) === [$help\_AppUpdate](../types/help_AppUpdate.md)<a name="help.getAppUpdate"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[help->getConfig](help.getConfig.md)(\[\]) === [$Config](../types/Config.md)<a name="help.getConfig"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[help->getInviteText](help.getInviteText.md)(\['lang_code' => [string](../types/string.md), \]) === [$help\_InviteText](../types/help_InviteText.md)<a name="help.getInviteText"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[help->getNearestDc](help.getNearestDc.md)(\[\]) === [$NearestDc](../types/NearestDc.md)<a name="help.getNearestDc"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[help->getSupport](help.getSupport.md)(\[\]) === [$help\_Support](../types/help_Support.md)<a name="help.getSupport"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[help->saveAppLog](help.saveAppLog.md)(\['events' => \[[InputAppEvent](../types/InputAppEvent.md)\], \]) === [$Bool](../types/Bool.md)<a name="help.saveAppLog"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<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>
|
|
$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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->checkChatInvite](messages.checkChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$ChatInvite](../types/ChatInvite.md)<a name="messages.checkChatInvite"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->deleteHistory](messages.deleteHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages.deleteHistory"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->deleteMessages](messages.deleteMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md)<a name="messages.deleteMessages"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->discardEncryption](messages.discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="messages.discardEncryption"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->exportChatInvite](messages.exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages.exportChatInvite"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->forwardMessages](messages.forwardMessages.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], \]) === [$Updates](../types/Updates.md)<a name="messages.forwardMessages"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->getAllStickers](messages.getAllStickers.md)(\['hash' => [string](../types/string.md), \]) === [$messages\_AllStickers](../types/messages_AllStickers.md)<a name="messages.getAllStickers"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->getChats](messages.getChats.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Chats](../types/messages_Chats.md)<a name="messages.getChats"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->getDialogs](messages.getDialogs.md)(\['offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md)<a name="messages.getDialogs"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->getFullChat](messages.getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages.getFullChat"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->getHistory](messages.getHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)<a name="messages.getHistory"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->getMessages](messages.getMessages.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_Messages](../types/messages_Messages.md)<a name="messages.getMessages"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->getStickerSet](messages.getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md)<a name="messages.getStickerSet"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->getWebPagePreview](messages.getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md)<a name="messages.getWebPagePreview"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->importChatInvite](messages.importChatInvite.md)(\['hash' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages.importChatInvite"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->readHistory](messages.readHistory.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'max_id' => [int](../types/int.md), 'offset' => [int](../types/int.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="messages.readHistory"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->readMessageContents](messages.readMessageContents.md)(\['id' => \[[int](../types/int.md)\], \]) === [$messages\_AffectedMessages](../types/messages_AffectedMessages.md)<a name="messages.readMessageContents"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->sendEncrypted](messages.sendEncrypted.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md)<a name="messages.sendEncrypted"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->sendEncryptedFile](messages.sendEncryptedFile.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), 'file' => [InputEncryptedFile](../types/InputEncryptedFile.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md)<a name="messages.sendEncryptedFile"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->sendEncryptedService](messages.sendEncryptedService.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'message' => [DecryptedMessage](../types/DecryptedMessage.md), \]) === [$messages\_SentEncryptedMessage](../types/messages_SentEncryptedMessage.md)<a name="messages.sendEncryptedService"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->sendMedia](messages.sendMedia.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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->sendMessage](messages.sendMessage.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), \]) === [$messages\_SentMessage](../types/messages_SentMessage.md)<a name="messages.sendMessage"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->startBot](messages.startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'chat_id' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages.startBot"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[messages->uninstallStickerSet](messages.uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)<a name="messages.uninstallStickerSet"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[photos->deletePhotos](photos.deletePhotos.md)(\['id' => \[[InputPhoto](../types/InputPhoto.md)\], \]) === [$Vector\_of\_long](../types/long.md)<a name="photos.deletePhotos"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[updates->getDifference](updates.getDifference.md)(\['pts' => [int](../types/int.md), 'date' => [int](../types/int.md), 'qts' => [int](../types/int.md), \]) === [$updates\_Difference](../types/updates_Difference.md)<a name="updates.getDifference"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[updates->getState](updates.getState.md)(\[\]) === [$updates\_State](../types/updates_State.md)<a name="updates.getState"></a>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<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>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[users->getFullUser](users.getFullUser.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$UserFull](../types/UserFull.md)<a name="users.getFullUser"></a>
|
|
|
|
***
|
|
<br><br>
|
|
$MadelineProto->[users->getUsers](users.getUsers.md)(\['id' => \[[InputUser](../types/InputUser.md)\], \]) === [$Vector\_of\_User](../types/User.md)<a name="users.getUsers"></a>
|
|
|